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

Method __init__

py/selenium/webdriver/common/actions/interaction.py:41–43  ·  view source on GitHub ↗
(self, source, duration: float = 0)

Source from the content-addressed store, hash-verified

39
40class Pause(Interaction):
41 def __init__(self, source, duration: float = 0) -> None:
42 super().__init__(source)
43 self.duration = duration
44
45 def encode(self) -> dict[str, str | int]:
46 return {"type": self.PAUSE, "duration": int(self.duration * 1000)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected