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

Method __init__

py/private/_event_manager.py:48–50  ·  view source on GitHub ↗
(self, bidi_event: str, event_class: type)

Source from the content-addressed store, hash-verified

46 """Wrapper to provide event_class attribute for WebSocketConnection callbacks."""
47
48 def __init__(self, bidi_event: str, event_class: type):
49 self.event_class = bidi_event # WebSocket expects the BiDi event name as event_class
50 self._python_class = event_class # Keep reference to Python dataclass for deserialization
51
52 def from_json(self, params: dict) -> Any:
53 """Deserialize event params into the wrapped Python dataclass.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected