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.

How to check if Radio is selected or not

vikkyjainvikkyjain Members
edited November -1 in Sahi - Open Source
Hi,

In my application I have two check box in my page and One of them is selected. So how we can know which radio is selected ?

I tried with _condition(_radio("ID").selected) but its not working.

Comments

  • Hi vikkyjain,

    It should be:

    if(_condition(_radio("ID").checked)){//do something}

    Regards
    Sumitra
  • Hi Sumitra

    Thanks for help. Its working Fine..
This discussion has been closed.