I want to check this radio button, but I didn't know how. My HTML is:
<div class="appendContent">
<div> id="contentContainer" class="grid_list_template">
<div id="routeMonitorOptions"></div>
</div>
<input id="optionStopGrid" type="radio" name="gridSelector"/>
<label for="optionStopGrid">Paradas</label>
</div>
Please try this code to select the radiobutton-
driver.findElement(By.cssSelector("input[id='optionStopGrid']")).click();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With