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

Method on

playwright/_impl/_sync_base.py:124–126  ·  view source on GitHub ↗

Registers the function ``f`` to the event name ``event``.

(self, event: Any, f: Any)

Source from the content-addressed store, hash-verified

122 return handler
123
124 def on(self, event: Any, f: Any) -> None:
125 """Registers the function ``f`` to the event name ``event``."""
126 self._impl_obj.on(event, self._wrap_handler(f))
127
128 def once(self, event: Any, f: Any) -> None:
129 """The same as ``self.on``, except that the listener is automatically

Callers 15

__init__Method · 0.45
connectMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

_wrap_handlerMethod · 0.95

Tested by

no test coverage detected