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

"webdriver-manager update" downloads chrome driver version 98.0.4758.80 instead of version 98.0.4758.102 #509

Open
s-werking opened this issue Feb 16, 2022 · 2 comments

Comments

@s-werking
Copy link

When the update runs, a chromedriver_98.0.4578.102.zip folder is made but the downloaded chromedriver within that zipped folder is version 98.0.4578.80. See screenshots below for more information about the issue:
image

image

image

@awbuboltz
Copy link

The reason for this issue is that https://chromedriver.storage.googleapis.com/ has the list of versions sorted alphabetically.

The getSpecificChromeDriverVersion function of chrome_xml.ts does not factor that in, and assumes that whatever semver comes last in the list, must be the highest.

In this case, 98.0.4758.102 is hit first as 102 comes before 80 alphabetically. Once 98.0.4758.80 is hit, (last in the list of the 4758 versions) it is chosen as the highest and is what gets downloaded. The zip gets renamed to 98.0.4758.102 because the code assumes that it was found.

@awbuboltz
Copy link

Here's a link to the fix I put in my fork: awbuboltz@4870239

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

No branches or pull requests

2 participants