I installed up a new machine with ruby, watir, and selenium-webdriver and 
the script (that still runs on the previous version) now will not start

I produced a minimal script below and the reported error (with version 
numbers visible in the dump)

Is there a workaround to get the new machine going.  I tried to uninstall 
the gems and install the older versions but this did not appear to work and 
just installed the same versions again.


--- simple script

require 'watir'

options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('--disable-infobars')
driver = Watir::Browser.new :chrome, options: options

--- result

C:>watir test.rb
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/chrome/options.rb:43:in
 
`initialize': wrong number of arguments (1 for 0) (ArgumentError)
        from 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/watir-6.6.0/lib/watir/capabilities.rb:68:in
 
`new'
        from 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/watir-6.6.0/lib/watir/capabilities.rb:68:in
 
`process_browser_options'
        from 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/watir-6.6.0/lib/watir/capabilities.rb:28:in
 
`process_capabilities'
        from 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/watir-6.6.0/lib/watir/capabilities.rb:15:in
 
`to_args'
        from 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/watir-6.6.0/lib/watir/browser.rb:47:in 
`initialize'
        from .../watir test.rb:5:in `new'
        from .../watir test.rb:5:in `<main>'



---- previous install on an older machine still works fine

waitr 6.3
selenium-webdriver 3.4.3

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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to