1 Answer: Use ID For Selection
1 Answer: Use ID For Selection
Going through the examples given for all other related questions I could not find a
proper solution that works in a concise way that by few line or method I can check a
checkbox or radio button.
Any help would be appreciated.
A sample HTML section is below:
<tbody>
<tr>
<td>
<span class="120927">
<input id="ctl00_CM_ctl01_chkOptions_0" type="checkbox"
name="ctl00$CM$ctl01$chkOptions$0"/>
<label
for="ctl00_CM_ctl01_chkOptions_0">housingmoves</label>
</span>
</td>
</tr>
<tr>
<td>
<span class="120928">
<input id="ctl00_CM_ctl01_chkOptions_1" type="checkbox"
name="ctl00$CM$ctl01$chkOptions$1"/>
<label for="ctl00_CM_ctl01_chkOptions_1">Seaside &
Country Homes</label>
</span>
</td>
</tr>
</tbody>
selenium
webdriver
selenium-webdriver
xpath
answer
1 Answer
+ –
0votes