unknown error: DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java

The Error “unknown error: DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java”, is an error that is invoked when you are working on java and you are using selnium and with it you are trying to open a page on chrome.

Given below is the snippet of the error you might get:

unknown error: DevToolsActivePort file doesn't exist error using Selenium ChromeDriver Java

To fix the error and to make sure the error is not repeated again it is important to know the cause of the error and how to fix the error.

Below we will discuss the cause of the error, “unknown error: DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java”.

The error “unknown error: DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java” means that a new browsing context, or Google Chrome session, could not be started by the ChromeDriver.

Main reason for issue ‘DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java’ is that that the binaries you are utilising are not compatible with one another.

For example, you are using Chrome version 104.0, but Chromedriver version 103.0.

In chromedriver 103.0’s release notes it is mentioned that : ‘Supports Chrome version 103‘. So as a result, the Chrome=104.0 and ChromeDriver=103.0 clearly are not compatible with each other.

---------ChromeDriver 104.0.5112.79 (2022-08-03)---------
Supports Chrome version 104
Error: DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java

To fix the error, “unknown error: DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java”, you will have to make sure that you are using the most recent version of Selenium 4.4.0.

To fix the error, you will have to make sure that use the most recent versions of Selenium, ChromeDriver and chrome browser, and all should be compatible to each other.

You will also have to make sure that you are using the most recent version of ChromeDriver is 104.0.

This should help you to fix the issue, “unknown error: DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java”.

Conclusion

To fix the error, “unknown error: DevToolsActivePort file doesn’t exist error using Selenium ChromeDriver Java”, you will have to make sure that you will have to use the most recent version of Selenium is 4.4.0.

You will also have to make sure that you will have to use the most recent version of ChromeDriver is 104.0.

You will also have to make sure that you will have to use the most recent version of chrome browser that is version 104.0.