Screen of my app contain two scrollable element. I am not able to select which particular page to scroll and to which not. I have tried below logics also:
Logic 1:MobileElement element = driver.findElement(MobileBy.AndroidUIAutomator(
“new UiScrollable(new UiSelector().resourceId(“com.marrow:id/tvIndexTitle”)).getChildByText(”
+ “new UiSelector().className(“android.widget.TextView”), “ADVANCED ORTHOPAEDICS & MANAGEMENT”)”));
Logic 2:MobileElement element = driver.findElement(MobileBy.AndroidUIAutomator(“new UiScrollable(new UiSelector().resourceId(“com.marrow:id/tvIndexTitle”)).scrollIntoView(” + “new UiSelector().text(“ADVANCED ORTHOPAEDICS & MANAGEMENT”))”));
I am not able to perform scroll operation.
Please help me regarding this