je_web_runner.api.mobile

Façade: Appium gestures.

exception je_web_runner.api.mobile.AppiumGestureError

Bases: WebRunnerException

Raised when the driver cannot execute the gesture.

class je_web_runner.api.mobile.Point(x: 'int', y: 'int')

Bases: object

x: int
y: int
je_web_runner.api.mobile.double_tap(driver: Any, point: Point, gap_ms: int = 100) None

Two quick taps at point.

je_web_runner.api.mobile.long_press(driver: Any, point: Point, duration_ms: int = 1000) None

Hold the finger at point for duration_ms.

je_web_runner.api.mobile.pinch(driver: Any, rect: Tuple[int, int, int, int], scale: float = 0.5, speed: int = 1500) None

Pinch the area inside rect to scale (< 1 = zoom out, > 1 = zoom in).

je_web_runner.api.mobile.scroll(driver: Any, direction: str, rect: Tuple[int, int, int, int] | None = None, percent: float = 0.7) None

Scroll direction (up / down / left / right).

je_web_runner.api.mobile.swipe(driver: Any, start: Point, end: Point, duration_ms: int = 250) None

Swipe from start to end over duration_ms milliseconds.