SPONSORS:






User Tag List

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

    To close frequent popup

    Hi guys,
    In my application,one popup is found displayed frequently while working with functionalities.I want to close that popup whenever it occurs and continue with other scripts.Can any one help me to sort out this with Test Partner Script.

  2. #2
    Senior Member
    Join Date
    Nov 2005
    Location
    Valley Forge, PA
    Posts
    417
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: To close frequent popup

    Use the Whenever Method.

    Joe

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

    Re: To close frequent popup

    I have used the .Exists property like:
    If Window("POPUPWindow", tpAttachNoWait).Exists then
    Window("POPUPWindow").Attach
    Button("YesButton").Click
    End If

    The Whenever Method looks like it would work too, but I really can not contrast the benefits of one vs. the other.
    TestPartner:
    Testing: TP 6.2 SP1 build 463, MS Access 2003
    TP 6.0 SP1 build 476, SQL 2005 DB.
    Test Environment:
    Clients on VMWare XP Workstation
    Run Clients useing VNC Ultra for Remote

    Application Under Test:
    IE 6 web apps
    Using Test Partner Sence 2007
    Using VBA Sence 1995
    Other:
    VB3 - VB6, VBScript, VB.NET 1 - 4, Learning C#, SQL server 2005 - 2008

  4. #4
    Senior Member
    Join Date
    Jun 2002
    Location
    farmington hills, MI, US
    Posts
    713
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: To close frequent popup

    Whenever benefit - A popup can happen at any time which makes it almost impossible to account for in your code, unless you use a whenever event. The event handler only needs to be coded once instead of frequently across your code. When the Whenever event is loaded it is then polled during execution so that the event handler will be called once it occurs. You can use the CancelWhenever method when you no longer need to monitor for the event.

 

 

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 9.68%
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:10 AM.

Copyright BetaSoft Inc.