vyacheslav-k
11/27/2017 - 5:36 AM

Espresso UI test Commands

Команды


    ViewActions.click()
    ViewActions.typeText()
    ViewActions.pressKey()
    ViewActions.clearText()
    ViewActions.swipeRight()

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
        
      onView(withId(R.id.editTextUserInput))
            .perform(typeText(STRING_TO_BE_TYPED), closeSoftKeyboard());