Hi,
Ive been using watir for 3 days now. ive managed to run a proper
functional test or two and i would now like to extend these tests to
run in multiple browers.
Very happy with how things work with firefox, and ive now moved on to
safari and safari watir. i can get the second browser to start, and it
seems to work similarly to firewatir but ive now run into issues and i
cant find solutions anywhere.
after running the test in firefox, it then autmatically opens up
safari, goes to the app im testing, clicks sign in and then moves to
the username text_field, where i can see the details being filled in
automatically but then the test dies with an error message.
here is where the test is getting stuck.
result = testingBrowser.text_field(:id, email).exist?
if result
testingBrowser.text_field(:id, email).set em...@gmail.com
else
puts Email field does not exist. Exiting with status FAILED
exit
end
the error reported is
/Library/Ruby/Gems/1.8/gems/safariwatir-0.4.0/lib/safariwatir/
scripter.rb:661:in `execute': Unable to locate TextField, using :id
and email (Watir::Exception::UnknownObjectException)
so even though i can see em...@gmail.com being entered into the email
field, the test stops and i have no idea what the issue is.
thanks for the help! i would really find some documentation on
safariwatir that includes examples so please point me in the right
direction if you know of some useful docs.
Andrew
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com