Skip to main content

ElementSwipeWhileNotFound

Description

Swipe inside a component to search for an element or text.

Parameters

NameValueDescription
ZoneString as valid zones



* NATIVE

* WEB

* TEXT
Zones which define the way the element will be identified.
SearchElementStringThe container element identifier
DirectionStringDirection to swipe
OffsetIntegerSwipe Offset
Swipe TimeIntegerTime for the swipe action
Element to find ZoneString as valid zones



* NATIVE

* WEB

* TEXT
Zone of the sought element
Element to findStringThe sought element identifier
Element to Find IndexIntegerThe sought element’s index (i.e., the number of times the element appears after the first appearance minus two).
DelayIntegerTime to wait before sending a command (in milliseconds)
RoundsIntegerMaximum swipe rounds
ClickBooleanClick the found element if TRUE

Usage

Command could be used to scroll down till element is not found

info

Replace <server> with the appropriate URL.

Example

ElementSwipeWhileNotFound

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

...
...

if(seetest .elementSwipeWhileNotFound("NATIVE", "id=nav_drawer", "Down", 0, 2000, "NATIVE", "text=History", 0, 1000, 5, true)){
// If statement
}