Page tree
Skip to end of metadata
Go to start of metadata

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.

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.

Example

FlickCoordinate
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
       
...
...
// Flick up to given coordinates
seetest.flickCoordinate(78, 286, "Up");
  • No labels