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
    Apr 2001
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Passing a DialogBox..

    User John (tinka_boy@yahoo.com) posted:

    I am working on a web page where some of the URLs cause a html
    controlled DialogBox to pop up. Currently when my script finds one of
    these boxes, it is closed. No problem. However, when the box doesn't
    appear my script crashes.
    Does anyone know how to make my testcase continue to the next link
    when an event doesn't happen as expected?

    thanks
    -John



  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing a DialogBox..

    Is the dialog supposed to come up? Is it an error condition if it doesn't?

    I'd have a boolean setup and an if/else based on that boolean.

    <CODE>
    [ ] boolean bFound = MyDialog.Exists(2)
    [-] if bFound
    [ ] MyDialog.DoSomethingHere()
    [-] else
    [ ] LogError("Somethign bad happened text here.")
    [ ] //Proceed however appropriate...
    [ ]

    </CODE>

    In the else portion of your code, you'll need to make a determination regarding the state of your applicaiton in order to know how to procede.


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


    [This message has been edited by DJGray (edited 04-20-2001).]

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing a DialogBox..

    I would :
    It should work. This way wheather you have an error or not you will go on your test.

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

  4. #4
    Junior Member
    Join Date
    Apr 2001
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing a DialogBox..

    Thanks to everyone for their help. I was able to fix things using an 'if/else' command, and a few well placed 'sleep' commands.



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

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:56 PM.

Copyright BetaSoft Inc.