Unable to click on dropdown

I am having an issue clicking on a dropdown and selecting a value. I’ve tried using xpath with contains and other options but no luck… Here’s what I’ve so far.

By eld = By.xpath("//*[@class='android.widget.Spinner' and contains(@content-desc,'None')]");
WebElement dropdown = wait.until(ExpectedConditions.elementToBeClickable(eld));
dropdown.click();

When I try to perform dropdown.click() nothing happens. How do I click on the dropdown so I could choose a value from it? Thanks.

According to attached screenshot the available screen is in Webview, better you just handle this part of scenario with Webview. The same problem we also faced and we have handled switching to Webview.

Yes try switching the context view and then click

I managed to pass this issue without switching the context but thanks for the replies :slight_smile:

Hi, I am having the same issue. It doesn;t click the drop down. How did you resolve this issue?