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

Method __init__

py/generate_bidi_protocol.py:307–313  ·  view source on GitHub ↗
(self, raw: dict)

Source from the content-addressed store, hash-verified

305
306class Schema:
307 def __init__(self, raw: dict) -> None:
308 self.types: dict = raw["types"]
309 self.commands: list = raw["commands"]
310 self.events: list = raw["events"]
311 self._domain_links: dict = raw.get("domains", {})
312 self._apply_vendor(raw.get("vendor") or {})
313 self._promote_command_params_records()
314
315 def _apply_vendor(self, vendor: dict) -> None:
316 """Fold the schema's vendor overlays into the types they extend.

Callers

nothing calls this directly

Calls 3

_apply_vendorMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected