Skip to content

"DevTools Request: 127.0.0.1:12585/json/version. DevTools request failed" when loading Chrome user data with a Chrome window already open #886

@douglasg14b

Description

@douglasg14b

When I create a new chrome driver in Selenium while Google Chrome is already running AND I am referencing the users settings/data (via user-data-dir). A new Chrome window will open, but my application will hang. The ChromeDriver console will display the following error each second:

DevTools Request: 127.0.0.1:12585/json/version. DevTools request failed

This will work perfectly fine in every time if I do not try and load user settings/data. If I am trying to load user setting/data it will only work if there is no instance of Chrome running on the device already.

I am not sure if this is a bug, or my own ignorance. Hopefully the later.

Versions:

  • Selenium v 2.47.0
  • ChromeDriver v 2.16.333243
  • Chrome v44.0.2403

Possibly related to: angular/protractor#1636 ?

Edit: code snippet for reference:

    ChromeDriverService driverService = ChromeDriverService.CreateDefaultService();
    //driverService.HideCommandPromptWindow = true;
    driverService.EnableVerboseLogging = true;

    string path = Environment.ExpandEnvironmentVariables("%LOCALAPPDATA%\\Google\\Chrome\\User Data");

    ChromeOptions options = new ChromeOptions();
    options.AddArguments("user-data-dir=" + path);
    options.AddArguments("--start-maximized");
    options.AddArguments("--disable-extensions");

    IWebDriver driver = new ChromeDriver(driverService, options);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions