Is there any other method which can be use to swipe until element is found.
Currently I am using
driver.executeScript(“client:client.swipeWhileNotFound(“LEFT”, 200, 2000, ‘NATIVE’, “xpath=//*[@Text=‘submit’]”, 0, 1000, 5, true)”);
but sometime it works and sometime not. So I am in search of other methods which are similar to swipeWhile NotFound method