[Wtr-general] FireWatir not finding buttons by id
Angrez Singh
angrez at gmail.com
Fri May 4 02:08:03 EDT 2007
Hi Chris,
I tried your script. I seems like you are accessing wrong element.
#DOESN'T FIND THIS BUTTON
>
ff.button(:id,'st-login-to-edit-button-link')
This is actually a link <a id="st-login-to-edit-button-link">.
So the following should be used to access this element
ff.link(:id, 'st-login-to-edit-button-link')
Using this I was able to go to login page and was able to enter login name
and password.
ff.text_field(:id, 'username').set('myemail at email.com')
> ff.text_field(:id, 'password').set('mypass')
> ff.button(:value, 'Log in').click
Don't know correct user name and password :) so was not able to go ahead
with the test.
#DOESN'T FIND THIS BUTTON EITHER
> ff.button(:id,"st-edit-button-link").click
I think this might be again a link.
Regards,
Angrez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070504/800799f3/attachment-0001.html
More information about the Wtr-general
mailing list