Appetize.io Docs
HomeDemoUploadPricing
Search
⌃K
Links
Getting started
Core features
Uploading apps
Playback options
Embed your app
App permissions
Cross-document messages
Custom launch pages
REST API
Overview
Create new app
Update existing app
Direct file uploads
Delete app
List apps
Usage summary
Devices and IPs
Sample code
Javascript SDK
Getting Started
Configuration
Automation
Playwright
Use cases
Log in with username and password
Swipe a pattern to unlock an Android device
Open a deeplink and make sure analytics API calls happen
Save screenshots of an app in multiple languages
API reference
Advanced features
Custom branding
Reserved devices
Single sign-on
ADB tunnel
Powered By GitBook

Swipe a pattern to unlock an Android device

const session = await client.startSession()
​
// Swipe in a square pattern starting at the given element
await session.swipe(
new window.appetize.SwipeGesture()
.from({
'resource-id': 'passcode_unlock'
})
.to(0, 100)
.to(40, 100)
.to(40, 200)
.to(0, 200)
.to(0, 100)
)
Previous
Log in with username and password
Next
Open a deeplink and make sure analytics API calls happen
Last modified 3mo ago
Copy link