注册 | 登录


shaomeng95 2011-04-22


阿里巴巴的主流Java框架是自己写的,同时结合了大量open source的资源。 WEB层 —— 使用webx框架。主要利用velocity模板技术来展现页面。 业务层 —— 主要使用

up vote 0 down vote favorite

I'm trying to get off the ground with Watir Webdriver and I need it to work with Chrome. I downloaded the chromedriver and added it to my path but when I do this (in irb, using a mac):

require 'watir-webdriver'
b = :chrome

I get this message:

<Watir::Browser:0x..fb07a5a545bf96f92 url={"message"=>"no such session: url\n  (Driver info: chromedriver=0.7,platform=Mac OS X 10.7.5 x86_64)"} title={"message"=>"no such session: title\n  (Driver info: chromedriver=0.7,platform=Mac OS X 10.7.5 x86_64)"}>

If I omit the ":chrome" part it will open up a new firefox browser.

What am I doing wrong?

watir-webdriver selenium-chromedriver share | improve this question edited Apr 11 '13 at 17:34 Fabio Cardoso 810 10 32 asked Apr 11 '13 at 17:30 user2271450 1 1      Does chrome open up? –  Dave McNulla Apr 12 '13 at 17:37      I am running on a mac with OSX v10.8.3 and have no problem launching chrome. So maybe the problem is something related to a version, or maybe your path addition was not perm? I'd do two things. from command line do "gem list" and let us know versions of watir, webdriver, etc. –  Chuck van der Linden Apr 15 '13 at 19:07 add a comment  | 

2 Answers 2

active oldest votes up vote 1 down vote

This seems to be a bug in ChromeDriver2 v0.7 (r192977). You can just downgrade to ChromeDriver2 v0.5 beta (March 26th) and it should solve your problem.

All the versions are available here.

Worked great for me under Ruby 1.9.3 32-bit, running on a Win7 64-bit.



share | improve this answer answered Apr 17 '13 at 22:02 Gui Ambros 666 1 5 13 add a comment  |  up vote 1 down vote

If your using a Mac, just do a brew install of chromedriver on your command line. brew install chromedriver

You may need to set your Mac up first, just go to this link and follow instructions to install homebrew.

This is the easiest way to install chromedriver to your path and works like a charm.

share | improve this answer answered May 11 '13 at 10:50 Azher 318 3 15 add a comment  | 

Your Answer

  draft saved draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Post as a guest

Name Email

Post as a guest

Name Email discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged watir-webdriver selenium-chromedriver or ask your own question.

相关推荐:阿里巴巴 java高级工程师 电话面试

大约是上个星期吧,报着试试看看的态度,投了阿里金融部门的Java高级工程师。早就听说阿里的网投简历淘汰率很高,不想 竟然接到面试的电话。 谈谈体会吧。 面试

CobarClient is a light-weight distributed Data Access Layer(DAL) based on iBatis(MyBatis now) and Spring framework.CobarClient is aimed for samll/medium projects who are looking










您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱