Available actions
| Action | Purpose | Writes files |
|---|---|---|
tap | Click a target element or a coordinate on screen | No |
navigate | Send the runtime to a destination value | No |
act | Perform a helper action such as typing or going back | No |
scroll | Move the page vertically | No |
wait | Pause for a fixed number of milliseconds | No |
screenshot | Capture the current screen | Yes |
source | Capture the current UI source | Yes |
Tap
tap supports two mutually exclusive modes.
Target mode
Use target mode when you want visor to find an element and click it. Required input:target
- plain text targets are treated as accessibility identifiers
- prefixed selectors such as
text=orxpath=are parsed into the correct driver selector - the first matching element is clicked
Coordinate mode
Use coordinate mode when no stable selector is available. Required inputs:xy
normalized
- if
normalizedis false or omitted,xandyare treated as screen coordinates - if
normalizedis true,xandyare interpreted as a fraction of screen width and height - Android coordinate taps use
mobile: clickGesture - iOS coordinate taps use
mobile: tap
- target mode cannot be combined with coordinates
- coordinate mode requires both
xandy
Navigate
navigate sends a destination value to the runtime.
Required input:
to
- in the real Appium adapter, the destination is passed to WebdriverIO through
url(to) - in mock mode, the destination is echoed back in the action payload
Act
act is a compact action family for common operations.
Supported operations today:
| Name | Required inputs | Behavior |
|---|---|---|
type | target, value | Finds the target element, clears it, then sends keys |
back | none | Sends a back navigation event |
act receives any other operation name, it fails.
Scroll
scroll exposes page-style vertical scrolling as a direct action.
Required input:
directionwith valueupordown
percent
- if
percentis omitted, visor defaults it to70 direction=downmoves forward down the pagedirection=upmoves back up the page- Android uses Appium
scrollGesture - iOS attempts the same gesture path and falls back to a touch swipe when needed
directionis requireddirectionmust beupordown- if present,
percentmust be between1and100
Wait
wait pauses execution for a fixed number of milliseconds.
Required input:
ms
msmust be presentmsmust be non-negative
Timeout handling inside runs
When an action is executed inside a scenario, each step records its duration. If a step duration exceeds the resolved timeout for the run:- the step is marked as failed
- the step gets an
ACTION_ERROR - the run continues to the remaining steps and then to assertions