MCPcopy Create free account
hub / github.com/microsoft/playwright-python / _on_event

Method _on_event

playwright/_impl/_cdp_session.py:35–37  ·  view source on GitHub ↗
(self, params: Any)

Source from the content-addressed store, hash-verified

33 self._channel.on("close", lambda _: self.emit(CDPSession.Events.Close, self))
34
35 def _on_event(self, params: Any) -> None:
36 self.emit(params["method"], params.get("params"))
37 self.emit(CDPSession.Events.Event, params)
38
39 async def send(self, method: str, params: Dict = None) -> Dict:
40 return await self._channel.send("send", None, locals_to_params(locals()))

Callers 1

__init__Method · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected