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

Method _safe_page

playwright/_impl/_network.py:331–335  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

329 return page._closed_or_crashed_future
330
331 def _safe_page(self) -> "Optional[Page]":
332 frame = from_nullable_channel(self._initializer.get("frame"))
333 if not frame:
334 return None
335 return cast("Frame", frame)._page
336
337
338class Route(ChannelOwner):

Callers 1

_on_routeMethod · 0.80

Calls 2

from_nullable_channelFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected