How to scroll in appium iOS if the element non visible in the screen?
In latest version of appium to scroll on the screen or to scroll the tables or to implement drag and drop functionalites we have to use TouchAction.
If we want to scroll in a scrollable layout first we have to get the bounds of that layout and give the coordinates in side that bounds.
Consider the below line of code.
Code:
new TouchAction(driver).press(300,200).moveTo(300,100).release().perform();
In this line of code we will perform the scroll down by 100 points.
.press(300,200) // Start at 300,200
.moveTo(0,100) // Increase Y by 300, ending up at 300,100
You have to pass the coordinates based on your requirements.
Find the details in below link:
https://appium.io/docs/en/writing-running-appium/touch-actions/

