Calendar date picker scrolling up and down


#1

Hello friends,
I want to select year like “1993” but i am not able to select with this code. It’s not able to scroll up to 1993. Please help me…!!

MobileElement element = (MobileElement) driver
.findElementByAndroidUIAutomator(“new UiScrollable(”
+ “new UiSelector().scrollable(true)).scrollIntoView(”
+ “new UiSelector().textContains(“1993”));”);
element.click();