Results 1 to 3 of 3

Thread: Script to extract all the JavaButton objects from a JavaWindow

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Contributing Member
    Join Date
    Mar 2007
    Answers
    34

    Re: Script to extract all the JavaButton objects from a JavaWindow

    sorry i don't have the knowledge about qtp............................


  3. #3
    Expert Member
    Join Date
    Apr 2007
    Answers
    147
    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.

  4.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact