Session
The Session in Appetize makes it easy to manage and interact with device sessions, including simulating user actions, toggling device states, retrieving device information and more.
Methods
on()
session.on(event, data => {
console.log(data)
})end()
rotate()
Name
Type
Description
screenshot(format)
Name
Type
Description
heartbeat()
tap(target, options)
Name
Type
Description
swipe(target, options)
type(text)
Name
Type
Description
keypress(character, options)
Name
Type
Description
setLanguage(language)
Name
Type
Description
setLocation(lat, long)
Parameters
Name
Type
Description
openUrl(url)
Name
Type
Description
shake()
toggleSoftKeyboard()
biometryEnrollment(isEnrolled)
biometry(match)
allowInteractions(enabled)
adbShellCommand(command)
launchApp(appId)
Name
Type
Description
restartApp()
reinstallApp()
getUI()
addMedia(file)
findElement(selector)
findElements(selector)
playAction(action, options)
Name
Type
Description
playActions(actions, options)
Name
Type
Description
waitForAnimations(options)
Name
Type
Description
waitForEvent(event, options)
Name
Type
Description
waitForTimeout(timeout)
Name
Type
Description
waitUntilReady()
Properties
adbConnection
app
config
device
networkInspectorUrl
path
token
Last updated