Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Tips and Tricks

Greg Sawers edited this page Feb 24, 2015 · 3 revisions

#Here are some tips and tricks to using Ironhide:

ListAdapters:

  • ListAdapters can be fickle depending on your implementation of ListViews in your application. When making your ListAdapters remember the following: Building a ListAdapter requires defining the Class types of items within the List. You can use the Android Device Monitor in Android Studio to take screen shots that will show the view hierarchy, this is the easiest way to find this class.
  • Espresso matching can sometimes be inconsistent, if Ironhide is not finding your ListAdapter or returning Null pointer exceptions when you try to find its children, check to see that the adapter in your source code is set up properly. If the problem persists, switch to a DynamicListAdapter.
  • NOTE: Doing this loses a little bit of functionality and can cause certain view matcher exceptions due to the difference in how DynamicListAdapters and ListAdapters return their children.
  • Almost all actions performed with ListAdapters are performed on the ListItems obtained from the ListAdapters. In other words, ListAdapters exist as a way to access their children, NOT to have actions performed on them.
Clone this wiki locally