Skip to content Skip to sidebar Skip to footer
Showing posts with the label Android Espresso

In Espresso, How Can I Test That Textview Shows Only Two Lines

I have a TextView which has the following text: 'line1.\nline2.\n line3'. I set the TextVie… Read more In Espresso, How Can I Test That Textview Shows Only Two Lines

Set Spinner Item With Espresso

I want to know how to set an item in a spinner in espresso testing. onView(withId(R.id.spinner_gend… Read more Set Spinner Item With Espresso

Scrolling To View Was Attempted, But The View Is Not Displayed

With Espresso I try to scroll to a textview inside linearlayout - but I am getting this exception:… Read more Scrolling To View Was Attempted, But The View Is Not Displayed

Unable To Toggle Airplane Mode, Espresso

I am trying to toggle airplane mode on kitkat version, on rooted emulator. I am using espresso for … Read more Unable To Toggle Airplane Mode, Espresso

Clicking On One Of Many Views With Same Id In Espresso

I have a layout (A) that includes another layout (B) multiple times. Layout B contains a button wit… Read more Clicking On One Of Many Views With Same Id In Espresso

Nullpointerexception In Recyclerview Espresso Test On Hdpi Device

I have the following test written for RecyclerView @Test fun testHomeActivity_recyclerViewInd… Read more Nullpointerexception In Recyclerview Espresso Test On Hdpi Device

Espresso: How To Test Swiperefreshlayout?

My app reloads data when a down-swipe is done on a SwipeRefreshLayout. Now I try to test this with … Read more Espresso: How To Test Swiperefreshlayout?

Espresso.ondata Set Inadapterview To Be Alertdialog

I have an AlertDialog that contains a list of options which is set: final AlertDialog.Builder build… Read more Espresso.ondata Set Inadapterview To Be Alertdialog