MCPcopy Create free account
hub / github.com/Vinyzu/Botright / throw

Function throw

tests/playwright_tests/test_page.py:350–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348@pytest.mark.asyncio
349async def test_expose_function_should_throw_exception_in_page_context(page):
350 def throw():
351 raise Exception("WOOF WOOF")
352
353 await page.expose_function("woof", lambda: throw())
354 result = await page.evaluate(

Calls

no outgoing calls

Tested by

no test coverage detected