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.
"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.
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()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With