title: Why doesn't Rselium find a button if I already pass it the css selector in the findElement () function?
body: <p><a href="https://i.stack.imgur.com/NKPc6.png" rel="nofollow noreferrer">enter image description here</a>I am trying to make a function in R, with Rselenium, that downloads information from the following <a href="https://listanominal.ine.mx/ESTADISTICAS/index.php" rel="nofollow noreferrer">página</a> but when trying to click on a button with findElement () this button is not found, I tried to search with the css selectors like the first ones but for this one it did not work, the button is boton_edad. I attach my code.</p>
  <p>I appreciate any help.</p>
  <pre><code>library(RSelenium)
  library(xml2)
  library(rvest)
  library(tidyverse)
  
  ######
  controlador&lt;- rsDriver(browser = 'firefox')
  controlador_remoto &lt;- controlador[[&quot;client&quot;]]
  ######
  controlador_remoto$navigate('https://listanominal.ine.mx/ESTADISTICAS/index.php')
  ######
  boton_estadisticas &lt;- controlador_remoto$findElement(using = 'css selector',value = &quot;.fa-bar-chart+ span&quot;)
  boton_estadisticas$highlightElement()#li:nth-child(2) .dropdown-toggle
  boton_estadisticas$clickElement()
  ######
  boton_sexo &lt;- controlador_remoto$findElement(using = 'css selector',value = &quot;input~ input+ input&quot;)
  boton_sexo$highlightElement()
  boton_sexo$clickElement()
  boton_sexo$goBack()
  #####
  boton_edad &lt;- controlador_remoto$findElement(using = 'css selector',value = &quot;form:nth-child(5) input&quot;)
  boton_edad$highlightElement()
  boton_edad$clickElement()
  
  </code></pre>