MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / _EventRef

Class _EventRef

py/private/_script_handlers.py:354–361  ·  view source on GitHub ↗

Minimal event wrapper accepted by WebSocketConnection callbacks.

Source from the content-addressed store, hash-verified

352
353
354class _EventRef:
355 """Minimal event wrapper accepted by WebSocketConnection callbacks."""
356
357 def __init__(self, event_class: str) -> None:
358 self.event_class = event_class
359
360 def from_json(self, params: Any) -> Any:
361 return params
362
363
364def _subscribe_to_event(conn: Any, event: str) -> str | None:

Callers 4

add_handlerMethod · 0.85
remove_handlerMethod · 0.85
add_handlerMethod · 0.85
remove_handlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected