2

Chrome version is recently upgraded to 108.x version and all of sudden my scripts have started failing and getting below exception:

org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited normally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

I have gone through different forums but none of the solutions worked. I am running my scripts on stand alone machine with Windows 11, Java Version as 17 and below maven dependencies I am using:

  <dependencies>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.141.59</version>
    </dependency>
    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>7.6.1</version>
        <scope>test</scope>
    </dependency>
        <dependency>
        <groupId>io.github.bonigarcia</groupId>
        <artifactId>webdrivermanager</artifactId>
        <version>5.2.1</version>
    </dependency>
  </dependencies>

How can I resolve this issue? I have tried all the options mentioned in below question: WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser

I have tried all the options mentioned in below question: WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser

halfer
  • 19,824
  • 17
  • 99
  • 186
  • I have the same error but was able to execute the test cases using the --headless option. This is a workaround for me, but I still getting the same error if I try to have the browser to open. – Luis Alberto Juárez Aguirre Jan 10 '23 at 21:20

1 Answers1

0

Did you put your class files or jar file in an external storage instead of the SSD or hard disk that originally belonged to your PC? Such as a USB storage or an SD card. Sometimes issues like your description occur in that situation.

uniqueT
  • 1
  • 2
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Thomas Feb 20 '23 at 15:19