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

Method on

playwright/sync_api/_generated.py:15565–15570  ·  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

15563
15564 @typing.overload
15565 def on(
15566 self, event: Literal["close"], f: typing.Callable[["CDPSession"], "None"]
15567 ) -> None:
15568 """
15569 Emitted when the session is closed, either because the target was closed or `session.detach()` was called.
15570 """
15571
15572 @typing.overload
15573 def on(self, event: str, f: typing.Callable[..., None]) -> None: ...

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected