QTP Tip to Deselect all radio buttons

Discussion in 'Programming' started by ExpertQTP, Oct 22, 2009.

  1. #1
    Yesterday I got an email from one of my esteemed readers who asked "Is there any way to deselect all radio buttons using HP QTP?" I thought why one would do that but since it has been asked, it has to be answered.

    Before answering the above question let me explain that, radio buttons work in groups unlike checkboxes. It means, in a group only a single radio button can be selected. Afterwards, its not possible to deselect all radio buttons in that group. Even manually it can not be done.

    Inititally the task seems impossible but its not :)

    It is definitely possible to deselect all radio buttons using QTP but it can only be achieved with the help of Document Object Model or DOM.

    You can read the complete article here : HP QTP Blog
     
    ExpertQTP, Oct 22, 2009 IP