feat(driver): add W3C actions helper and Driver.swipe_path
This commit is contained in:
@@ -45,6 +45,12 @@ class Driver(ABC):
|
||||
) -> None:
|
||||
"""Swipe between two screen coordinates."""
|
||||
|
||||
@abstractmethod
|
||||
def swipe_path(
|
||||
self, waypoints: list[tuple[float, float]], duration_ms: int
|
||||
) -> None:
|
||||
"""Swipe through a sequence of waypoints in one continuous touch."""
|
||||
|
||||
@abstractmethod
|
||||
def input(self, text: str) -> None:
|
||||
"""Input text into the current focused field."""
|
||||
|
||||
Reference in New Issue
Block a user