Hi,
I have tried below 2 ways to scroll and select options from NumberPicker, but neither works. Let me know if there is another way to scroll and select the desired option from numberpicker.
-
UIAutomator: ((FindsByAndroidUIAutomator) driver).findElementByAndroidUIAutomator(“new UiScrollable(new UiSelector()).scrollIntoView(text(”"+text+""))")-----------> This works for only one option
-
sendkeys(): driver.findElementByXPath("//android.widget.NumberPicker[@index=‘0’]").sendKeys(“weekly”);
Thanks in advance.