Skip to content

Instantly share code, notes, and snippets.

@flipper83
Created September 27, 2017 10:42
Show Gist options
  • Save flipper83/5be383b20abcc4bd012aff6e08e647b0 to your computer and use it in GitHub Desktop.
Save flipper83/5be383b20abcc4bd012aff6e08e647b0 to your computer and use it in GitHub Desktop.
espresso sample
onView(withId(R.id.my_view)) // withId(R.id.my_view) is a ViewMatcher
.perform(click()) // click() is a ViewAction
.check(matches(isDisplayed())); // matches(isDisplayed()) is a ViewAssertion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment