Try To Start Chrome Driver On Linux With Selenium Webdriver
I try to find answer and can't, now I ask by myself. I wrote simple test from selenium import webdriver driver = webdriver.Chrome(executable_path=r'/home/tranter/workspace/chromed
Solution 1:
For Linux user: Start the Display before start the Chrome. for more info click here
from selenium import webdriver
from pyvirtualdisplay import Display
# Add following 2 line before start the Chrome
display = Display(visible=0, size=(800, 800))
display.start()
driver = webdriver.Chrome()
driver.get("http://www.google.com")
driver.quit()
display.stop()
Solution 2:
2.10.267517
is not the latest version.
$ chromedriver --version
ChromeDriver 2.10.267518
With above version, Python 2.7.6, your code work well. (except that I modified the chromedriver path)
FYI, here are uname for my ubuntu:
$ uname -a
Linux jmlee12 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux$ python -V
Python 2.7.6
Post a Comment for "Try To Start Chrome Driver On Linux With Selenium Webdriver"