回答

0

要RecyclerView單擊一個項目:

查看更多關於Espresso RecyclerView testing

onView(withId(R.id.scroll_view)).perform(RecyclerViewActions.actionOnItemAtPosition(3, click())); 

要檢查是否意圖發送:

// to the "phone" activity has been sent. 
intended(toPackage("com.android.phone")); 

看到更多關於Espresso Intent testing

相關問題