title: Selenium WebDriver needs to fetch specific element from dynamic div array element
body: <p>I'm trying to fetch the text of <code>WebElement</code> that displays in the following format. Here div[3] or div[4] is not in order. I would like to fetch these elements on a page and if it matches with given text, I need to click on it.</p>
  
  <pre><code>//*[@id="default_products_page_container"]/div[3]/div[2]/h2/a
  //*[@id="default_products_page_container"]/div[5]/div[2]/h2/a
  </code></pre>
  
  <p>Appreciate any idea on this?</p>
  
  <p>Thanks,
  Sudhakar</p>