MCPcopy Create free account
hub / github.com/microsoft/playwright-python / predicate

Function predicate

tests/async/test_page.py:359–361  ·  view source on GitHub ↗
(response: Any)

Source from the content-addressed store, hash-verified

357 await page.goto(server.EMPTY_PAGE)
358
359 async def predicate(response: Any) -> bool:
360 await asyncio.sleep(0)
361 return response.url == server.PREFIX + "/digits/2.png"
362
363 async with page.expect_response(predicate) as response_info:
364 await page.evaluate(

Callers 1

_evaluate_predicateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected