Getting chromedriver to work with Google Chrome and splinter framework

996 views
Skip to first unread message

Alex Reynolds

unread,
May 29, 2013, 11:08:17 PM5/29/13
to splinte...@googlegroups.com
I am having difficulty getting splinter to instantiate a Browser object 
using Google Chrome and chromedriver. 

Python throws the following exception when I try to instantiate a new 
Browser:

 >>> from splinter import Browser
 >>> browser = Browser('chrome')
 ...
 selenium.common.exceptions.WebDriverException: Message: u'Unable to either 
launch or connect to Chrome. Please check that ChromeDriver is up-to-date. 
Using Chrome binary at: /opt/google/chrome/google-chrome'

To install Google Chrome and Chromedriver, from:

http://code.google.com/p/chromedriver/downloads/list

I retrieved the following file:

chromedriver_linux64_26.0.1383.0.zip

And from:

https://www.google.com/intl/en/chrome/browser/?platform=linux

I retrieved:

google-chrome-stable_current_x86_64.rpm

I installed google-chrome ("rpm -i google-chrome....rpm"), which is 
installed to /opt/google/chrome. 

I unpacked chromedriver to /usr/local/bin

Is there some detail I missed or should I match a specific version of 
Chromedriver to Google Chrome, in order to get splinter to work?

Regards,
Alex 

Alex Reynolds

unread,
May 29, 2013, 11:10:27 PM5/29/13
to splinte...@googlegroups.com
I should have probably included the version of Selenium:

$ pip-python freeze | grep selenium
selenium==2.33.0

Thank you for any advice.

Regards,
Alex

somes...@wisecells.com

unread,
Apr 28, 2014, 2:05:00 AM4/28/14
to splinte...@googlegroups.com
I am also facing similar problem. Did you find any workaround for this problem?

Douglas Camata

unread,
Apr 28, 2014, 8:45:06 AM4/28/14
to splinte...@googlegroups.com
Check if you can execute chromedriver from the terminal, please.


--
You received this message because you are subscribed to the Google Groups "splinter-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to splinter-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Douglas Camata
Graduando em Ciência da Computação (UENF)

Skype: douglas_camata
-----------------------------------
Linux User #509211

李思

unread,
May 11, 2014, 7:59:27 AM5/11/14
to splinte...@googlegroups.com
mabe you can copy the webdriver to chrome app directory, And add it to path
在 2013年5月30日星期四UTC+8上午11时08分17秒,Alex Reynolds写道:
Reply all
Reply to author
Forward
0 new messages