title: Rselenium can not click all radiobutton (only some of them)
body: <p>I am trying to get some scraping skills with <code>RSelenium</code> and I am confronted to a difficulty. </p>
  
  <p>I want to choose languages for the comments in this <a href="https://www.tripadvisor.com/Restaurant_Review-g187438-d12718258-Reviews-Prohobitox-Malaga_Costa_del_Sol_Province_of_Malaga_Andalucia.html" rel="nofollow noreferrer">page</a>. But when the popup radio button list appear, I manage to click some of them and not the others. I thing I did get the elements properly though. Here is what I tried:</p>
  
  <pre><code>library(RSelenium)
  
  remDr &lt;- remoteDriver(
    remoteServerAddr = "localhost",
    port = 4445L,
    browserName = "firefox"
  )
  
  url &lt;- "https://www.tripadvisor.com/Restaurant_Review-g187438-d12718258-Reviews-Prohobitox-Malaga_Costa_del_Sol_Province_of_Malaga_Andalucia.html"
  
  remDr$navigate(url)
  
  # click more language popup
  webElems &lt;- remDr$findElements(using = "css selector", ".taLnk") # taLnk is for dropdown like
  webElemstext &lt;- unlist(lapply(webElems, function(x) {x$getElementText()}))
  webElems[[which(webElemstext == "More languages")]]$clickElement() 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/tBety.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tBety.png" alt="enter image description here"></a></p>
  
  <p>I try to get the radio buttons this way:</p>
  
  <pre><code>langues &lt;- remDr$findElements(using = "class", "ui_radio")
  langues_txt &lt;-  unlist(lapply(langues, function(x) {x$getElementText()}))
  
  &gt; langues_txt
   [1] "All languages"  "English (120)"  "Spanish (66)"   "Norwegian (25)" "All languages" 
   [6] "English (120)"  "Spanish (66)"   "Norwegian (25)" "Dutch (22)"     "Swedish (13)"  
  [11] "French (12)"    "German (10)"    "Italian (7)"    "Danish (3)"     "Finnish (2)"   
  [16] "Portuguese (1)"
  </code></pre>
  
  <p>The weird thing is that I can click the last radiobutton, but not the others, and I don't get it. If I do try to click finnish:</p>
  
  <pre><code>langues[[14]]$clickElement() 
  remDr$screenshot(display = TRUE)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/95ZN9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/95ZN9.png" alt="enter image description here"></a></p>
  
  <p>nothing happend. But with Portuguese:</p>
  
  <pre><code>langues[[16]]$clickElement() 
  remDr$screenshot(display = TRUE)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/jei88.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jei88.png" alt="enter image description here"></a></p>
  
  <p>Here it worked. 
  I don't see any difference between the two situations, so I don't find a solution to click any radio button in the popup.</p>
  
  <p>Any ideas?</p>
  
  <h1>edit</h1>
  
  <p>I tried to click all of them. I can click "All language", "English", "Norwegian", and "Portuguese". None of the others work, even with the proposed solution:</p>
  
  <h2>BigDataScientist solution</h2>
  
  <p>I did load the popup menu, and I deleted the cookies before:</p>
  
  <pre><code>remDr$deleteAllCookies()
  remDr$navigate(url)
  
  # click more language
  webElems &lt;- remDr$findElements(using = "css selector", ".taLnk") # taLnk est le css pour etendre des menus.
  webElemstext &lt;- unlist(lapply(webElems, function(x) {x$getElementText()}))
  webElems[[which(webElemstext == "More languages")]]$clickElement() 
  </code></pre>
  
  <p>Here is the solution given</p>
  
  <pre><code>langues &lt;- remDr$findElements(
    using = "xpath", 
    value = "/html/body/div/div/div/div[@class = 'ui_radio item']"
  )
  langues_txt &lt;-  unlist(lapply(langues, function(x) {x$getElementText()}))
  langues[[8]]$clickElement() # It should be german
  remDr$screenshot(display = TRUE)
  </code></pre>
  
  <p>here is the result:</p>
  
  <p><a href="https://i.stack.imgur.com/OC06F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OC06F.png" alt="enter image description here"></a></p>
  
  <p>Indeed here I get only 12 languages, but I am still unable to click on the buttons I want.</p>
  
  <h2>supputuri solution</h2>
  
  <p>It doesn't work for me either: I tried both:</p>
  
  <pre><code>langElement &lt;- remDr$findElement(using = "css", ".more-options .ui_radio.item:nth-of-type(8) input")
  langElement$clickElement()
  remDr$screenshot(display = TRUE)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>langElement &lt;- remDr$findElement(using = "css", ".more-options div[data-tracker='German'] input")
  # click on language radio button
  langElement$clickElement()
  remDr$screenshot(display = TRUE)
  </code></pre>
  
  <p>none worked:</p>
  
  <p><a href="https://i.stack.imgur.com/weKaG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/weKaG.png" alt="enter image description here"></a></p>