[wtr-general] Safariwatir, text_field issues and support

2011-01-24 Thread A.Mori
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


Re: [wtr-general] two buttons Search and Go

2011-01-24 Thread Željko Filipin
On Fri, Jan 21, 2011 at 5:16 PM, Aravind aravindredd...@gmail.com wrote:
 I am able to click Go but not the Search, wiered

Show us the Watir code that clicks Go button, and one that does not click
Search button.

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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


Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2011-01-24 Thread Željko Filipin
http://stackoverflow.com/questions/4758928/watir-looking-for-a-more-elegant-solution-for-html-element-checking

-- 
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