FANDOM



Mobile Command Format

tap

Tap on the element or screen at the precise location.

Name Description Default
tapCount How many times to tap 1
touchCount How many fingers 1
duration How long in seconds 0.1
element Element ID to tap on null
x x coordinate within the element or screen 0.5
y x coordinate within the element or screen 0.5

flick

Flick on the screen or element.

Name Description Default
touchCount How many fingers 1
element Element ID to tap on null
startX x coord begin 0.5
startY y coord begin 0.5
x x coord ending REQUIRED
y y coord ending REQUIRED

swipe

Swipe or drag on the screen or element.

Name Description Default
touchCount How many fingers 1
element Element ID to tap on null
startX x coord begin 0.5
startY y coord begin 0.5
x x coord ending REQUIRED
y y coord ending REQUIRED
scrollTo
shake
setLocation
hideKeyboard
setCommandTimeout
getCommandTimeout
findAndAct
setValue
reset
lock
background
keyevent
leaveWebView
fireEvent

source

Get the page source of the web view.

Name Description Default
type "xml" or "" REQUIRED

find

Find elements by using strategy "dynamic".  Used to query multiple selectors at a time.

Name Description Default
[[[3, query]], 7, query]

xmlValueContains

Find elements by using strategy "xmlValueContains".

xmlKeyContains

Find elements by using strategy "xmlValueContains".

resolveId

Find elements by using strategy "resolve id".

waitForPageLoad
currentActivity
findElementNameContains
installApp
removeApp
isAppInstalled
launchApp
closeApp
rotate
longClick
pinchClose
pinchOpen