SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2005
    Location
    Toronto
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Look at objects in other windows?

    I wish to refer to an object that is in a different window than the one I am testing. The problem is that I want to refer to it without switching the window I am currently working with. In otherwords I cannot use a "Window SetContext" command.

    I have this line:
    iErrMsg = SQAFindObject("Type=GenericObject;Text=Ready")

    And I want it to be like this:
    iErrMsg = SQAFindObject("Type=GenericObject;Caption=ServStat us;Text=Ready")
    This second line is incorrect obviously, but it points out that I want to check the existance of an object in the window called "ServStatus" but not switch to that window (making it the active window) from the one I am testing. Quickly using a Window SetContext to go back and forth does not seem to cut it here.

    So is there a way I can just pluck the info of an object from a window without making it active?

    Thanks.

  2. #2
    Junior Member
    Join Date
    Jul 2002
    Location
    New Zealand
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Look at objects in other windows?

    Have you tried referencing the the object in the the different window using its Full Recognition string.

  3. #3
    Junior Member
    Join Date
    Feb 2005
    Location
    Toronto
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Look at objects in other windows?

    Yes. That is where I got the ("Type=GenericObject;Text=Ready" from (except I clicked it to find out what it was, and now I'm just trying to find if the word ready appears in the ServStatus window).
    The problem is that when I recorded it, I obviously had to make ServStatus the active window before being able to access that object.
    I want to be able to check the existance of this object without making it the active window (so the main app is always active).

    Thanks.

  4. #4
    Senior Member
    Join Date
    Apr 2005
    Location
    Galway, Ireland
    Posts
    106
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Look at objects in other windows?

    Hi webrat, Liz is right. You need to use the FULL recognition string.
    It should look something like
    "\;Type=Window;Name=frmMain;\;Type=GenericObject;T ext=Ready"
    where \; refers to the top level (the desktop ?) and the middle section is the same as you would have in a setContext.
    The full string can even be more complex, so to get the actual value that you need, do a
    SQAGetProperty("Type=GenericObject;Text=Ready", "FullRecognition", value)
    For more details, look at Robot inline help under "Finding Recognition Method Values Programmatically"

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.34%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:00 AM.

Copyright BetaSoft Inc.