Ability to specify JS before running change-detection (#744)

This commit is contained in:
dgtlmoon
2022-07-10 13:56:01 +02:00
committed by GitHub
parent 169c293143
commit fae1164c0b
6 changed files with 27 additions and 8 deletions

View File

@@ -106,6 +106,9 @@ class perform_site_check():
elif system_webdriver_delay is not None:
fetcher.render_extract_delay = system_webdriver_delay
if watch['webdriver_js_execute_code'] is not None and watch['webdriver_js_execute_code'].strip():
fetcher.webdriver_js_execute_code = watch['webdriver_js_execute_code']
fetcher.run(url, timeout, request_headers, request_body, request_method, ignore_status_code, watch['css_filter'])
fetcher.quit()