feat(driver): add Driver.long_press on WDA and Android
This commit is contained in:
@@ -27,6 +27,13 @@ class Driver(ABC):
|
||||
def tap(self, x: float, y: float) -> None:
|
||||
"""Tap the screen at the given coordinates."""
|
||||
|
||||
@abstractmethod
|
||||
def long_press(self, x: float, y: float, duration_ms: int = 1200) -> None:
|
||||
"""Press and hold at the given coordinates for ``duration_ms``.
|
||||
|
||||
Some platforms ignore ``duration_ms`` (fixed system hold duration).
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def swipe(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user