Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/microsoft/playwright-python
/ accept
Method
accept
playwright/_impl/_dialog.py:51–52 ·
view source on GitHub ↗
(self, promptText: str = None)
Source
from the content-addressed store, hash-verified
49
return
self._page
50
51
async
def
accept(self, promptText: str = None) -> None:
52
await self._channel.send(
"accept"
, None, locals_to_params(locals()))
53
54
async
def
dismiss(self) -> None:
55
try
:
Callers
11
_on_dialog
Method · 0.45
on_dialog
Function · 0.45
test_dialog_event_should_work1
Function · 0.45
test_dialog_event_should_work_in_popup
Function · 0.45
test_dialog_event_should_work_in_popup_2
Function · 0.45
test_dialog_event_should_work_with_inline_script_tag
Function · 0.45
test_close_should_run_beforeunload_if_asked_for
Function · 0.45
on_dialog
Function · 0.45
handle_page_dialog
Function · 0.45
handle_dialog
Function · 0.45
test_dialog_event_should_work_with_inline_script_tag
Function · 0.45
Calls
2
locals_to_params
Function · 0.90
send
Method · 0.45
Tested by
10
on_dialog
Function · 0.36
test_dialog_event_should_work1
Function · 0.36
test_dialog_event_should_work_in_popup
Function · 0.36
test_dialog_event_should_work_in_popup_2
Function · 0.36
test_dialog_event_should_work_with_inline_script_tag
Function · 0.36
test_close_should_run_beforeunload_if_asked_for
Function · 0.36
on_dialog
Function · 0.36
handle_page_dialog
Function · 0.36
handle_dialog
Function · 0.36
test_dialog_event_should_work_with_inline_script_tag
Function · 0.36