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

Method wait_for_url

playwright/_impl/_frame.py:278–291  ·  view source on GitHub ↗
(
        self,
        url: URLMatch,
        waitUntil: DocumentLoadState = None,
        timeout: float = None,
    )

Source from the content-addressed store, hash-verified

276 return EventContextManagerImpl(asyncio.create_task(continuation()))
277
278 async def wait_for_url(
279 self,
280 url: URLMatch,
281 waitUntil: DocumentLoadState = None,
282 timeout: float = None,
283 ) -> None:
284 assert self._page
285 if url_matches(self._page._browser_context._base_url, self.url, url):
286 await self._wait_for_load_state_impl(state=waitUntil, timeout=timeout)
287 return
288 async with self.expect_navigation(
289 url=url, waitUntil=waitUntil, timeout=timeout
290 ):
291 pass
292
293 async def wait_for_load_state(
294 self,

Callers

nothing calls this directly

Calls 3

expect_navigationMethod · 0.95
url_matchesFunction · 0.90

Tested by

no test coverage detected