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

Download ChromeDriver MatchingBrowser version network error #331

Closed
wants to merge 1 commit into from

Conversation

RayLei2333
Copy link
Contributor

My area is in China,In use
new DriverManager().SetUpDriver(new ChromeConfig(), VersionResolveStrategy.MatchingBrowser);
a network error will occur.
So I used postman to test the download json link in the code "https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json", and found that if the User-Agent, Accept, and Accept-Encoding request headers are added, it takes about a few hundred milliseconds to get the json. If the request headers are not added, it takes about 2-3 minutes, or even longer, or HttpClient will throw a Cancel Task exception.
微信图片_20240619145337
微信图片_20240619145343

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

Successfully merging this pull request may close these issues.

3 participants