title: How to select a specific Tab position in Tab Layout using Espresso testing
body: <p>I have a tab layout with view pager .I am using <strong>Espresso</strong>   for testing my android app. In my previous projects I use the tab title to perform click for selecting a tab Position like follows.</p>
  
  <pre><code>    Espresso.onView(ViewMatchers.withText("MAP"))
              .perform(ViewActions.click());
  </code></pre>
  
  <p>Right now I a have 114 tabs. So I can't use above method for randomly select these tabs for testing. Is there any way I can select tabs by its position. I already check other solutions but none of those helped me.    </p>