for example here is my code:
@Test
public void manga_list2() throws Exception {
onView(withId(R.id.manga_list));
}
I try onView(withId(R.id.manga_list)) result is ViewInteration, I hope get finded View and I try onView(withId(R.id.manga_list)).viewFinder.getView() in android studio > watches tool, and i get error:
Executing a query on the view hierarchy outside of the main thread (on: Instr: android.support.test.runner.AndroidJUnitRunner)
how to get the view?
update
if it cannot, please recommend me other ui testing that can get view directly, the espresso is too black-box
Aucun commentaire:
Enregistrer un commentaire