feat(driver): add W3C actions helper and Driver.swipe_path
This commit is contained in:
@@ -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,)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user