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

Method __init__

py/selenium/webdriver/common/actions/key_input.py:23–26  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

21
22class KeyInput(InputDevice):
23 def __init__(self, name: str) -> None:
24 super().__init__()
25 self.name = name
26 self.type = interaction.KEY
27
28 def encode(self) -> dict:
29 return {"type": self.type, "id": self.name, "actions": [acts.encode() for acts in self.actions]}

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected