更新 options.py#11623
Conversation
|
You set it in the driver after creating it: |
# Part of the code of my program
options = webdriver.ChromeOptions()
options.add_experimental_option("debuggerAddress", f"127.0.0.1:{self.port}")
options.timeouts = {"pageLoad": 60000}
try:
self.chromeDriver = webdriver.Chrome(service=Service(ChromedriverPath), options=options)
except Exception as err:
print(err) # Message: timeout: Timed out receiving message from renderer: 300.000I'm trying to solve this problem |
|
That is different, you seem to be having issues creating the session. First try without this If you have more questions, please use the following channels https://www.selenium.dev/support/ |
|
Running for a long time will cause chrome to get stuck
The session has been running for a long time Running for a long time will cause chrome to get stuck |
|
I see. I was checking the docs and saw something else. Good to know. |
Codecov ReportPatch coverage has no change and project coverage change:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## trunk #11623 +/- ##
==========================================
- Coverage 55.14% 55.13% -0.02%
==========================================
Files 85 85
Lines 5652 5652
Branches 228 227 -1
==========================================
- Hits 3117 3116 -1
- Misses 2307 2309 +2
+ Partials 228 227 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
It's one of the things added with w3c that probably needs to be updated in our docs in multiple places. |
|
The matter involved in the end should be very complex |
|
Thanks, I think this is a slightly better implementation than what existed before (Enforcing every timeout was provided else giving an ambiguous error) to now making sure all keys are in the allowed sequence, this is ok for now. In future I think we should probably extract the 'known' keys and throwaway the rest without causing an error). |
Co-authored-by: Simon K <[email protected]>

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.
I want to set the pageLoad timeout
When I execute the above code, I receive an error
Description
A small change
Motivation and Context
You can set successfully after modifying the logic
Types of changes
Checklist