title: RSelenium fails to findElement when not called individually
body: <p>(Apologies for the bad title, improvements are welcome)</p>
  <p>When I run the three last lines of the code below <em>individually</em> everything works as expected. It finds the &quot;Primary Data&quot; tab and clicks on it.
  But my purpose is to put this inside a function, where it does not work.
  The problem can be reproduced by simply running the three last lines together.</p>
  <pre><code>require(rvest)
  require(rJava)
  require(RSelenium)
  driver &lt;- rsDriver(browser = &quot;firefox&quot;, verbose = FALSE)
  remDr&lt;-driver[[&quot;client&quot;]]
  
  remDr$navigate(&quot;https://www.bexis.uni-jena.de/ddm/data/Showdata/31215&quot;)
  webElem &lt;- remDr$findElement(using='id', value= &quot;primarydata&quot;)
  webElem$clickElement()
  </code></pre>