Skip to main content

Flick

Description

Use this command to flick the screen in a given direction. As a visible aid, an arrow is drawn on the reflection showing the flick motion. It starts according to the swipe value and points in the opposite of the swipe direction. For example, when flicking right, the swipe arrow points to the left.

Parameters

NameTypeDescription
DirectionStringDirection



Possible values:



* Right

* Left
OffsetIntPixels
TimeInt

Usage

In order to flick the screen you can add the command 'flick', provide the direction and offset.

info

Replace <server> with the appropriate URL.

Example

flick

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...
// Command will swipe right but the arrow point to left.
seetest.flick("Right", 100, 1000);