title: Scroll up and down to get Element into View with Selenium Python
body: <p>I need to be able to scroll up and after that down to find some element with Selenium.<br>
  I already saw many questions and answers, the main idea I found is <code>self.web_driver.execute_script("return arguments[0].scrollIntoView(true);", element)</code> and this is what I currently have in my code. But this is not good enough since this code is scrolling down only so this fails to find the element in case it is located in the upper part of the rollable view.<br>
  So I need a script that first scrolls up (page Up?) and after that begins scrolling down.<br>
  I tried something like this  </p>
  
  <pre><code>self.web_driver.execute_script("return arguments[0].scrollIntoView(true);", element) 
  self.web_driver.execute_script("window.scrollTo(0, -document.body.scrollHeight);")
  self.web_driver.execute_script("return arguments[0].scrollIntoView(true);", element)
  </code></pre>
  
  <p>but this doesn't scroll up :(  </p>