chromedriver and watir-webdriver launch error

1,202 views
Skip to first unread message

Anne

unread,
May 3, 2013, 12:59:10 PM5/3/13
to watir-...@googlegroups.com
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

Super Kevy

unread,
May 3, 2013, 1:06:58 PM5/3/13
to Watir General
Are there 2 colons in the browser call

browser = Watir::Browser.new(:chrome, :switches => %w[--start-
maximized] )

Do you see in the log stream?
Started ChromeDriver
port=28999
version=22.0.1203.0b





On May 3, 11:59 am, Anne <annemordk...@gmail.com> wrote:
> 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/childproces s/windows/process_builder.rb:87:in
> `create_process'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childproces s/windows/process_builder.rb:34:in
> `start'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childproces s/windows/process.rb:63:in
> `launch_process'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childproces s/abstract_process.rb:72:in
> `start'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/sele nium/webdriver/chrome/service.rb:47:in
> `start'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/sele nium/webdriver/chrome/bridge.rb:15:in
> `initialize'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/sele nium/webdriver/common/driver.rb:37:in
> `new'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/sele nium/webdriver/common/driver.rb:37:in
> `for'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/sele nium/webdriver.rb:67:in
> `for'
>         from
> C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-we bdriver/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
> <http://code.google.com/p/chromedriver/downloads/detail?name=chromedri...>wasn't

Anne

unread,
May 3, 2013, 1:16:11 PM5/3/13
to watir-...@googlegroups.com
There are 2 colons --> browser = Watir::Browser.new :chrome

I never get "Started ChromeDriver", only the launcherror message.

Super Kevy

unread,
May 3, 2013, 1:39:39 PM5/3/13
to Watir General
OK. I see you had that
Maybe try downgrading the chrome driver to
chromedriver_win_26.0.1383.0.zip

Anne

unread,
May 3, 2013, 1:50:07 PM5/3/13
to watir-...@googlegroups.com
that's the one I have installed.
also tried it with chromedriver2_win32_0.8.zip
but had the same problem

Super Kevy

unread,
May 3, 2013, 1:51:00 PM5/3/13
to Watir General
Dah I see you did that too.

Try gem cleanup
Followed by gem update

Do you have the Ruby Dev Kit installed?

Anne

unread,
May 3, 2013, 1:56:22 PM5/3/13
to watir-...@googlegroups.com
gem cleanup & update didn't seem to help -- still getting the same error

yes, dev kit is installed

Super Kevy

unread,
May 3, 2013, 3:27:45 PM5/3/13
to Watir General
Well I'm at a loss.
So I did a fresh install with the following steps

My OS is winxp 32 bit


Removed old the version completely
Install to c:\ruby200 (with installer Ruby 2.0.0-p0)
Install devkit to c:\RubyDevKit (DevKit-tdm-32-4.5.2-20111229-1559-
sfx.exe)
update env path for c:\ruby200/bin and c:\devkit
Install watir as > gem install watir
install watir-webdriver as > gem install watir-webdrive
gem cleanup
gem update
copy chromedriver.exe into C:/ruby200/bin folder
irb
require 'watir-webdriver'
browser=Watir::Browser.new :chrome
Browser opens
Reply all
Reply to author
Forward
0 new messages