Running Selenium tests with ChromeDriver in Azure pipeline - Chrome crashes immediately

371 views
Skip to first unread message

Andrew George

unread,
Oct 8, 2021, 2:35:46 PM10/8/21
to ChromeDriver Users
Hello,

I'm trying to automate some Selenium tests and run them in an Azure DevOps pipeline.

> raise exception_class(message, screen, stacktrace) 
E selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. 
E (unknown error: DevToolsActivePort file doesn't exist) 
E (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

I'm using webdriver-manager to load the appropriate driver.
Is this because it's running as root?
I've tried passing --headless and --no-sandbox, to no avail.

Would really appreciate any tips.

Thanks,

Andy

Jeffrey Walton

unread,
Oct 10, 2021, 12:58:29 AM10/10/21
to ChromeDriver Users
It appears to be a widespread problem. There are four messages about it over the last several days. The devs are silent on the issue, which is problematic since they don't appear interested in the issue.

Switch to Firefox and GeckoDriver. They are not broken at the moment. I had to switch to Firefox this evening to get workflows up and running again.


Jeff

Andrew George

unread,
Oct 12, 2021, 4:35:21 PM10/12/21
to ChromeDriver Users

Thank you, Jeff, for replying. Appreciate the info. Will give it a go.

Best,

Andy
Reply all
Reply to author
Forward
0 new messages