Skip to content

Commit 6ef8cb8

Browse files
71n9symonk
andauthored
更新 options.py (#11623)
Co-authored-by: Simon K <[email protected]>
1 parent 4a8c25c commit 6ef8cb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)