Description
Flick the screen from X, Y in a given direction
Parameters
Name | Value | Description |
---|---|---|
X | Integer | Horizontal Coordinate in screen pixels |
Y | Integer | Vertical Coordinate in screen pixels |
Direction | String | Direction 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.
- For SeeTest cloud, EXPERITEST_URL needs to be https://cloud.seetest.io:443/wd/hub
- For Dedicated Experitest Lab, EXPERITEST_URL needs to be your own domain. e.g - https://company.experitest.com
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");