I need to be able to click OK on a Javascript popup in Firefox on a
Mac with Watir.
It looks like I needed to install watir-webdriver, so I did this:
sudo gem install watir-webdriver
It installed successfully.
Then, I added require 'watir-webdriver' to the top of my script here:
// BEGIN CODE
require 'rubygems'
require 'watir-webdriver'
# the Watir controller
require 'firewatir'
include Watir
// END CODE
Now when I try to run my script, I'm getting this:
/Library/Ruby/Gems/1.8/gems/commonwatir-1.6.6/lib/watir/exceptions.rb:
12: superclass mismatch for class UnknownObjectException (TypeError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:547:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.6/lib/firewatir/
exceptions.rb:1
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:547:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.6/lib/firewatir.rb:7
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
`require'
from ./snimble_login.rb:18
I've tried searching, but I'm not finding the solution. Can someone
help?
Thank you in advance!
CJ
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]