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.
sahi script to get the input for radio button with Yes and No option
Please provide the Source Code samples for sahi script to get input for radio button with Yes and No.The Input can be retrieved via excel sheet. we can check both yes and no option based on the excel sheet entries.
Best Answer
-
Well, good job getting there yourself

btw you could shorten these lines to_check(_radio($ExistingCustomer+"RadioButtonFor"), $ExistingCustomer)

Answers
lets divide and conquer a bit huh? Please explain what you need, as I guess noone will just post some code which will totally meet your requirements.
Do you want to know:
How to read data from Excel Sheets? -> Forum Search and Sahi Docs
How to check radio buttons? -> Forum Search and Sahi Docs
alternatively you could put a minimum effort into this and look it up yourself
if(($ExistingCustomer=="Yes"))
{
_check(_radio("YesRadioButtonFor"),$ExistingCustomer);
}
else if(($ExistingCustomer=="No"))
{
_check(_radio("NoRadioButtonFor"),$ExistingCustomer);
}