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

Method once

playwright/sync_api/_generated.py:15579–15584  ·  view source on GitHub ↗

Emitted when the session is closed, either because the target was closed or `session.detach()` was called.

(
        self, event: Literal["close"], f: typing.Callable[["CDPSession"], "None"]
    )

Source from the content-addressed store, hash-verified

15577
15578 @typing.overload
15579 def once(
15580 self, event: Literal["close"], f: typing.Callable[["CDPSession"], "None"]
15581 ) -> None:
15582 """
15583 Emitted when the session is closed, either because the target was closed or `session.detach()` was called.
15584 """
15585
15586 @typing.overload
15587 def once(self, event: str, f: typing.Callable[..., None]) -> None: ...

Callers

nothing calls this directly

Calls 1

onceMethod · 0.45

Tested by

no test coverage detected