Update chromedriver

6,575 views
Skip to first unread message

Joe Fl

unread,
Aug 6, 2012, 12:05:51 PM8/6/12
to watir-...@googlegroups.com
Hi all,

I am trying to update my chromedriver from 16.0.902 to 21 but not sure how to.  I have done a search on the topic in the
group but can't find anything that relates to what I am trying to accomplish.

I followed the install instructions and when I execute the following:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

I get the following message:
-bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: No such file or directory

This is my terminal starting point:
Josephs-MacBook-Pro:~ josephfleck$

Am I in the wrong location.

Any help would be appreciated.
Thank you,
Joe

Željko Filipin

unread,
Aug 6, 2012, 12:31:20 PM8/6/12
to watir-...@googlegroups.com
On Mon, Aug 6, 2012 at 6:05 PM, Joe Fl <joefl...@gmail.com> wrote:
> I am trying to update my chromedriver from 16.0.902 to 21 but not sure how to.

Just copy the new file over the old one. Where did you put chromedriver file previously?

> I followed the install instructions and when I execute the following:

What instructions are you following?

Željko
--
filipin.eu


Joe Fleck

unread,
Aug 6, 2012, 12:59:07 PM8/6/12
to watir-...@googlegroups.com
Hi Željko,

I was following the MAC installation instructions.

I think thats the problem I can't seem to find were I originally pasted it.

I reran the command from the installation instructions and here is the outcome:

Josephs-MacBook-Pro:~ josephfleck$ echo $PATH
/Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/bin:/Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02@global/bin:/Users/josephfleck/.rvm/rubies/ree-1.8.7-2010.02/bin:/Users/josephfleck/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin

now I don't see the .rvm folder.

Is there a setting I need to change on my MAC to see it?

Joe
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-...@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-genera...@googlegroups.com

Felipe Knorr Kuhn

unread,
Aug 6, 2012, 1:01:27 PM8/6/12
to watir-...@googlegroups.com
If you are using a Mac, you are probably better off using Homebrew to install and update chromedriver


brew update
brew upgrade chromedriver

Željko Filipin

unread,
Aug 6, 2012, 1:01:43 PM8/6/12
to watir-...@googlegroups.com
On Mon, Aug 6, 2012 at 6:59 PM, Joe Fleck <joefl...@gmail.com> wrote:
> Josephs-MacBook-Pro:~ josephfleck$ echo $PATH
> /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/bin:/Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02@global/bin:/Users/josephfleck/.rvm/rubies/ree-1.8.7-2010.02/bin:/Users/josephfleck/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin

Just go to each of the listed folders and check if there is a file named chromedriver.


> now I don't see the .rvm folder.

You do not see it in Finder or Terminal?

Željko

Željko Filipin

unread,
Aug 6, 2012, 1:03:11 PM8/6/12
to watir-...@googlegroups.com
On Mon, Aug 6, 2012 at 7:01 PM, Felipe Knorr Kuhn <fkn...@gmail.com> wrote:
> brew update
> brew upgrade chromedriver

I did not know one could install chromedriver via homebrew.

Željko

Joe Fleck

unread,
Aug 6, 2012, 1:14:53 PM8/6/12
to watir-...@googlegroups.com
Željko,

I don't see it in either location.

I will give brew a try but I doing an update to Xcode.

Dan

unread,
Aug 6, 2012, 2:04:45 PM8/6/12
to watir-...@googlegroups.com

Awesome tip.  I had no idea you could do this.
brew upgrade chromedriver



--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

watir-...@googlegroups.com

Joe Fleck

unread,
Aug 6, 2012, 2:11:45 PM8/6/12
to watir-...@googlegroups.com
It does require you to have Xcode 4.3.3.
>>> > watir-genera...@googlegroups.com
>>>
>>> --
>>> Before posting, please read http://watir.com/support. In short: search
>>> before you ask, be nice.
>>>
>>> watir-...@googlegroups.com
>>> http://groups.google.com/group/watir-general
>>> watir-genera...@googlegroups.com
>>
>>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-...@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-genera...@googlegroups.com

Joe Fleck

unread,
Aug 14, 2012, 12:17:40 PM8/14/12
to watir-...@googlegroups.com
hi,

I saved the newest version of the chromedriver in /usr/bin/ directory.

But when I try and use it I get the following error message:

ree-1.8.7-2010.02 :003 > @w = Watir::Browser.new :chrome
Selenium::WebDriver::Error::WebDriverError: proxy must be of type
dictionary, not null. Received: null

from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/response.rb:45:in
`assert_ok'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/response.rb:15:in
`initialize'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/http/common.rb:54:in
`new'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/http/common.rb:54:in
`create_response'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/http/default.rb:64:in
`request'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/http/common.rb:35:in
`call'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/bridge.rb:410:in
`raw_execute'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/bridge.rb:88:in
`create_session'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/remote/bridge.rb:68:in
`initialize'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/chrome/bridge.rb:22:in
`initialize'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:35:in
`new'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:35:in
`for'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver.rb:81:in
`for'
from /Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02/gems/watir-webdriver-0.3.4/lib/watir-webdriver/browser.rb:35:in
`initialize'
from (irb):3:in `new'
from (irb):3

I am not sure what this means. Can someone help?

Thank you,
Joe

Joe Fl

unread,
Aug 15, 2012, 1:39:24 PM8/15/12
to watir-...@googlegroups.com
Hi,

Has anyone run into this before?  Any help wonder be appreciated.

Thank you,
Joe

bis

unread,
Aug 15, 2012, 1:42:07 PM8/15/12
to watir-...@googlegroups.com
Try doing

Which chromedriver and it should give you the path
To where your chrome driver is 

Sent from my iPhone
--

Dan

unread,
Aug 15, 2012, 1:48:32 PM8/15/12
to watir-...@googlegroups.com
Which version of the selenium-webdriver and watir-webdriver gems do you have?

Joe Fleck

unread,
Aug 15, 2012, 1:52:37 PM8/15/12
to watir-...@googlegroups.com
hi dan,

How do I find that information?

Joe

Dan Franko

unread,
Aug 15, 2012, 1:58:59 PM8/15/12
to watir-...@googlegroups.com
Execute:

gem list watir-webdriver
and 
gem list selenium-webdriver

in the terminal.  You should get something like the below back.

watir-webdriver (0.6.1, 0.5.5, 0.5.4)
selenium-webdriver (2.25.0, 2.22.2, 2.22.1, 2.21.2, 2.20.0)

Joe Fleck

unread,
Aug 15, 2012, 2:03:27 PM8/15/12
to watir-...@googlegroups.com
Hi Dan,

Here is what I have:

watir-webdriver (0.3.4, 0.3.2)
selenium-webdriver (2.7.0, 2.5.0)

Dan

unread,
Aug 15, 2012, 2:18:31 PM8/15/12
to watir-...@googlegroups.com
Those are pretty old versions.  I would try updating the gems to their current version.  You can always revert back if you need to.  You would do that like:

sudo gem update selenium-webdriver
sudo gem update watir-webdriver

Joe Fleck

unread,
Aug 15, 2012, 2:43:56 PM8/15/12
to watir-...@googlegroups.com
Hi Dan,

That did the trick. After doing the update everything is working
again with chrome and firefox. Thank you.
I really appreciate yours and everyone else help.

Joe

Dan

unread,
Aug 15, 2012, 8:02:55 PM8/15/12
to watir-...@googlegroups.com
No problem.  Glad to have helped.
Reply all
Reply to author
Forward
0 new messages