Unknown Error: Devtoolsactiveport File Doesn't Exist Error While Executing Selenium Ui Test Cases on Ubuntu

WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser

Update:

I am able to get through the issue and now I am able to access the chrome with desired url.

Results of trying the provided solutions:

I tried all the settings as provided above but I was unable to resolve the issue

Explanation regarding the issue:

As per my observation DevToolsActivePort file doesn't exist is caused when chrome is unable to find its reference in scoped_dirXXXXX folder.

Steps taken to solve the issue

  1. I have killed all the chrome processes and chrome driver processes.
  2. Added the below code to invoke the chrome

    System.setProperty("webdriver.chrome.driver","pathto\\chromedriver.exe");    
    ChromeOptions options = new ChromeOptions();
    options.setExperimentalOption("useAutomationExtension", false);
    WebDriver driver = new ChromeDriver(options);
    driver.get(url);

Using the above steps I was able to resolve the issue.

Thanks for your answers.

Problems when running selenium with chromedriver_autoinstaller in Python

The problem was that Docker requires chrome_options.add_argument("--headless") when running chrome in selenium



Related Topics



Leave a reply



Submit