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 4a8c25c commit 6ef8cb8Copy full SHA for 6ef8cb8
py/selenium/webdriver/common/options.py
@@ -127,7 +127,7 @@ def timeouts(self, timeouts: dict) -> None:
127
128
:param timeouts: values in milliseconds for implicit wait, page load and script timeout
129
"""
130
- if all(x in timeouts.keys() for x in ("implicit", "pageLoad", "script")):
+ if all(x in ("implicit", "pageLoad", "script") for x in timeouts.keys()):
131
self.set_capability("timeouts", timeouts)
132
else:
133
raise ValueError("Timeout keys can only be one of the following: implicit, pageLoad, script")
0 commit comments