title: StaleElementReferenceException python solving the problem
body: <p>I'm using chrome driver to extract data. </p>
  
  <p>I'm stuck at one point: I need to a iterate over an entire list (all elements). The first time it works, and I'm able to download one file. </p>
  
  <p>For the second iteration, it shows up a mistake of StaleElementReferenceException with an element is not attached to the page document. </p>
  
  <p>How should I change my loop to get over this mistake? </p>