FlickCoordinate
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.
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
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");