Issue clicking on dropdown


i want to automate an app and need to select a value in a dropdown. i find the element with the appium inspector and the list with vaulues opens when i click tap in the appium inspector. when i try to click the element with selenium it does not work.

Thats what the element looks like in appium inspector.
i try to click it with

WebElement day=driver.findElement(“register_dateofbirth_spinner_day”));;

Any idea what the issue could be ? maybe there is also a way to select the values of the dropdown directly ?


and after:
driver.findElement(MobileBy .AndroidUIAutomator("new UiScrollable(new UiSelector()).scrollIntoView(" + "new UiSelector().text(\"" + text + "\"));"))

Use scrollTo() method

Create android driver object its May helpful to you.