Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/microsoft/playwright-python
/ handle_page_dialog
Function
handle_page_dialog
tests/sync/test_browsercontext_events.py:92–95 ·
view source on GitHub ↗
(dialog: Dialog)
Source
from the content-addressed store, hash-verified
90
dialog1: Optional[Dialog] = None
91
92
def
handle_page_dialog(dialog: Dialog) -> None:
93
nonlocal dialog1
94
dialog1 = dialog
95
dialog.accept(
"hello"
)
96
97
page.on(
"dialog"
, handle_page_dialog)
98
Callers
nothing calls this directly
Calls
1
accept
Method · 0.45
Tested by
no test coverage detected