📜  espresso spinner - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:20.033000             🧑  作者: Mango

代码示例1
onView(withId(spinnerId)).perform(click());
onData(allOf(is(instanceOf(String.class)), is(selectionText))).perform(click());
onView(withId(spinnerId)).check(matches(withSpinnerText(containsString(selectionText))));