Issue clicking on dropdown

Hi,

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(By.id(“register_dateofbirth_spinner_day”));
day.click();

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

try:
driver.findElement(MobileBy.id("register_dateofbirth_spinner_day"))

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.