Set objOpenDialog=JavaDialog("OpenDialog")
Set DiscriptiveObject=Description.Create '
''If it is JavaCheck box OR Cheng according to you check box class
DiscriptiveObject("Class Name").value="JavaCheckBox"
''Get all "CheckBox" Child element
Set
objNumberOfObject=JavaDialog("OpenDialog").ChildObjects(DiscriptiveObject)
'this will return Total number of CheckBox
objNumberOfObject.Count
For iCount=0 to objNumberOfObject.Count-1
'According to this u can get any Property
Msgbox objNumberOfObject(iCount).GetRoProperty("attached text")
Next
''try this if its works then good,or send me details if you are getting any
problem
--
Thanks & Regards
Sujit :)
On Mon, Jul 16, 2012 at 10:57 PM, sandler <[email protected]> wrote:
> Hello Team!
>
> In my project I've to click on each tab and select a checkbox. The exact
> number of tabs are not defined this might change based on the user role.
> Can anyone help me write the script for this.
>
>
> Appreciate all your help.
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en