title: Finding element/elements using RSelenium
body: <p>I am trying to find one singular element on this website using <code>findElement</code></p>
  
  <p><a href="https://shiny.rstudio.com/gallery/datatables-options.html" rel="nofollow noreferrer">https://shiny.rstudio.com/gallery/datatables-options.html</a></p>
  
  <p>For example "Display length".</p>
  
  <p>Later I would like to find all elements using <code>findElements</code>. That is, "Display length", ..., "Function callback". Total of 5.</p>
  
  <p>My attempt for just finding the first element (Display length):</p>
  
  <pre><code>remDr$navigate("https://shiny.rstudio.com/gallery/datatables-options.html")
  elems &lt;- remDr$findElement("css selector", "#showcase-app-container &gt; nav &gt; div &gt; ul &gt; li.active &gt; a") 
  # Unable to locate element 
  
  elems &lt;- remDr$findElement("xpath", "//*[@id='showcase-app-container']/nav/div/ul/li[1]/a") 
  # Unable to to locate element
  </code></pre>
  
  <p>My attemp on finding several elements:</p>
  
  <pre><code>elems &lt;- remDr$findElements("class", "nav navbar-nav") 
  # Invalid or does not result in a WebElement
  
  elems &lt;- remDr$findElements("css selector", "#showcase-app-container &gt; nav &gt; div &gt; ul") 
  # list of 0
  
  elems &lt;- remDr$findElements("xpath", "//*[@id='showcase-app-container']/nav/div/ul") 
  # list of 0
  </code></pre>