UIAutomator - How to click the menu item
问题 I have automated go to setting in android phone using UI Automator and i clicked the menu using "getUiDevice().pressMenu();" and its opened menu with 3 sub menu item and i want to click the second menu by using name or index or id , please help how to click the sub menu in Android UIAutomator ? 回答1: This overflow menu icon ImageView with the three dots has no id ... but one can get it by it's description: UiObject2 menuButton = this.mDevice.findObject(By.desc("More options")); /* open the