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

Method __hash__

py/selenium/webdriver/remote/shadowroot.py:44–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 return self._id == other_shadowroot._id
43
44 def __hash__(self) -> int:
45 return int(md5_hash(self._id.encode("utf-8")).hexdigest(), 16)
46
47 def __repr__(self) -> str:
48 return '<{0.__module__}.{0.__name__} (session="{1}", element="{2}")>'.format(

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected