I am using RSelenium to scrape content from a website. But when I try to select a radio button it doesn't seem to work.
HTML
<div class="radio">
<input type="radio" name="sexo" id="sex" value="M">
<label for="sex">
<span></span> Hombre
</label>
<input type="radio" name="sexo" id="sex1" value="F">
<label for="sex1">
<span></span> Mujer
</label>
</div>
My R code is:
sex <- mybrowser$findElement(using = 'css', '#sex')
sex$clickElement()
But I get the next error:
Error: Summary: ElementNotVisible
Detail: An element command could not be completed because the element is not visible on the page.
class: org.openqa.selenium.ElementNotVisibleException
I have tried using css, xpath, name, id, etc but nothing seems to work.
Thank you for your help.
id="sex"?mybrowser$maxWindowSize()