title: Espresso - Matching an instance of a class
body: <p>I'm currently trying to get Espresso to match a UIElement by it's class and its text since it currently does not have a resource ID (I know, I know...). I'm not sure what the proper syntax for this is since the Espresso documentation is fuzzy (I'm VERY new to this and programming in general so I'm sure I'm missing something). Here's what I have so far:</p>
  
  <pre><code>onView(allOf(instanceOf(android.widget.CheckBox)), withText("S"))).
                  perform(scrollTo()).
                  check(matches(isChecked()));
  </code></pre>
  
  <p>I've tried typing just "Textbox" but in both cases I get an "Expression Expected" error. As of now this is the only way to identify this element so any pointers will help. Thanks!</p>