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

Method encode

py/selenium/webdriver/common/actions/key_input.py:28–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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]}
30
31 def create_key_down(self, key) -> None:
32 self.add_action(TypingInteraction(self, "keyDown", key))

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected