Swiping your way through Appium
summary
Shows how Appium actually performs swipes and pinch/zoom using WebDriverIO JavaScript: constructs performActions with pointer type touch, unique ids like finger1/finger2, and coordinates computed from getElementRect (center = x + width/2). Demonstrates a cross‑platform strategy: loop up to five scroll attempts to find an element, calculate start/end y and speed, then run simultaneous two‑finger zoom on iPhone 11 and Pixel emulators. Recommends Actions API for complex/three‑finger gestures and mobile gesture shortcuts for simple, driver‑specific quick wins; shows enabling Android “Show touches/Pointer location” to debug.
AI-written summary · about
chapters (19)
- 0:00Intro
- 0:38Gestures
- 2:15Simple example
- 3:15Documentation
- 4:37Touch Perform
- 7:22Performing actions
- 11:02Scroll
- 11:28Walkthrough
- 19:36Pinch Zoom
- 23:03Finger Actions
- 23:46Demo
- 25:55Puzzle
- 26:30Easy Way
- 30:55Scroll Gesture
- 32:40Code
- 34:27Tip
- 35:48Advice
- 37:53Resources
- 38:30Questions
related talks
32mAdding Gestures to WebDriver, What a Drag
45mNative Mobile Commands In Appium
43mUnlocking New Testing Capabilities with Espresso Driver
57mAppium: Automation for Apps
42mHow We Use Appium As Our Product's Core Library
44mMutated Java Appium Client - Selenide Appium
28mControlling apples with snakes: Automating mobile apps with Appium
42mAppium: The Next Generation
