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

Method dismiss

playwright/_impl/_dialog.py:54–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 await self._channel.send("accept", None, locals_to_params(locals()))
53
54 async def dismiss(self) -> None:
55 try:
56 await self._channel.send(
57 "dismiss",
58 None,
59 )
60 except Exception as e:
61 if is_target_closed_error(e):
62 return
63 raise

Calls 2

is_target_closed_errorFunction · 0.90
sendMethod · 0.45