From d7cbedafa4e40c650339da79ed59598eb0d6492f Mon Sep 17 00:00:00 2001 From: Radislav Date: Wed, 10 Dec 2025 14:19:11 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=B0?= =?UTF-8?q?=20wait=5Ffor=5Ftimeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/base_component.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/base_component.py b/components/base_component.py index 12df71d..d106690 100644 --- a/components/base_component.py +++ b/components/base_component.py @@ -48,6 +48,15 @@ class BaseComponent: else: raise TypeError("locator value should be string type or Locator type") + def wait_for_timeout(self, timeout: int) -> None: + """ + Ожидает указанное количество миллисекунд. + + Args: + timeout: Время ожидания в миллисекундах + """ + self.page.wait_for_timeout(timeout) + # Закомментированный код сохранен без изменений # def wait_for_all_elements(self, locator: Locator, timeout=5000): # loc = self.get_locator(locator)