I'm installing ruby/watir/watir-webdriver on a new machine with the hopes of updating my existing automation to run on ie, ff, chrome, and opera.
I have ie and ff working and am struggling with getting chrome working.
I downloaded chromedriver and put it in the ruby/bin directory. When I try to open chrome using irb, I get...
C:\Ruby>irb
DL is deprecated, please use Fiddle
irb(main):001:0> require "watir-webdriver"
=> true
irb(main):002:0> browser = Watir::Browser.new :chrome
ChildProcess::LaunchError: Unknown error (Windows says "The operation completed successfully.", but it did not.)
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childprocess/windows/process_builder.rb:87:in `create_process'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childprocess/windows/process_builder.rb:34:in `start'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childprocess/windows/process.rb:63:in `launch_process'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childprocess/abstract_process.rb:72:in `start'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/chrome/service.rb:47:in `start'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/chrome/bridge.rb:15:in `initialize'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/common/driver.rb:37:in `new'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/common/driver.rb:37:in `for'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver.rb:67:in `for'
from C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/browser.rb:46:in `initialize'
from (irb):2:in `new'
from (irb):2
from C:/Ruby/Ruby200/bin/irb:12:in `<main>'
irb(main):003:0>
I've searched for this error message but the only thing I've found are comments stating that there could be an error in chromedriver. Chrome never comes up.
The version of chromedriver I downloaded is: chromedriver_win_26.0.1383.0 because I read somewhere that
chromedriver2_win32_0.8.zip
wasn't ready.
This is a list of the gems I have installed:
C:\Ruby>gem list
*** LOCAL GEMS ***
bigdecimal (1.2.0)
builder (3.2.0)
childprocess (0.3.9)
commonwatir (4.0.0)
ffi (1.8.1 x86-mingw32)
hoe (3.6.0)
io-console (0.4.2)
json (1.7.7)
mini_magick (3.5.0)
mini_portile (0.5.0)
minitest (4.3.2)
multi_json (1.7.2)
nokogiri (1.5.9 x86-ming
psych (2.0.0)
rake (0.9.6)
rautomation (0.9.1)
rdoc (4.0.0)
rubygems-update (2.0.3)
rubyzip (0.9.9)
s4t-utils (1.0.4)
selenium-webdriver (2.32
subexec (0.2.3)
test-unit (2.0.0.0)
user-choices (1.1.6.1)
watir (4.0.2 x86-mingw32
watir-classic (3.6.0)
watir-webdriver (0.6.4)
websocket (1.0.7)
win32-api (1.4.8 x86-min
win32-process (0.7.2)
win32screenshot (1.0.8)
windows-api (0.4.2)
windows-pr (1.2.2)
xml-simple (1.1.2)
Anyone have any idea what I'm missing?
Thanks in advance!
Anne