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

Method on

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

15629
15630 @typing.overload
15631 def on(
15632 self, event: Literal["context"], f: typing.Callable[["BrowserContext"], "None"]
15633 ) -> None:
15634 """
15635 Emitted when a new browser context is created."""
15636
15637 @typing.overload
15638 def on(

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected