Micro Focus QTP (UFT) Forums
Descriptive Programming/RadioButton - 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: Descriptive Programming/RadioButton (/Thread-Descriptive-Programming-RadioButton)



Descriptive Programming/RadioButton - ktenas - 07-09-2010

I have a radiobutton on a page, i can get my script to select it IF i do it by recording

Code:
VbWindow("MDIForm1_10").VbWindow("frmLocation").VbRadioButton("&Location (Section, Township").Set

I want to use descriptive programming along with a regular expression(because the 10 in MDIForm changes)

I have:
Code:
VbWindow("vbname:=MDIForm1.* ").VbWindow("vbname:=frmLocation").vbRadioButton("vbname:=optAddress(1)", "nativeclass:=ThunderRT6OptionButton").Set

The vbname and nativeclass are both correct (used object spy). I am getting an error saying


"Cannot identify the object "[ VbRadioButton ]" (of class VbRadioButton). Verify that this object's properties match an object currently displayed in your application.

Line (2):
Code:
"VbWindow("vbname:=MDIForm1.* ").VbWindow("vbname:=frmLocation").vbRadioButton("vbname:=optAddress(1)", "nativeclass:=ThunderRT6OptionButton").Set".

Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository."

Any help would be much appreciated


RE: Descriptive Programming/RadioButton - Arun Prakash - 07-10-2010

Can u send a snap shot of your page?