Hi,
I am trying to select an option from a dropdown using Select but getting the below error. Please help.
Code:
driver.findElementsById("android:id/text1").get(2).click();
Select Prod = new Select(driver.findElementsById("android:id/text1").get(2));
Prod.selectByValue("Domestic parcels");
Error Logs:
Exception in thread "main" org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "android.widget.CheckedTextView"
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'