Here are the examples of the java api class com.google.android.apps.common.testing.ui.espresso.ViewInteraction taken from open source projects.
1. AddWaypointMysteryTest#testMysteryDefaultWaypointFinal()
Project: cgeo
File: AddWaypointMysteryTest.java
File: AddWaypointMysteryTest.java
@Suppress public static void testMysteryDefaultWaypointFinal() { final ViewInteraction waypointTypeSelector = onView(withId(R.id.type)); waypointTypeSelector.check(matches(isDisplayed())); waypointTypeSelector.check(matches(withChild(withText(WaypointType.FINAL.getL10n())))); }
2. AddWaypointMultiTest#testMysteryDefaultWaypointFinal()
Project: cgeo
File: AddWaypointMultiTest.java
File: AddWaypointMultiTest.java
@Suppress public static void testMysteryDefaultWaypointFinal() { final ViewInteraction waypointTypeSelector = onView(withId(R.id.type)); waypointTypeSelector.check(matches(isDisplayed())); waypointTypeSelector.check(matches(withChild(withText(WaypointType.STAGE.getL10n())))); }