diff --git a/changedetectionio/content_fetcher.py b/changedetectionio/content_fetcher.py index af082a95..7ea31de4 100644 --- a/changedetectionio/content_fetcher.py +++ b/changedetectionio/content_fetcher.py @@ -293,10 +293,13 @@ class base_html_playwright(Fetcher): # Better to not use any smarts from Playwright and just wait an arbitrary number of seconds # This seemed to solve nearly all 'TimeoutErrors' extra_wait = int(os.getenv("WEBDRIVER_DELAY_BEFORE_CONTENT_READY", 5)) + self.render_extract_delay + p=time.time() page.wait_for_timeout(extra_wait * 1000) except playwright._impl._api_types.TimeoutError as e: raise EmptyReply(url=url, status_code=None) + r=time.time()-p + x=1 if response is None: raise EmptyReply(url=url, status_code=None) diff --git a/changedetectionio/tests/test_trigger.py b/changedetectionio/tests/test_trigger.py index 66b8121e..21174e32 100644 --- a/changedetectionio/tests/test_trigger.py +++ b/changedetectionio/tests/test_trigger.py @@ -43,7 +43,7 @@ def set_modified_with_trigger_text_response(): Some NEW nice initial text
Which is across multiple lines
- foobar123 + Add to cart