-
Script to extract all the JavaButton objects from a JavaWindow
Question asked by visitor Thai
Hi
I am using QTP against a JAVA based application. I would like to write a script to extract all the JavaButton objects from a JavaWindow. I can do this for listfield on Web page using
set Screen = Browser("title:=" & BrowserTitle).Page("title:=" & BrowserTitle)
set a = Screen.Object.all.tags("select")
Can you guys please help me out?
Thank you very much in advance
Regards
-
Contributing Member
Re: Script to extract all the JavaButton objects from a JavaWindow
sorry i don't have the knowledge about qtp............................
-
Expert Member
Hi
Try using this code. the one you have written will not work i guess....
Set linkDesc = Description.Create
linkDesc("micclass").value = "Link"
Set obj1= Browser("Google").Page("Google").ChildObjects(linkDesc)
msgbox obj1.count
This will return the count of object you want to find (in my case "Link")
If you need the object names as well, let me know....
I will send the code for it
Last edited by jainbrijesh; 05-19-2007 at 04:58 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules