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
Name | Type | Description |
---|---|---|
Direction | String | Direction Possible values: * Right * Left |
Offset | Int | Pixels |
Time | Int |
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.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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);