Skip to content

Commit

Permalink
[py] Explicitly force timeout value to float in WebDriverWait. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Feb 24, 2020
1 parent bddd02a commit e70590a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/support/wait.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, driver, timeout, poll_frequency=POLL_FREQUENCY, ignored_excep
until_not(lambda x: x.find_element_by_id("someId").is_displayed())
"""
self._driver = driver
self._timeout = timeout
self._timeout = float(timeout)
self._poll = poll_frequency
# avoid the divide by zero
if self._poll == 0:
Expand Down

0 comments on commit e70590a

Please sign in to comment.