Unknown error: Chrome failed to start: exited abnormally

Saheb picture Saheb · Mar 15, 2014 · Viewed 50.8k times · Source

I am getting this error when I run my tests with Selenium using chromedriver.

selenium.common.exceptions.WebDriverException: Message:
unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.9.248316,platform=Linux 3.8.0-29-generic x86)

I did download google-chrome stable and also chromedriver and have used this code to start the browser.

driver = webdriver.Chrome('/usr/local/bin/chromedriver')

Any suggestions anyone? Thanks.

Answer

Vicky picture Vicky · Jan 28, 2015

For Linux :

Start the Display before start the Chrome. for more info click here

from pyvirtualdisplay import Display
display = Display(visible=0, size=(800, 800))  
display.start()
driver = webdriver.Chrome()