From 16858cce981da0d81c621ce5e86525b1000205e3 Mon Sep 17 00:00:00 2001 From: sandeepsuryaprasad Date: Fri, 9 Jun 2023 08:51:28 +0530 Subject: [PATCH] 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: