Skip to content

Commit e70590a

Browse files
[py] Explicitly force timeout value to float in WebDriverWait. Fixes #8050
1 parent bddd02a commit e70590a

File tree

1 file changed

+1
-1
lines changed
  • py/selenium/webdriver/support

1 file changed

+1
-1
lines changed

py/selenium/webdriver/support/wait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, driver, timeout, poll_frequency=POLL_FREQUENCY, ignored_excep
4343
until_not(lambda x: x.find_element_by_id("someId").is_displayed())
4444
"""
4545
self._driver = driver
46-
self._timeout = timeout
46+
self._timeout = float(timeout)
4747
self._poll = poll_frequency
4848
# avoid the divide by zero
4949
if self._poll == 0:

0 commit comments

Comments
 (0)