SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    JCC
    JCC is offline
    Senior Member
    Join Date
    May 2002
    Location
    Copenhagen, Denmark
    Posts
    116
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Closing unexpected Dialogs

    Hi


    I'm writing a test case for a standard window application where I type in "random" numbers and look them up. Under certain circumstances I get an error message. These I just want to close as they are expected! I have made a window declaration for some of the error message dialogs and I know I can just use a Window.exists to check if some of them appears.

    E.g.

    [-] if (NotFound.Exists (5))
    [ ] NotFound.OK.Click ()

    This is however cumbersome if I have to do this for all the expected error messages.
    Is there some other way to easily close all error dialogs and then continue with the script?

    By the way for some reason silk test always return an error if I try to use the GetActive method? Any idea why? I am using Win 2000 so the method should be supported

    Thanks


    ------------------

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Closing unexpected Dialogs

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by JCC:

    Is there some other way to easily close all error dialogs and then continue with the script?
    <HR></BLOCKQUOTE>
    Take a look at SetTrap(). While extremely limited, it is effective in closing dialogs that you can readily identify.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    By the way for some reason silk test always return an error if I try to use the GetActive method?
    <HR></BLOCKQUOTE>

    There are a number of possibilities here. Can you show us an example and and error message you receive?


    John


    ------------------

 

 

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 05:31 PM.

Copyright BetaSoft Inc.