How to scroll by text in iOS


#1

Could anyone help with scrolling in iOS.


#2

Try with this (Using Appium 1.8.0 and Java client 5.0.4 +):

new TouchAction(driver.getDriver()).press(x_start, y_start).waitAction(Duration.ofMillis(1000)).moveTo(x_end, y_end).waitAction(Duration.ofMillis(1000)).release().perform();

You need to insert start x, y coordinates and end x, y coordinates.


#3

With 1.4 following were applicable for scrolling

scrollTo()
scrollToText()
swipe()
TouchActions class - moveToElement()


#4

Can you get the code for scroll to text.