feat(driver): add W3C actions helper and Driver.swipe_path

This commit is contained in:
2026-07-15 19:04:57 +08:00
parent ff91bd4f70
commit c25ccb491d
10 changed files with 189 additions and 0 deletions
+6
View File
@@ -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."""