title: Android uiautomator: how to get EditText field by index?
body: <p>The UiSelector allow you to get the EditText field by text, textStartsWith, contains etc:</p>
  
  <pre><code>   UiObject obj = new UiObject(new UiSelector().text(text));
  </code></pre>
  
  <p><a href="http://developer.android.com/tools/help/uiautomator/UiSelector.html" rel="nofollow">http://developer.android.com/tools/help/uiautomator/UiSelector.html</a></p>
  
  <p>However how to get the 2nd text field? It happens that field does not have any text or description. If I just do     </p>
  
  <pre><code>   UiObject textField = new UiObject(new UiSelector().index(index));
  </code></pre>
  
  <p>Then it returns me a field that is not a EditText with the index.</p>
  
  <p>Thanks!</p>