Page tree
Skip to end of metadata
Go to start of metadata

Description

Flick the chosen element in the chosen direction

Parameters

Name

Value

Description

Zone
  • NATIVE
  • WEB
  • TEXT
Zones which define the way the element will be identified.
ElementString which identifies the Element

Identification of Element in the device screen.

Example: Button, Text Box.

Element indexInteger representing index of the Element
DirectionString

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.

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");
  • No labels