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.
2 parents a5ac62a + 48d883b commit f66639eCopy full SHA for f66639e
1 file changed
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