摘要:
If you just need to verify the text views its easy to use getView from the adapter. If you need to click on the view, the best approach for me was to use solo.sendKey(Solo.DOWN) the correct number of times to select the item in the list that you want, and then use solo.getCurrentTextViews(). for exa 阅读全文
摘要:
private Solo solo;public NotePadTest() {super("com.example.android.notepad", NotesList.class);} public void setUp() throws Exception { solo = new Solo(getInstrumentation(), getActivity()); } @Smoke public void testAddNote() throws Exception { solo.clickOnMenuItem("Add note"); sol 阅读全文