Hi, I am a beginner in appium. While scrolling, I want to stop scrolling when certain text or element is encountered.
I’ve tried several times by referring to the appium documentation, but I’m running into problems.
On long screens, scrolling does not go all the way to the end of the screen and stops in the middle.
Scrolling doesn’t stop when it finds text.
“setMaxSearchSwipes(10)” doesn’t seem to work.
Action results do not match.
ex) scroll range
Below is the code I used. Note please.
MobileElement Element = driver.findElement(MobileBy.AndroidUIAutomator(
"new UiScrollable(new UiSelector().scrollable(true)).setAsVerticalList().setMaxSearchSwipes(10)" +
".scrollIntoView(new UiSelector().text(\"my_text\"))"));