Skip to content

Commit f66639e

Browse files
authored
Merge 48d883b into a5ac62a
2 parents a5ac62a + 48d883b commit f66639e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/selenium/webdriver/common/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def timeouts(self, timeouts: dict) -> None:
127127
128128
:param timeouts: values in milliseconds for implicit wait, page load and script timeout
129129
"""
130-
if all(x in timeouts.keys() for x in ("implicit", "pageLoad", "script")):
130+
if all(x in ("implicit", "pageLoad", "script") for x in timeouts.keys()):
131131
self.set_capability("timeouts", timeouts)
132132
else:
133133
raise ValueError("Timeout keys can only be one of the following: implicit, pageLoad, script")

0 commit comments

Comments
 (0)