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

Method predicate

playwright/_impl/_frame.py:246–255  ·  view source on GitHub ↗
(event: Any)

Source from the content-addressed store, hash-verified

244 waiter.log(f"waiting for navigation{to_url} until '{waitUntil}'")
245
246 def predicate(event: Any) -> bool:
247 # Any failed navigation results in a rejection.
248 if event.get("error"):
249 return True
250 waiter.log(f' navigated to "{event["url"]}"')
251 return url_matches(
252 cast("Page", self._page)._browser_context._base_url,
253 event["url"],
254 url,
255 )
256
257 waiter.wait_for_event(
258 self._event_emitter,

Callers

nothing calls this directly

Calls 3

url_matchesFunction · 0.90
logMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected