Results 1 to 3 of 3

Thread: Windows with same caption

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Windows with same caption

    I am using Rational Robot for tetsing.
    I have a window1 with a caption say "setup".
    When I click on the "ok" button of the window1, another window pops up say window2 with the same caption as window1.
    Window 1 would be still running in the background.
    How does the Rational Robot script recognise the window2, as the captions for window1 and window2 are the same?

    Please help!!


  2. #2
    Junior Member
    Join Date
    Jul 2008
    Answers
    3

    Re: Windows with same caption

    From any of the Window "Setup" try to use SQAGetProperty and get any other information of
    that window ex Label.Then write a condition like,
    Window setContext "caption=Setup"
    SQAGetProperty("Label;Text=" ","Visible", State)
    By evaluating variable state you can distinguish between the same setup windows.


  3. #3
    Junior Member
    Join Date
    Aug 2008
    Answers
    5

    Re: Windows with same caption

    Hi for every object there will be an ID called as Object Id, so in your case the Object Id for both the windows will be different.
    Try out with the object id property.


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