I am trying to run my automation tests from Jenkins CI server (built with Gradle), but the browser crashes instantly with the error below. It also crashes when I run gradle
Chrome Crash issue fix :
This code with launch the browser without any crash. Make sure, chrome exe is compatible with the current browser.
ChromeOptions options = new ChromeOptions()
options.addArguments("--no-sandbox");
driver = new ChromeDriver(options);
driver.manage().window().maximize();
driver.get("https://www.google.com");