title: Selenium Java how to return the driver back to the previous page
body: <p>I have two links in pageA. when I click the 1st link it redirects to another page called pageB and do some certain jobs and returns back to pageA. From here it should again click to the 2nd link but instead it says page has reloaded and no cache available.</p>
  
  <pre><code>//List of all tickets
  for(WebElement ticket: ticketList){
  List&lt;WebElement&gt; ticketCells = ticket.findElements(By.tagName('td'));
    if(ticketCells.get(4).getText().equalIgnoreCase("Some Text")){
     ticketCells.get(2).click(); //Redirects to pageB
     .....
     do some job
     .......
     //Finally clicking on the 'SAVE &amp; BACK' button which should return  to previous 
     //page and pick the 2nd ticket from the list of all tickets (1st for loop) 
     driver.findElement(By.id("save&amp;back")).click();
    }
  }
  </code></pre>
  
  <p>Here though it it is going back to previous page pageA but unable to pick the 2nd element from for loop for next operation.</p>
  
  <p>Any thoughts on how to make it work.</p>