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

Method _handle_data

py/private/cdp.py:265–274  ·  view source on GitHub ↗

Handle incoming WebSocket data. Args: data: a JSON dictionary

(self, data)

Source from the content-addressed store, hash-verified

263 proxy.value = event
264
265 def _handle_data(self, data):
266 """Handle incoming WebSocket data.
267
268 Args:
269 data: a JSON dictionary
270 """
271 if "id" in data:
272 self._handle_cmd_response(data)
273 else:
274 self._handle_event(data)
275
276 def _handle_cmd_response(self, data: dict):
277 """Handle a response to a command.

Callers 1

_reader_taskMethod · 0.80

Calls 2

_handle_cmd_responseMethod · 0.95
_handle_eventMethod · 0.95

Tested by

no test coverage detected