We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 758f676 commit af52bf2Copy full SHA for af52bf2
py/selenium/webdriver/remote/webdriver.py
@@ -722,10 +722,10 @@ def set_page_load_timeout(self, time_to_wait):
722
:Usage:
723
driver.set_page_load_timeout(30)
724
"""
725
- if self.w3c:
+ try:
726
self.execute(Command.SET_TIMEOUTS, {
727
'pageLoad': int(float(time_to_wait) * 1000)})
728
- else:
+ except WebDriverException:
729
730
'ms': float(time_to_wait) * 1000,
731
'type': 'page load'})
0 commit comments