I have been trying to get my script to click on this radio button for 2 days now and nothing I try works.
I have tried, css selector
, XPATH
, by name
, id
, using webdriverwait
and also switching to Java. Nothing seem to be able to locate it and allow me to click on it. I have no issues with anything else on the website.
What code would you use if you were trying to click on the Radio button ("SearchByParcel")?
HTML code:
<tr>
<td style="width:33%;"> </td>
<td style="text-indent:08px;">
<input value="SearchByName" name="SearchRadio" type="radio" id="SearchByName" onclick="ShowMessage(this)" checked="checked">
Name
<input value="SearchByParcel" name="SearchRadio" type="radio" id="SearchByParcel" onclick="ShowMessage(this)">
Parcel #
<input value="SearchByAddress" name="SearchRadio" type="radio" id="SearchByAddress" onclick="ShowMessage(this)">
Address
</td>
<td style="width:33%;"> </td>
</tr>