title: Click Button via RSelenium
body: <p>I am attempting to scrape REI's Reviews (Hammocks) using Rselarium and Rvest.  I want to hit the button at the bottom x amount of times so I can scrape all the reviews.  I'm a little lost.  Here's what I have so far.  If you know too, how to preview in the finder what you're doing (not screen print) that would be cool.  Thanks Stack Community.</p>
  
  <pre><code>    replicate(100,
            {
  remDr$navigate("https://www.amazon.com/Eagles-Nest-Outfitters-DoubleNest-Portable/product-reviews/B00K30GXK8/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&amp;reviewerType=all_reviewshttps://www.amazon.com/Eagles-Nest-Outfitters-DoubleNest-Portable/product-reviews/B00K30GXK8/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&amp;reviewerType=all_reviews")
  webElem &lt;- remDr$findElement("css", "body")
  webElem$sendKeysToElement(list(key = "end"))
  morereviews &lt;- remDr$findElement(using = 'css selector', ".a-last a")
  morereviews$clickElement
  Sys.sleep(4)
  
  reviews &lt;- xml2::read_html(remDr$getPageSource()[[1]])%&gt;%
    rvest::html_nodes(".review-text")%&gt;%
    dplyr::data_frame(reviews = .)
  })
  </code></pre>