Top "Android-espresso" questions

Espresso is a library which is used to write Android UI tests.

Click by bounds / coordinates

I know it is possible for Espresso to click by bounds the way UiAutomator does. (x and y coordinates) I …

android android-testing android-espresso
Activity in androidTest not getting launched by ActivityTestRule

I want to test a fragment in test activity. I added TestTragmentActivity to androidTest along with AndroidManifest.xml file. But …

android unit-testing android-espresso android-instrumentation junit-runner
Cannot resolve ActivityTestRule after upgrading dependencies. Unable to import ActivityTestRule

I have written instrumentation tests which was working fine, but now getting error cannot resolve ActivityTestRule error after upgrading dependencies …

android android-espresso android-instrumentation test-runner
Mockito 2 for Android Instrumentation test : Could not initialize plugin: interface org.mockito.plugins.MockMaker

I'm using Mockito 2 and Espresso for Unit tests, and met a problem trying to use Mockito 2 in Instrumentation test. While …

android kotlin mockito android-espresso byte-buddy
Espresso - how to get current activity to test Fragments?

I have been playing around with Espresso tests for couple weeks now and I finally decided to start testing Fragments. …

android android-testing ui-testing android-espresso
Android - espresso - clicking on a listview entry based on custom objects

Espresso is used for automatic testing my App. Edit: below you find a number of answers! How can I click (…

android hamcrest android-espresso
AndroidTest folder doesn't show on AndroidStudio

I'm setting up Android app structure with Gradle and Android Studio and Espresso UI testing for a project. No matter …

android android-studio android-testing android-espresso
Android - How to click on an item on a navigation drawer using Espresso?

I am new to Android development. I want to use Espresso to test that my drawer opens, then click on …

android navigation-drawer android-espresso