Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 - 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: Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 (/Thread-Capturing-the-text-of-the-selected-WinRadioButton-in-QTP10-0-on-Win7) |
Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 - joe.venom13 - 12-28-2010 Hi All, I am facing a problem in Capturing the text of the selected WinRadioButton in QTP10.0 on Win7... The error is as follows: Object doesn't support this property or method: 'Window(...).WinRadioButton.GetROProperty' Line (45): Code: "objWorkbook.Sheets("Sheet1").Cells(i,11).Value = Window("Flight Reservation").WinRadioButton.GetROProperty("text")". RE: Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 - BVVPrasad - 12-28-2010 Try This: Code: objWorkbook.Sheets("Sheet1").Cells(i,11).Value =Window("Flight Reservation").WinRadioButton("Business").GetROProperty("checked") RE: Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 - joe.venom13 - 12-28-2010 Hi BVVPrasad, Thanks for the reply... The code that you mentioed halped me save the ("Business") in the excel sheet... But i need to capture the text of the selected WinRadioButton object in the sample application... RE: Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 - BVVPrasad - 12-28-2010 Hi Joe, This should work: Code: arrRadio=Array("Business","Economy","First") Thanks, Prasad RE: Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 - joe.venom13 - 12-28-2010 Thanks alot Prasad... It worked and is correctly capturing the text of the selected WinRadioButton... RE: Capturing the text of the selected WinRadioButton in QTP10.0 on Win7 - nanthini222 - 03-21-2011 Good reply.. |