We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a2651 commit 81e8c57Copy full SHA for 81e8c57
1 file changed
src/reactpy/testing/display.py
@@ -75,6 +75,10 @@ async def configure_page(self) -> None:
75
self.page = await self.exit_stack.enter_async_context(self.page)
76
self.page.set_default_navigation_timeout(self.timeout * 1000)
77
self.page.set_default_timeout(self.timeout * 1000)
78
+ self.page.on(
79
+ "requestfailed",
80
+ lambda x: print(f"BROWSER LOAD ERROR: {x.url}\n{x.failure}"), # noqa: T201
81
+ )
82
self.page.on("console", lambda x: print(f"BROWSER CONSOLE: {x.text}")) # noqa: T201
83
self.page.on(
84
"pageerror",
0 commit comments