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

Class ScriptKey

py/selenium/webdriver/remote/script_key.py:21–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21class ScriptKey:
22 def __init__(self, id=None):
23 self._id = id or uuid.uuid4()
24
25 @property
26 def id(self):
27 return self._id
28
29 def __eq__(self, other: object) -> bool:
30 if isinstance(other, ScriptKey):
31 return self._id == other._id
32 return self._id == other
33
34 def __hash__(self) -> int:
35 return hash(self._id)
36
37 def __repr__(self) -> str:
38 return f"ScriptKey(id={self.id})"

Callers 5

pin_scriptMethod · 0.90
test_script_key_equalityFunction · 0.90
test_script_key_hashFunction · 0.90
test_script_key_reprFunction · 0.90

Calls

no outgoing calls

Tested by 4

test_script_key_equalityFunction · 0.72
test_script_key_hashFunction · 0.72
test_script_key_reprFunction · 0.72