🤬
  • Render Extract Configurable Delay Seconds should also apply after executing any JS #958

  • Loading...
  • dgtlmoon committed 2 years ago
    3705ce66
    1 parent f7ea9941
  • ■ ■ ■ ■ ■
    changedetectionio/content_fetcher.py
    skipped 401 lines
    402 402   
    403 403   raise JSActionExceptions(status_code=response.status, screenshot=error_screenshot, message=str(e), url=url)
    404 404   
     405 + else:
     406 + # JS eval was run, now we also wait some time if possible to let the page settle
     407 + if self.render_extract_delay:
     408 + page.wait_for_timeout(self.render_extract_delay * 1000)
     409 + 
    405 410   page.wait_for_timeout(500)
    406 411   
    407 412   self.content = page.content()
    skipped 215 lines
Please wait...
Page is in error, reload to recover