This command will swipe the screen in search of element. If found, the command will return true, allowing you to use it in an if-else construct.
Direction to swipe:
Up, down, left, right
|offset||int||Swipe offset, the distance from the bottom of the screen in pixels|
|swipeTime||int||Swipe Time, swipe round duration in milliseconds.|
|zone||string||Zone - Native, Web|
|elementToFind||string||xpath of the element to find|
|elementToFindInex||int||index of the element to find, if more than one element answers to the xpath query|
|delay||int||Time to wait before sending a command (in milliseconds), delay time between swipes|
|rounds||int||Maxium swipe rounds|
True - click the element once it's found
False - don't click the element
If your app requires scrolling up or down in search of an element to click on, you can test this activity using the swipeWhileNotFound command.