U can scroll phone screen using two appium methods
1) driver.scrollTo(String ""); It check element name contain text.
Eg. driver.scrollTo("Views");
We have used driver.scrollTo(String text) methods for scrolling. It will scroll down steps by step and look If given text Is displayed on screen or not. When text appears, It will stop scrolling.
-
First driver.scrollTo("Views"); will check if element containing test "Views" Is display on screen or not. If not display then It will scroll down down and check for text once again.
2) driver.scrollToExact(String ""); It check element name should have exact match