Ken Chin
unread,Mar 31, 2011, 4:39:34 PM3/31/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Watir General
Hello,
I have an issue that is stumping my brain, with SafariWatir on OSX.
I'm trying to run a simple login script that works fine with Watir on
IE PC but not on Safari OSX.
Both browsers fill out the login name correctly and IE inputs into the
password text_field but SafariWatir blows up with the following
exception:
Form
<input id="session_email" name="session[email]" size="30" tabindex="1"
type="text" style="">
...
<input id="session_password" name="session[password]" size="30"
tabindex="2" type="password">
ree-1.8.7-2010.02 > b.text_field(:id, "session_email").set("test")
=> :missing_value
ree-1.8.7-2010.02 > b.text_field(:id, "session_password").set("test")
Watir::Exception::UnknownObjectException: Unable to locate TextField,
using :id and "session_password"
from /Users/ken/.rvm/gems/ree-1.8....@rails-2.3.8/gems/
safariwatir-0.4.0/lib/safariwatir/scripter.rb:661:in `execute'
from /Users/ken/.rvm/gems/ree-1.8....@rails-2.3.8/gems/
safariwatir-0.4.0/lib/safariwatir/scripter.rb:303:in `focus'
from /Users/ken/.rvm/gems/ree-1.8....@rails-2.3.8/gems/
safariwatir-0.4.0/lib/safariwatir.rb:525:in `set'
from (irb):25
I have the following gems:
watirgrid (0.0.9)
safariwatir (0.4.0)
firewatir (1.8.0)
Am I the only one who is running into this issue?