title: How to find XPath of an ExtJS element with dynamic ID
body: <p>All the <strong>elements</strong> in the application which i am testing have <strong>dynanic ID's</strong> . The test always <strong>passes</strong> when i replay it <strong>without refreshing</strong> the page but as soon as i <strong>refresh</strong> the page, The Test <strong>Fails</strong> because Id's of all the elements changes randomly and selenium <strong>cannot match</strong> the recorded id's with the new ones .</p>
  
  <p>I tried to use Xpath-position, It works for some objects but in case of <strong>Dropdown list and Buttons</strong>, <strong>it dosent work!</strong></p>
  
  <p>Can anyone please tell me how to <strong>find the Xpath</strong> (Meathods in <strong>JAVA</strong> or S*<em>elence</em>*) of an object OR How to create a <strong>new Locator Finder</strong> for <strong>Dropdown list and Buttons</strong></p>
  
  <p>I can show the properties (<em>Inspected by Firebug</em>) of the dropdown which is teasing me.</p>
  
  <p><strong>properties of Dropdown</strong> :</p>
  
  <pre><code>&lt;div id="ext-gen1345" class="x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable" role="button" style="-moz-user-select: none;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>properties of Dropdown*</strong><em>Choice</em>*:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li class="x-boundlist-item" role="option"&gt;Rescue&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>