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

Description

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

Parameters

NameValueDescription
Zone

String as valid zones

  • NATIVE
  • WEB
  • TEXT
Zones which define the way the element will be identified.
SearchElement StringThe container element identifier
DirectionStringDirection to swipe
OffsetIntegerSwipe Offset
Swipe TimeIntegerTime for the swipe action
Element to find Zone

String as valid zones

  • NATIVE
  • WEB
  • TEXT
Zone of the sought element
Element to find StringThe 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

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.

Example

ElementSwipeWhileNotFound
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), 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
}



  • No labels