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

Method _handle_data

py/private/cdp.py:263–272  ·  view source on GitHub ↗

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

(self, data)

Source from the content-addressed store, hash-verified

261 proxy.value = event
262
263 def _handle_data(self, data):
264 """Handle incoming WebSocket data.
265
266 Args:
267 data: a JSON dictionary
268 """
269 if "id" in data:
270 self._handle_cmd_response(data)
271 else:
272 self._handle_event(data)
273
274 def _handle_cmd_response(self, data: dict):
275 """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