title: Not getting correct div id while selecting multiple div using Selenium FindElements()
body: <p>I am trying to search all the <code>div</code> under specified <code>XPath</code>with <code>div id</code>. <code>div id</code> gets randomly generated and not fix so searching with partial id method as some text of <code>div id</code> is constant.<code>_ariaId_</code> is id which will be constant and numbers will get attached to it's trail.</p>
  <p><strong>HTML page code.</strong></p>
  <pre><code>//some more HTML code before this. Trimmed for clarity.
  
  &lt;div tabindex=&quot;-1&quot; data-convid=&quot;AAQkADBjMGZiZGFlLTE4ZmEtNGRlOS1iMjllLTJmOGZkNGRhZmIzNQAQAOTK5G8Pok9JkIMV8KU8bI4=&quot; 
       data-time=&quot;2017-03-01T20:35:37+05:30&quot; id=&quot;_ariaId_299&quot;&gt;
  &lt;/div&gt;
  &lt;div tabindex=&quot;-1&quot; data-convid=&quot;AAQkADBjMGZiZGFlLTE4ZmEtNGRlOS1iMjllLTJmOGZkNGRhZmIzNQAQAOTK5G8Pok9JkIMV8KU8bI4=&quot; 
       data-time=&quot;2017-03-01T20:29:41+05:30&quot; id=&quot;_ariaId_281&quot;&gt;        
  &lt;/div&gt;
  &lt;div tabindex=&quot;-1&quot; data-convid=&quot;AAQkADBjMGZiZGFlLTE4ZmEtNGRlOS1iMjllLTJmOGZkNGRhZmIzNQAQAHnhaFwb40sGj+pN9p736NE=&quot; 
       data-time=&quot;2017-03-01T20:25:14+05:30&quot; id=&quot;_ariaId_271&quot;&gt;
  </code></pre>
  <p><strong>The code I'm using</strong> to fetch all data matching the search criteria which will also include <code>div id</code>.</p>
  <pre><code>IWebElement baseTable = driverGC.FindElement(By.ClassName(&quot;conductorContent&quot;));
          // gets all table rows
          ICollection&lt;IWebElement&gt; rows = baseTable.FindElements
          (By.XPath(&quot;//*[@id='primaryContainer']/div[5]/div/div[1]/div/div[4]/div[3]
                    /div/div[1]/div/div/div/div[5]/div[4]/div[1]/div[3]/div[1]/div/div/div[2]
                    /div[starts-with(@id, '_ariaId_')]&quot;));
          foreach (var row in rows)
          {
              //Do something....
          }
  </code></pre>
  <p>This is giving me the desired multiple <code>div</code> which satisfy the condition <strong>BUT</strong>
  I am getting incorrect <code>id</code>
  <strong>Expected</strong></p>
  <p><a href="https://i.stack.imgur.com/78kP7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/78kP7.jpg" alt="enter image description here" /></a></p>
  <p><strong>Current</strong></p>
  <p>While debugging getting below data in id.</p>
  <p><a href="https://i.stack.imgur.com/xibQq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xibQq.jpg" alt="enter image description here" /></a></p>
  <p>I'm stuck on this with no clue from where these <code>ids</code> coming from. Other fields are getting correctly.</p>