18 January 2026:


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

sibusibu Members
edited June 2013 in Sahi - Open Source
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

  • edited June 2013 Answer ✓
    Well, good job getting there yourself :)

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

Answers

  • Hi sibu

    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
  • sibusibu Members
    edited June 2013
    OK please post both with sample codes i will check and revert back
  • sibusibu Members
    edited June 2013
    Please post the correct url for How to check radio buttons via read from excel sheet ?
  • Ok just send me an Email with the csv file and tell me if you want the solution in Java or JavaScript. I'd take 20$ per hour, please tell me how you want to transfer the money, I have a PayPal Account :)
    alternatively you could put a minimum effort into this and look it up yourself ;)
  • sibusibu Members
    @Global worming No Thanks
  • sibusibu Members
    I got the solution for this

    if(($ExistingCustomer=="Yes"))
    {
    _check(_radio("YesRadioButtonFor"),$ExistingCustomer);
    }
    else if(($ExistingCustomer=="No"))
    {
    _check(_radio("NoRadioButtonFor"),$ExistingCustomer);
    }
Sign In or Register to comment.