Skip to main content

FlickElement

Description​

Flick the chosen element in the chosen direction

Parameters​

NameValueDescription
Zone* NATIVE

* WEB

* TEXT
Zones which define the way the element will be identified.
ElementString which identifies the ElementIdentification of Element in the device screen.



Example: Button, Text Box.
Element indexInteger representing index of the Element
DirectionStringDirection 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.

info

Replace <server> with the appropriate URL.

FlickElement

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...
seetest.flickElement("NATIVE", "xpath=//*[@text='Phone']", 0, "Up");