Code example for ListView

Methods: getAdapter

0
    public ActionAssertion<?> clickLast() { 
        return click(getAdapter().getCount() - 1);
    } 
 
    private ListAdapter getAdapter() {
        ListAdapter adapter = listView.getAdapter();
        assertNotNull("list adapter expected to exist, but was null", adapter);
        return adapter;
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java