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

Method once

playwright/sync_api/_generated.py:8322–8326  ·  view source on GitHub ↗

Emitted when the page closes.

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

Source from the content-addressed store, hash-verified

8320
8321 @typing.overload
8322 def once(
8323 self, event: Literal["close"], f: typing.Callable[["Page"], "None"]
8324 ) -> None:
8325 """
8326 Emitted when the page closes."""
8327
8328 @typing.overload
8329 def once(

Calls

no outgoing calls