mobile » scrollUntilFound(scrollTarget,direction,searchFor,maxWaitMs)
Description
This command aims to find a specific element within a scrollable container/target. This command uses scrolling, in
the direction specified, until the specified element is found. Here are more details for this command:
- Use
scrollTargetas the locator of the element on which the scrolling is to be performed - Use
directionas the direction of the scrolling to perform. The possible directions are (case-insensitive):up,down,leftandright. - As each scrolling is performed, Nexial will search for the presence of an element using
searchForas the locator. - The
maxWaitMsindicates how much time would be tolerated - in milliseconds - before failing the corresponding step. Use-1or(empty)to indicate that no timeout should be considered.
This command can prove useful when the exact location of the intended element cannot be determined beforehand.
Note:
- The
scrollTargetparameter must resolve to a scrollable element which contains thesearchForelement. - The
directionparameter must beup,down,leftorright. Either uppercase or lowercase would do.
Parameters
See above
Example
