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

Function test_expose_function

tests/playwright_tests/test_page.py:342–345  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

340
341@pytest.mark.asyncio
342async def test_expose_function(page):
343 await page.expose_function("compute", lambda a, b: a * b)
344 result = await page.evaluate("compute(9, 4)")
345 assert result == 36
346
347
348@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

expose_functionMethod · 0.45

Tested by

no test coverage detected