Description
Flick the chosen element in the chosen direction
Parameters
Name | Value | Description |
---|---|---|
Zone |
| Zones which define the way the element will be identified. |
Element | String which identifies the Element | Identification of Element in the device screen. Example: Button, Text Box. |
Element index | Integer representing index of the Element | |
Direction | String | Direction of the Flicking motion |
Usage
Command can be used to flick an element from its center, in the chosen 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
FlickElement
DesiredCapabilities dc = new DesiredCapabilities(); driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc); seetest = new SeeTestClient(driver); dc.setCapability(MobileCapabilityType.UDID, "<deviceid>"); ... ... seetest.flickElement("NATIVE", "xpath=//*[@text='Phone']", 0, "Up");