WebRadioGroup - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: WebRadioGroup (/Thread-WebRadioGroup) |
WebRadioGroup - sqadri - 01-11-2012 Hi, Could someone help me with this problem please? I have two radio buttons in a group and I want to verify when one is checked the other is unchecked, since group radio buttons have the same name I was thinking of using teh id of the radio button but how do I use it. Or please tell me if there is any other way to do this. If I use Check(CheckPoint(" ") I get same return for both and that is 'Checked' Also I want to verify a WebEdit box is disabled. Whe i use Check(CheckPoint("") ) I get Code: Browser("").Page("").WebElement("WebElement_2").Check CheckPoint("WebElement_3") Thanks, Sqadri RE: WebRadioGroup - sunnyk8 - 01-11-2012 Hi Sqadri, Try to spy both the WebRadioGroup objects, you will find one unique value that is different in both, try to do a checkpoint with that property. Code: Browser(,,,,,).WebRadioGroup(,,,).Checkpoint "Property",value Same follow for the second one For the WebEdit box check the disabled should be true Browser(,,,,,).WebEdit(,,,).CheckProperty "disabled",false Sunny RE: WebRadioGroup - Rajsreemad - 01-11-2012 Hi, You can also go with index property for both the objects. ex: Code: Browser().page().WebRadioGroup("class:=classname","index:=0").click RE: WebRadioGroup - Ankesh - 01-11-2012 Hi, For webradio group is selected or not.. Code: strResult=Browser(strBrowser).Page(strPage).WebRadioGroup(strWebRadioGroup).GetROProperty("checked") Regards, Ankesh RE: WebRadioGroup - sqadri - 01-13-2012 Thank you all, I highly appreciate your help. I will give it a try. Sqadri |