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

Method once

playwright/sync_api/_generated.py:15651–15655  ·  view source on GitHub ↗

Emitted when a new browser context is created.

(
        self, event: Literal["context"], f: typing.Callable[["BrowserContext"], "None"]
    )

Source from the content-addressed store, hash-verified

15649
15650 @typing.overload
15651 def once(
15652 self, event: Literal["context"], f: typing.Callable[["BrowserContext"], "None"]
15653 ) -> None:
15654 """
15655 Emitted when a new browser context is created."""
15656
15657 @typing.overload
15658 def once(

Callers

nothing calls this directly

Calls 1

onceMethod · 0.45

Tested by

no test coverage detected