Trackball (FR)

Perfecto Command

mobile:trackball:roll

Purpose

Performs a trackball roll.

Parameters

Name Type Possible Values Description
distance (Mandatory) String

The distance from the last location coordinates.

Format - x,y

Note: This command receives an x,y sequence relative to the last location coordinates that are not absolute coordinates on the screen.

Return Value

None

Exceptions

None

Examples

Copy

Java sample

Map<String, Object> params = new HashMap<>();
params.put("distance", "40,0");
Object res = driver.executeScript("mobile:trackball:roll", params);
Copy

C# sample

Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("distance", "40,0");
Object res = driver.ExecuteScript("mobile:trackball:roll", pars);