0

Starting ChromeDriver 109.0.5414.74 (e7c5703604daa9cc128ccf5a5d3e993513758913-refs/branch-heads/5414@{#1172}) on port 57071 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed. (unknown error: DevToolsActivePort file doesn't exist)

(The process started from chrome location C:\Users\ajays\AppData\Local\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Build info: version: '4.3.0', revision: 'a4995e2c09*' System info: host: 'LAPTOP-8VG52IH3', ip: '192.168.20.2', os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.5' Driver info: org.openqa.selenium.chrome.ChromeDriver Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}}}] at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:144) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:102) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:67) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:156) at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:167) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:142) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:264) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:179) at org.openqa.selenium.chromium.ChromiumDriver.(ChromiumDriver.java:101) at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:81) at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:49) at javaeclipseselenium.Test1.main(Test1.java:13)

getting "Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed"

  1. Installed java
  2. Installed selenium jars and build the path.
  3. My downloaded chrome driver and the chrome version are same. (note: firstly my chrome version and downloaded driver version was different so downgraded the chrome and made sure both are sameenter image description here).

package javaeclipseselenium;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Test1 {

    public static void main(String[] args) throws InterruptedException{
        // TODO Auto-generated method stub
                System.setProperty("webdriver.chrome.driver","C:\\Users\\ajays\\Downloads\\chromedriver_win32\\chromedriver.exe");
        WebDriver driver = new ChromeDriver();
        
        driver.get("https://www.selenium.dev/selenium/web/web-form.html");
        driver.quit();      
    }    
}

I have checked for all the options online to solve the issue even with maven webdrivermanager ....can anyone please help with this ? i'm stuck since 2 days.

Bas H
  • 2,114
  • 10
  • 14
  • 23

0 Answers0