org.openqa.selenium.SessionNotCreatedException: session not created exception from tab crashed error when executing from Jenkins CI server

后端 未结 3 2026
一生所求
一生所求 2020-12-11 19:24

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

3条回答
  •  庸人自扰
    2020-12-11 19:46

    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");
    

提交回复
热议问题