MCPcopy Index your code
hub / github.com/microsoft/playwright-python / test_sync_set_default_timeout

Function test_sync_set_default_timeout

tests/sync/test_sync.py:263–267  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

261
262
263def test_sync_set_default_timeout(page: Page) -> None:
264 page.set_default_timeout(1)
265 with pytest.raises(TimeoutError) as exc:
266 page.wait_for_function("false")
267 assert "Timeout 1ms exceeded." in exc.value.message
268
269
270def test_close_should_reject_all_promises(

Callers

nothing calls this directly

Calls 2

set_default_timeoutMethod · 0.45
wait_for_functionMethod · 0.45

Tested by

no test coverage detected