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

Method _enum_ref

py/generate_bidi_protocol.py:676–680  ·  view source on GitHub ↗
(self, node: dict)

Source from the content-addressed store, hash-verified

674 return name if "." in name else None
675
676 def _enum_ref(self, node: dict) -> str | None:
677 ref = node.get("ref") or (node.get("list") or {}).get("ref")
678 if ref and self.types.get(ref, {}).get("kind") == "enum":
679 return ref
680 return None
681
682 # The runtime-checkable scalar type of a field (or of a list's elements),
683 # following alias chains (e.g. js-uint -> integer). None for a record ref,

Callers 1

_field_irMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected