18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Urgent: Radio button is highlighted but not clickable. Kindly Help.
Hi All,
In my application, we have a table containing multiple radio buttons and their names. I pasting the HTML snippet of that table below:
In this table, I can click upto radio button named "#PortO" using code _click(_radio(0,_in(_cell("#PortO")))); and in same way I can highlight this particular cell.
but radio button for cell "#PortR" is not clickable.
I am trying to click using:
_click(_radio(0,_in(_cell("#PortO")))); but did not succeed.
also using:
_highlight(_cell("#PortR")); , cell can not be highlighted.
If access of the application is needed, please let me know.
Kindly help in resolving this problem.
In my application, we have a table containing multiple radio buttons and their names. I pasting the HTML snippet of that table below:
<div id="CRbodysourceid" class="CRController_body" style="width: 530px; top: -12px; left: 402.65px;" layer="0">
<table height="28px" cellspacing="0" cellpadding="0" align="center" width="90%">
<tbody>
<tr>
<td class="catselected" align="center" style="-moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px;">
<input id="categorysourceidIP Address" type="radio" value="IP Address" name="catrdosourceid">
IP Address
</td>
<td class="" align="center" style="-moz-border-radius: 0px 0px 0px 0px;">
<input id="categorysourceidIP Host Group" type="radio" value="IP Host Group" name="catrdosourceid">
IP Host Group
</td>
<td class="" align="center" style="-moz-border-radius: 0px 0px 0px 0px;">
<input id="categorysourceidMAC Host" type="radio" value="MAC Host" name="catrdosourceid">
MAC Host
</td>
<td class="" align="center" style="-moz-border-radius: 0px 0px 0px 0px;">
<input id="categorysourceidFQDN Host" type="radio" value="FQDN Host" name="catrdosourceid">
FQDN Host
</td>
<td class="" align="center" style="-moz-border-radius: 0px 0px 0px 0px;">
<input id="categorysourceidFQDN Host Group" type="radio" value="FQDN Host Group" name="catrdosourceid">
FQDN Host Group
</td>
<td class="" align="center" style="-moz-border-radius: 0px 0px 0px 0px;">
<input id="categorysourceidCountry Host" type="radio" value="Country Host" name="catrdosourceid">
Country Host
</td>
<td class="" align="center" style="-moz-border-radius: 0px 0px 0px 0px;">
<input id="categorysourceidCountry Host Group" type="radio" value="Country Host Group" name="catrdosourceid">
Country Host Group
</td>
</tr>
</tbody>
</table>
<div align="center" style="width: 100%; background: none repeat scroll 0% 0% rgb(255, 255, 255);">
<input id="CRSearchTextsourceid" class="CRsearchtext" type="text">
</div>
<div id="CRControllerDatasourceid" style="overflow: auto; height: 200px;">
<table width="100%">
<tbody>
<tr>
<td>
<input id="cranysourceid" type="checkbox" checked="checked">
Any
</td>
<td colspan="2">
<div class="CRControllerAddButton" onclick="Cyberoam.showPopup({URL:"/objects/IPHostEdit.html?mode=300&operation=51&hosttype=9&CRController=sourceid",title:"Add IP Host",width:600,height:265});">
<u>Add IP Address</u>
</div>
</td>
</tr>
<tr>
<td title="##ALL_RW">
<input type="radio" false="" label="##ALL_RW" key="5" name="radiosourceid">
##ALL_RW
</td>
<td title="##ALL_IPSEC_RW">
<input type="radio" false="" label="##ALL_IPSEC_RW" key="6" name="radiosourceid">
##ALL_IPSEC_RW
</td>
</tr>
<tr>
<td title="##ALL_SSLVPN_RW">
<input type="radio" false="" label="##ALL_SSLVPN_RW" key="7" name="radiosourceid">
##ALL_SSLVPN_RW
</td>
<td title="#PortC">
<input type="radio" false="" label="#PortC" key="2" name="radiosourceid">
#PortC
</td>
</tr>
<tr>
<td title="#PortD">
<input type="radio" false="" label="#PortD" key="8" name="radiosourceid">
#PortD
</td>
<td title="#PortE">
<input type="radio" false="" label="#PortE" key="9" name="radiosourceid">
#PortE
</td>
</tr>
<tr>
<td title="#PortF">
<input type="radio" false="" label="#PortF" key="10" name="radiosourceid">
#PortF
</td>
<td title="#PortG">
<input type="radio" false="" label="#PortG" key="11" name="radiosourceid">
#PortG
</td>
</tr>
<tr>
<td title="#PortH">
<input type="radio" false="" label="#PortH" key="12" name="radiosourceid">
#PortH
</td>
<td title="#PortI">
<input type="radio" false="" label="#PortI" key="13" name="radiosourceid">
#PortI
</td>
</tr>
<tr>
<td title="#PortJ">
<input type="radio" false="" label="#PortJ" key="14" name="radiosourceid">
#PortJ
</td>
<td title="#PortK">
<input type="radio" false="" label="#PortK" key="15" name="radiosourceid">
#PortK
</td>
</tr>
<tr>
<td title="#PortL">
<input type="radio" false="" label="#PortL" key="16" name="radiosourceid">
#PortL
</td>
<td title="#PortM">
<input type="radio" false="" label="#PortM" key="17" name="radiosourceid">
#PortM
</td>
</tr>
<tr>
<td title="#PortN">
<input type="radio" false="" label="#PortN" key="18" name="radiosourceid">
#PortN
</td>
<td title="#PortO">
<input type="radio" false="" label="#PortO" key="19" name="radiosourceid">
#PortO
</td>
</tr>
<tr>
<td title="#PortP">
<input type="radio" false="" label="#PortP" key="20" name="radiosourceid">
#PortP
</td>
<td title="#PortQ">
<input type="radio" false="" label="#PortQ" key="21" name="radiosourceid">
#PortQ
</td>
</tr>
<tr>
<td title="#PortR">
<input type="radio" false="" label="#PortR" key="22" name="radiosourceid">
#PortR
</td>
<td title="#PortS">
<input type="radio" false="" label="#PortS" key="23" name="radiosourceid">
#PortS
</td>
</tr>
<tr>
<td title="#PortT">
<input type="radio" false="" label="#PortT" key="24" name="radiosourceid">
#PortT
</td>
<td title="#PortU">
<input type="radio" false="" label="#PortU" key="25" name="radiosourceid">
#PortU
</td>
</tr>
<tr>
<td title="#PortV">
<input type="radio" false="" label="#PortV" key="26" name="radiosourceid">
#PortV
</td>
<td title="#PortW">
<input type="radio" false="" label="#PortW" key="27" name="radiosourceid">
#PortW
</td>
</tr>
<tr>
<td title="#PortX">
<input type="radio" false="" label="#PortX" key="28" name="radiosourceid">
#PortX
</td>
<td title="#PortY">
<input type="radio" false="" label="#PortY" key="29" name="radiosourceid">
#PortY
</td>
</tr>
<tr>
<td title="#PortZ">
<input type="radio" false="" label="#PortZ" key="30" name="radiosourceid">
#PortZ
</td>
<td title="#PortA">
<input type="radio" false="" label="#PortA" key="4" name="radiosourceid">
#PortA
</td>
</tr>
<tr>
<td title="#PortB">
<input type="radio" false="" label="#PortB" key="3" name="radiosourceid">
#PortB
</td>
<td title="182.17.1.30">
<input type="radio" false="" label="182.17.1.30" key="1" name="radiosourceid">
182.17.1.30
</td>
</tr>
<tr>
<td></td>
</tr>
</tbody>
</table>
</div>
<div id="CRControllerButtonsourceid" align="center">
<input class="inputbutton" type="button" value="<<">
<input class="inputbutton" type="button" value="<">
<input class="inputbutton" type="button" value="OK">
<input class="inputbutton" type="button" value="Cancel">
<input class="inputbutton" type="button" value=">">
<input class="inputbutton" type="button" value=">>">
</div>
</div>
In this table, I can click upto radio button named "#PortO" using code _click(_radio(0,_in(_cell("#PortO")))); and in same way I can highlight this particular cell.
but radio button for cell "#PortR" is not clickable.
I am trying to click using:
_click(_radio(0,_in(_cell("#PortO")))); but did not succeed.
also using:
_highlight(_cell("#PortR")); , cell can not be highlighted.
If access of the application is needed, please let me know.
Kindly help in resolving this problem.
Comments
Start the Sahi and Open the Controller.Hover the mouse over the cell #PortR and use the correct identifier.
With the html snippet provided,the radio button in cell #PortR can be clicked.
Try with,
You can see first,cell #PortO is highlighted and then the radio button in it is clicked.The result is same with #PortR.
let us know if the problem persists.
Regards,
Theeran.
I have already done these things. I can click and highlight "#PortO" but the same action does not work for "#PortR".
It's quite strange behavior but true.
Kindly provide any other work around. If you need access to my application then please let me know.
We can connect through TeamViewer and there you can have access to my application.
Regards,
nagar
I am able to click and highlight #portR on all browsers and with all version of Sahi.
What version of Sahi are you using?Are you facing this issue with all browsers?
Could you please try with the latest version of Sahi and check? If you are still facing issue then we will have a desktop sharing to resolve this issue.
Regards
Sumitra
Thanks for the response.
I have checked the code on FF3.6, IE7 & Chrome16.0 browsers.
It works fine on IE browser but does not work on FF & Chrome browsers.
I am using Sahi Version - V3.5 [Build: (2011-07-19)]
Regards,
nagar
I have sent you an email. Please respond to that.
Let me know when you are available so that we can have a desktop sharing and help you to resolve your issue.
Regards
Sumtira