kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Playwright - log console errors to output
rodzic
46cb5cff66
commit
169c293143
|
@ -309,6 +309,9 @@ class base_html_playwright(Fetcher):
|
||||||
page.set_default_navigation_timeout(90000)
|
page.set_default_navigation_timeout(90000)
|
||||||
page.set_default_timeout(90000)
|
page.set_default_timeout(90000)
|
||||||
|
|
||||||
|
# Listen for all console events and handle errors
|
||||||
|
page.on("console", lambda msg: print(f"Playwright console: Watch URL: {url} {msg.type}: {msg.text} {msg.args}"))
|
||||||
|
|
||||||
# Bug - never set viewport size BEFORE page.goto
|
# Bug - never set viewport size BEFORE page.goto
|
||||||
|
|
||||||
# Waits for the next navigation. Using Python context manager
|
# Waits for the next navigation. Using Python context manager
|
||||||
|
|
Ładowanie…
Reference in New Issue