From 3dc8903766f121e638352ff9c27f87bd8bceb0ae Mon Sep 17 00:00:00 2001 From: Sandeep Suryaprasad <26169602+sandeepsuryaprasad@users.noreply.github.com> Date: Fri, 9 Jun 2023 14:32:49 +0530 Subject: [PATCH] =?UTF-8?q?[py]=20instance=20attributes=20in=20Timeout=20c?= =?UTF-8?q?lass=20are=20now=20being=20set=20through=20setter=E2=80=A6=20(#?= =?UTF-8?q?12186)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit instance attributes in Timeout class are now being set through setter method --- py/selenium/webdriver/common/timeouts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/selenium/webdriver/common/timeouts.py b/py/selenium/webdriver/common/timeouts.py index 9b701c2508bf0..82ce537e40cee 100644 --- a/py/selenium/webdriver/common/timeouts.py +++ b/py/selenium/webdriver/common/timeouts.py @@ -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: