Skip to content

[🐛 Bug]: Selenium Manager - SE_BROWSER_MIRROR_URL/SE_DRIVER_MIRROR_URL don't suffice for downloading chrome binaries >= 115 from mirror #13460

Closed as not planned
@tophexbit

Description

@tophexbit

What happened?

DEBUG	Found chromedriver 119.0.6045.105 in PATH: /usr/bin/chromedriver
DEBUG	chrome detected at /usr/bin/google-chrome
DEBUG	Running command: /usr/bin/google-chrome --version
DEBUG	Output: "Google Chrome 119.0.6045.199 "
DEBUG	Detected browser: chrome 119.0.6045.199
DEBUG	Discovered chrome version (119) different to specified browser version (120)
DEBUG	Discovering versions from https://our.mirror/artifactory/chromedriver-meta-remote/chrome-for-testing/known-good-versions-with-downloads.json
DEBUG	Required browser: chrome 120.0.6082.0
DEBUG	Downloading chrome 120.0.6082.0 from https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/120.0.6082.0/linux64/chrome-linux64.zip

The mirrored JSON files still include the original download URLs, which results in chrome-linux64.zip still being downloaded from the original URL.

Of course this is a general issue with chromelabs/chrome-for-testing mirrors, but there are solutions for it. For example node-chromedriver uses an additional ENV variable to handle this issue:

  • CHROMEDRIVER_CDNURL is analog to SE_CHROMEDRIVER_MIRROR_URL
  • CHROMEDRIVER_CDNBINARIESURL has no analog in Selenium Manager

node-chromedriver uses CHROMEDRIVER_CDNBINARIESURL to put together actual mirror download URLs: https://github.com/giggio/node-chromedriver/blob/main/install.js#L131

Am I wrong to assume that without such a variable in Selenium Manager we could only solve it by providing a mirror for known-good-versions-with-downloads.json (and the other -with-downloads.json files) which supplies the files with replaced download URLs?

Would be great if Selenium Manager would handle this issue like node-chromedriver does 🙂

How can we reproduce the issue?

Use SE_CHROME_MIRROR_URL with a mirror for the JSON files of https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints

Relevant log output

DEBUG	Found chromedriver 119.0.6045.105 in PATH: /usr/bin/chromedriver
DEBUG	chrome detected at /usr/bin/google-chrome
DEBUG	Running command: /usr/bin/google-chrome --version
DEBUG	Output: "Google Chrome 119.0.6045.199 "
DEBUG	Detected browser: chrome 119.0.6045.199
DEBUG	Discovered chrome version (119) different to specified browser version (120)
DEBUG	Discovering versions from https://our.mirror/artifactory/chromedriver-meta-remote/chrome-for-testing/known-good-versions-with-downloads.json
DEBUG	Required browser: chrome 120.0.6082.0
DEBUG	Downloading chrome 120.0.6082.0 from https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/120.0.6082.0/linux64/chrome-linux64.zip

Operating System

Ubuntu

Selenium version

Python webdriver-manager-4.0.1

What are the browser(s) and version(s) where you see this issue?

At least all > 114

What are the browser driver(s) and version(s) where you see this issue?

At least all > 114

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions