SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2000
    Location
    CA
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Windows with the same IDs and captions but...

    How do you get around an application with windows that have the same window IDs and captions but they are actually different windows? These are error dialog boxes. These error boxes are uniquely identified by the static text but i don't think I can use this as my identifier for the window.

    Thanks!

    [This message has been edited by newbie27 (edited 06-12-2000).]

  2. #2
    Senior Member
    Join Date
    Jul 2002
    Location
    Paris (France)
    Posts
    182
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows with the same IDs and captions but...

    If the dialogs are all the same, then why declare them seperate? Have one dilog, do a GetText() on the static text, then process.

    Thus, if you had something like:
    You could do a:

    if (GenericJSErrorDialog.Exists())

    to tell if any of them existed. You could do a

    sMsg = GenericJSErrorDialog.ErrorMessage.GetText()

    to get the unique text. Then you could do whatever - print out the message, have a SWITCH statement to process code based on the message returned, etc.

    Does that answer your question?

    ------------------
    David Genrich
    Icarian
    555 North Mathilda Ave
    Sunnyvale, CA 94086
    davidg@icarian.com

  3. #3
    Junior Member
    Join Date
    Jun 2000
    Location
    Needham, MA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows with the same IDs and captions but...

    If, in fact, the windows *are* different, you need to create a unique tag for each. The easiest way to do that is to include information that's different, something like:

    window DialogBox myWin
    tag "[DialogBox]Caption/[PushButton]UniqueButton"

    That tells SilkTest to resolve the tag by using both the Caption & the existence of a PushButton on the window.

    There are lots of combinations of how to construct a unique tag using the parenting information or contents of the window. Look in the SilkTest help under 'tags, syntax for'

  4. #4
    Junior Member
    Join Date
    Jun 2000
    Location
    maynard, ma
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows with the same IDs and captions but...

    monica_luke -

    How can you do the same thing for diferent browser windows, which are based off of the wMainWin?

    My web app during the install process will pop open a new window containing the newly installed tool which was installed. Yet I can't figure out a way of accessing the original window to be able to close it. If I call browserchild.close(), it fails (naturally), so I have tried to to add a new window definition using the means you described, but being a newbie, I think I screwed it up.

    the attachment contains the browser children and my 2 attempts to uniquely identify the install window.

    thanks,

    Peter

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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:26 AM.

Copyright BetaSoft Inc.