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

Method _dispatch

py/private/_script_handlers.py:343–352  ·  view source on GitHub ↗
(params: Any)

Source from the content-addressed store, hash-verified

341 entry_type = self._CATEGORY_ENTRY_TYPES[category]
342
343 def _dispatch(params: Any) -> None:
344 if not isinstance(params, dict) or params.get("type") != entry_type:
345 return
346 if legacy:
347 payload = _legacy_log_entry(params)
348 elif category == self.CONSOLE:
349 payload = console_message_from_log_entry(params)
350 else:
351 payload = script_error_from_log_entry(params)
352 callback(payload)
353
354 conn = self._script._conn
355 with self._lock:

Callers

nothing calls this directly

Calls 5

_legacy_log_entryFunction · 0.85
callbackFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected