Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown error: Chrome failed to start: exited abnormally

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.

like image 606
Saheb Avatar asked Mar 15 '14 13:03

Saheb


People also ask

Could not open connection unknown error Chrome failed to start exited abnormally?

"Chrome failed to start: exited abnormally" means that ChromeDriver started Chrome as a subprocess, but then Chrome crashed. It could help you to find the command that started Chrome in the chromedriver log and run that command yourself to see what happens.


1 Answers

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() 
like image 123
Vicky Avatar answered Oct 04 '22 07:10

Vicky