title: RSelenium: Scroll down to load web content
body: <p>I tried the code in here
  <a href="https://stackoverflow.com/questions/31901072/scrolling-page-in-rselenium">Scrolling page in RSelenium</a>
  but it's not working as the web site that I'm working on will load more content as you scroll down. For example</p>
  
  <pre><code>webElem &lt;- remDr$findElement("css", "body")
  webElem$sendKeysToElement(list(key = "end"))
  webElem$screenshot(display = TRUE)
  </code></pre>
  
  <p>This is the screenshot of part of the website.
  <a href="https://i.stack.imgur.com/FWZrD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FWZrD.png" alt="enter image description here"></a></p>
  
  <p>Then I repeat the process again.</p>
  
  <pre><code>webElem$sendKeysToElement(list(key = "end"))
  webElem$screenshot(display = TRUE)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/FWZrD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FWZrD.png" alt="enter image description here"></a></p>
  
  <p>The result is still the same.</p>