feat: добавление метода wait_for_timeout
parent
b2a32f70dc
commit
d7cbedafa4
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue