title: Selenium-How to iterate through webPage to Find all Necessary elements and perform Click Action
body: <p>I have a Method for finding the element via Xpath and perform Click action but if element is available on Next page how can i do that ? I know i can find the xpath for next page and click it and look through it . But i want to come back to initial page as well.</p>
  
  <p>For example I have 20 Elements found by xpath:</p>
  
  <pre><code>IList&lt;IWebElement&gt; Test= SeleniumDriver.WebDriver.FindElements(By.Xpath(""));
  </code></pre>
  
  <p>and if above will find 20 elements then i m running foreach loop. SO it can able to do all action as i needed but if first page got only 10 element then how can i go to next page for to find the remaining ones . Also in "Test"  i'm not getting all the elements in order. So my foreach loop will find first 2 and might be 3rd one it tries to find will go to next page so i have to go to next page and find the element , validate it and then come back to initial page .</p>
  
  <p>Please let me know if any easy way ?</p>