On Thursday, June 5, 2014 1:19:35 PM UTC+1, Chaitanya Joshi wrote: > > Hi, > I am using chromedriver version 2.9 > Selenium webdriver = 2.38.0 > Capybara version = 2.1.0 > Windows 7 64 bit > Java : 1.7.0_51 > and have added the following code in my env.rb file > Capybara.register_driver :selenium do |app| > Capybara::Selenium::Driver.new(app, :browser => :chrome) > end > Also added the chromedriver in C:\Ruby193\bin\chromedriver.exe and have > set the PATH variable as well. Still I am unable to launch the chrome > browser and getting the following error > unknown error: chrome failed to start > (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 > x86_64) (Selenium::WebDriver::Error::Unknow >
There is a mapping between chromedriver and chrome browser. For example, Chromedriver 2.9 can only handle chrome browser versions v31-34. So if your jenkins box has an older chrome browser, it wouldn't work. Either upgrade your browser or downgrade the chromedriver. see here for the mapping http://chromedriver.storage.googleapis.com/2.10/notes.txt C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/response.rb:51:in > ` > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/response.rb:15:in > > ` > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:59:i > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:59:i > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/default.rb:66: > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:40:i > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:634:in > > `r > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:99:in > > `cr > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:68:in > > `in > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/chrome/bridge.rb:29:in > > `in > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/common/driver.rb:37:in > > `ne > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/common/driver.rb:37:in > > `fo > C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver.rb:67:in > > `for' > C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/selenium/driver.rb:11:in > > `browser' > C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/selenium/driver.rb:43:in > > `visit' > C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/session.rb:193:in > > `visit' > C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/dsl.rb:51:in > `block (2 levels) in <module:DSL>' > D:/Cucumber/integration_tests/features/support/hooks.rb:19:in `Before' > > Please help. > > >>>> Regards Ragavan -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.