From f87c96d2957cc4445d91f158f1f258d6599c1e88 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 30 Nov 2022 18:53:06 +0100 Subject: [PATCH] fix timeouts --- changedetectionio/blueprint/browser_steps/browser_steps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/changedetectionio/blueprint/browser_steps/browser_steps.py b/changedetectionio/blueprint/browser_steps/browser_steps.py index fa7d20cc..7fc7ca3b 100644 --- a/changedetectionio/blueprint/browser_steps/browser_steps.py +++ b/changedetectionio/blueprint/browser_steps/browser_steps.py @@ -90,7 +90,7 @@ class steppable_browser_interface(): return elem = self.page.get_by_text(value) if elem.count(): - elem.first.click(delay=randint(200, 500)) + elem.first.click(delay=randint(200, 500), timeout=3000) def action_enter_text_in_field(self, selector, value): if not len(selector.strip()): @@ -146,10 +146,10 @@ class steppable_browser_interface(): self.page.keyboard.press("PageDown", delay=randint(200, 500)) def action_check_checkbox(self, selector, value): - self.page.locator(selector).check() + self.page.locator(selector).check(timeout=1000) def action_uncheck_checkbox(self, selector, value): - self.page.locator(selector).uncheck() + self.page.locator(selector, timeout=1000).uncheck(timeout=1000) # Responsible for maintaining a live 'context' with browserless