Skip to content

Commit

Permalink
[py] instance attributes in Timeout class are now being set through s…
Browse files Browse the repository at this point in the history
…etter… (#12186)

instance attributes in Timeout class are now being set through setter method
  • Loading branch information
sandeepsuryaprasad authored Jun 9, 2023
1 parent a50bfe2 commit 3dc8903
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/selenium/webdriver/common/timeouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def __init__(self, implicit_wait: float = 0, page_load: float = 0, script: float
- script - Either an int or a float. The number passed in needs to how many
seconds the driver will wait.
"""
self._implicit_wait = self._convert(implicit_wait)
self._page_load = self._convert(page_load)
self._script = self._convert(script)
self.implicit_wait = implicit_wait
self.page_load = page_load
self.script = script

@property
def implicit_wait(self) -> float:
Expand Down

0 comments on commit 3dc8903

Please sign in to comment.