Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChromeDriver: Add support for "LATEST_RELEASE_" #386

Closed
roniemartinez opened this issue Jun 3, 2022 · 5 comments
Closed

ChromeDriver: Add support for "LATEST_RELEASE_" #386

roniemartinez opened this issue Jun 3, 2022 · 5 comments
Assignees

Comments

@roniemartinez
Copy link

There are extra rules to get the latest release specified in https://chromedriver.chromium.org/downloads/version-selection

As a summary, here are important notes taken from the link:

Take the Chrome version number, remove the last part, and append the result to URL "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_". For example, with Chrome version 72.0.3626.81, you'd get a URL "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_72.0.3626".

Use the URL created in the last step to retrieve a small file containing the version of ChromeDriver to use. For example, the above URL will get your a file containing "72.0.3626.69". (The actual number may change in the future, of course.)

Use the version number retrieved from the previous step to construct the URL to download ChromeDriver. With version 72.0.3626.69, the

There are more rules included in the link.

@roniemartinez
Copy link
Author

@SergeyPirogov
Copy link
Owner

Could you please submit a PR for this?

@roniemartinez
Copy link
Author

@SergeyPirogov Sure!

@aleksandr-kotlyar
Copy link
Collaborator

aleksandr-kotlyar commented Feb 5, 2023

Whats the purpouse? It already works underhood of webdriver-manager through the LATEST_RELEASE_<version>

@roniemartinez
Copy link
Author

roniemartinez commented May 18, 2023

OK got a notification from the issue again but just making clear what the version selection was meant for.

As I've tested with several versions, webdrivers are not readily available for each version so you need to remove the last numbers in the version string. You can see the explanation from the link on the description.

We always provide ChromeDriver for the current Stable and Beta versions of Chrome. However, if you use Chrome from Dev or Canary channel, or build your own custom version of Chrome, It is possible that there is no available ChromeDriver that officially supports it.

I am not planning to reopen this issue as my code works for me. Thank you.

EDIT: This is also used to get driver patches so you need to strip the patch number from the version.

After the initial download, it is recommended that you occasionally go through the above process again to see if there are any bug fix releases.

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

Successfully merging a pull request may close this issue.

3 participants