title: Android XPath index issue
body: <p>Very new to Android Testing.<br/>
  I came across this Xpath</p>
  <pre><code>xpath: (//android.widget.ImageView[1])[3]
  </code></pre>
  <p>I know that in ImageView<a href="https://i.stack.imgur.com/WIaxR.png" rel="nofollow noreferrer">1</a> &quot;1&quot; is the index of the element.<br/>
  What is [3] here???</p>
  <p><strong>Update:</strong><br/></p>
  <p>I am running a test (mobile App). The above XPath is to tap on the Bell icon.<br/>
  It did tap on the bell icon perfectly.<br/>
  But today when I run my test it doesn't tap on the Bell icon instead it taps on the user Profile Picture.</p>
  <p><a href="https://i.stack.imgur.com/WIaxR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WIaxR.png" alt="enter image description here" /></a></p>
  <p>Using appium I found the xpath of the Bell icon as below:</p>
  <pre><code>xpath: /hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.view.ViewGroup/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup/android.view.ViewGroup/android.view.ViewGroup/android.view.ViewGroup[2]/android.view.ViewGroup[1]/android.view.ViewGroup[2]/android.view.ViewGroup/android.widget.ImageView
  </code></pre>
  <p>Now when I use this new xpath the Bell icon is clicked.</p>
  <p>Are both the Xpaths same?? <br/>
  Why is this new xpath so long? is there a way to shorten this??<br/>
  Any kind of help is really Appreciated!!!</p>