I am running headless chrome on centos, with headless chrome version 2.38, and google-chrome-stable version 67.0
System.setProperty(\"webdriver.chrome.driver
This error message...
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed
...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.
As you are using Headless Chrome on CentOS it is worth to mention that as per the discussion Getting Started with Headless Chrome --disable-gpu
is Temporarily needed if running on Windows.
--disable-gpu \ # Temporarily needed if running on Windows.
However, your main issue is the incompatibility between the version of the binaries you are using as follows:
So there is a clear mismatch between the JDK v8u101 , Selenium Client v3.6.0 , ChromeDriver v2.38 and the Chrome Browser v67.0
@Test
.driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.