Hi,In Appium (Android) I’m using this line to scroll to element in the APP Screen :
driver.findElementByAndroidUIAutomator(“new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().resourceId(”" + elementID + “”).textContains(""+elementText+"").instance(0))");
the problem is that It’s unstable, sometimes it scroll down to the element and sometimes it starts to scroll and stops in the middle (it’s a long screen of settings and my element is at the end) And does not continue below to the element.
Does anyone have any idea what the problem is and how can it be overcome? It kind of frustrates me