これが私が見つけてリストビューの項目をクリックするために使用するものです:
//Find and click a ListView item
public void clickListViewItem(String name) throws UiObjectNotFoundException {
UiScrollable listView = new UiScrollable(new UiSelector());
listView.setMaxSearchSwipes(100);
listView.scrollTextIntoView(name);
listView.waitForExists(5000);
UiObject listViewItem = listView.getChildByText(new UiSelector()
.className(android.widget.TextView.class.getName()), ""+name+"");
listViewItem.click();
System.out.println("\""+name+"\" ListView item was clicked.");
}
だからあなたの場合、それは
clickListViewItem("Full Benchmark")
または:
UiScrollable listView = new UiScrollable(new UiSelector());
listView.setMaxSearchSwipes(100);
listView.scrollTextIntoView(name);
listView.waitForExists(5000);
UiObject listViewItem = listView.getChildByText(new UiSelector()
.className(android.widget.TextView.class.getName()), "Full Benchmark");
listViewItem.click();