Skip to main content

FlickCoordinate

Description​

Flick the screen from X, Y in a given direction 

Parameters​

NameValueDescription
XIntegerHorizontal Coordinate in screen pixels
YIntegerVertical Coordinate in screen pixels
DirectionStringDirection of the Flicking motion

Usage​

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

As a visible aid, an arrow will be drawn on the reflection showing the flick motion.

info

Replace <server> with the appropriate URL.

Example

FlickCoordinate

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

...
...
// Flick up to given coordinates
seetest.flickCoordinate(78, 286, "Up");