Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Support devtools and custom profile directory for Chrome via environment variable #628

Conversation

matthewlowry
Copy link
Contributor

Offers a solution for #627.

With this change you can set BROWSER_PROFILE_DIR in the container environment and the devtools proxy process will use that location when looking for the browser profile. E.g.:

{
  "capabilities": {
    "alwaysMatch": {
      "browserName": "chrome",
      "browserVersion": "114.0",
      "goog:chromeOptions": {
        "args": [ "user-data-dir=/profiles/custom.XYZ" ]
      },
      "selenoid:options": {
        "env": [ "BROWSER_PROFILE_DIR=/profiles/custom.XYZ" ]
      }
    }
  }
}

@vania-pooh vania-pooh merged commit 5d4bb07 into aerokube:master Jul 3, 2023
@vania-pooh
Copy link
Member

@matthewlowry thank you for contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants