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
+5
View File
@@ -64,6 +64,11 @@ class FakeDriver(Driver):
) -> None:
self.calls.append(("swipe", (start_x, start_y, end_x, end_y, duration_ms)))
def swipe_path(
self, waypoints: list[tuple[float, float]], duration_ms: int
) -> None:
self.calls.append(("swipe_path", (tuple(waypoints), duration_ms)))
def input(self, text: str) -> None:
self.calls.append(("input", (text,)))