title: Can we Traverse on another page when executing foreach loop?
body: <p>There is Table on the page, I do need to retrieve information row by row. That is handle by for-each. Execution on same page for retrieving information is working fine. </p>
  
  <p><a href="https://i.stack.imgur.com/oH5Wi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oH5Wi.png" alt=""></a><br>
  But, Can we handle Detail page of particular Row ? Here "Test 1" has its own detail page. There are some operation which need to handle on detail page. How can we manage it and get back to actual execution.</p>
  
  <p>As of now I am dealing it with for-each loop, and getting StaleElementReferenceException which is correct as webElement lost its actual <code>ListElement&lt;WebElement&gt;</code></p>
  
  <pre><code>List&lt;WebElement&gt; findList = driver.findElements(By.xpath("//a[@class='*****']));
  
      for (WebElement webElement : findList) {
       ...
      //detail page is access by clicking webElement
      webElement.click();
  
      findList = driver.findElements(By.xpath("//a[@class='*****']));
      }
  </code></pre>
  
  <p>If there is any way, Please suggest. Thanks. </p>