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

Method _wrap_handler

playwright/_impl/_sync_base.py:117–122  ·  view source on GitHub ↗
(
        self, handler: Union[Callable[..., Any], Any]
    )

Source from the content-addressed store, hash-verified

115 return task.result()
116
117 def _wrap_handler(
118 self, handler: Union[Callable[..., Any], Any]
119 ) -> Callable[..., None]:
120 if callable(handler):
121 return mapping.wrap_handler(handler)
122 return handler
123
124 def on(self, event: Any, f: Any) -> None:
125 """Registers the function ``f`` to the event name ``event``."""

Callers 15

onMethod · 0.95
onceMethod · 0.95
remove_listenerMethod · 0.95
expect_eventMethod · 0.45
wait_for_eventMethod · 0.45
on_messageMethod · 0.45
on_closeMethod · 0.45
expect_navigationMethod · 0.45
wait_for_urlMethod · 0.45
expect_eventMethod · 0.45
startMethod · 0.45
frameMethod · 0.45

Calls 1

wrap_handlerMethod · 0.80

Tested by

no test coverage detected