Micro Focus QTP (UFT) Forums
How to select the WinRadioButton using descriptive programming - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to select the WinRadioButton using descriptive programming (/Thread-How-to-select-the-WinRadioButton-using-descriptive-programming)



How to select the WinRadioButton using descriptive programming - vishruth143 - 08-24-2013

Hi All,

Im trying to automate selecting the WinRadioButton "First" in the Flight application using the below code in QTP version 9.5.

Code:
'Descrition Object
    Set oChkBoxDesc = Description.Create
    oChkBoxDesc("micclass").Value = "WinRadioButton"
    oChkBoxDesc("text").Value = "First"
    oChkBoxDesc.Set
But I'm getting the below error

Object doesn't support this property or method: 'oChkBoxDesc.Set'

Line (20): "oChkBoxDesc.Set".

Please let me know how can I resolve this.


RE: How to select the WinRadioButton using descriptive programming - Ankur - 08-24-2013

Parent object hierarchy is missing.