Question

How to select Radio button in Uiautomator?

Eg: i've a radio button to switch on my wireless in my LG phone.How to select these radio buttons.

Was it helpful?

Solution

please use

UiObject dataValue = new UiObject(new UiSelector().className(RadioButton.class.getName()).index(0));
        dataValue.click();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top