I have a real-life example of some very strange behavior.  This works
just fine in IE but it is NOT working with FF for some reason:

require 'watir'
Watir::Browser.default = 'ie'
browser =
browser.goto "";
browser.image(:alt, "Members Login Here").click
browser.text_field(:id, "ctl00_cphMain_txtUserName").set "blahblah"
browser.text_field(:id, "ctl00_cphMain_txtPassword").set "blahblah"
browser.button(:id, "ctl00_cphMain_btnSubmit").click, "Cancel").click
browser.image(:alt, "Members Login Here").click

I got the following error...any ideas why this is happening?

MozillaBaseElement.rb:967:in `assert_exists': Unable to locate
element, using :alt, "Members Login
Here" (Watir::Exception::UnknownObjectException)
        from C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
MozillaBaseElement.rb:1112:in `click'
        from test.rb:13

You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to