-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Avoid waiting indefinitely on a frozen chromedriver process #14578
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
Thanks for the PR! |
…eniumHQ#14578) Add a default timeout of 2 minutes two requests to the webdriver
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
By default requests.request waits indefinitely until it gets a response. This is unfortunate if the chromedriver process froze for some reason.
This PR adds a default timeout of two minutes to those requests.
Motivation and Context
Fixes waiting indefinitely because of a frozen chromedriver process.
Types of changes
Checklist
PR Type
Bug fix
Description
remote_connection.pyto prevent indefinite waiting due to a frozen chromedriver process._requestmethod to accept atimeoutparameter and applied it to HTTP requests.Changes walkthrough 📝
remote_connection.py
Add timeout parameter to HTTP requests in remote connectionpy/selenium/webdriver/remote/remote_connection.py
timeoutparameter with a default value of 120 seconds to the_requestmethod.timeoutparameter.