SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to handle popups which appears suddenly

    Hi Guys,

    I am working on Bookmark creation in the browsers.

    When i try open different urls suddenly some of Popup's coming in between like "security popups","adds" etc.Because of which script failing.

    So please tell me how to handle those popups at runtime.

    and also please note that we don't when those popups will appear.So we have to set the globally to handle these ups.

    Please help me in handling these type of popup's

    Regards
    Venkat

  2. #2
    Junior Member
    Join Date
    Mar 2007
    Location
    Lviv, Ukraine
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to handle popups which appears suddenly

    Hi Venkat!

    I don't know exactly, however, try to use parallel thread to check when popup window will open and just close it.

    Or check when your main browser window doesn't have got focus for some time, and check which window is active in that time and close it.

    Or during all your script check size of browser window, if it will be small - it is popup.

    Hope, my ideas will be useful for you!
    Software Engineer in Test Automation, Ukraine

  3. #3
    Senior Member
    Join Date
    Apr 2006
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to handle popups which appears suddenly

    See help for SetTrap and ClearTrap methods. For dialog boxes it is the best solution you are looking for

  4. #4
    Member
    Join Date
    Mar 2007
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to handle popups which appears suddenly

    Hi msft,

    The ideas given by u are good, but can u give an example, for creating a parallel thread on a single machine where my script present.

  5. #5
    Member
    Join Date
    Mar 2007
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to handle popups which appears suddenly

    Hi kanon,

    I have gone through the help for SetTrap and Clear Trap and wrote the follwing code.

    For handling Security Alert, i wrote the following,

    [-] TestCaseEnter ()
    [ ] SecurityAlert.SetTrap("OK")
    [ ] SetAppState ()

    [-] TestCaseExit (BOOLEAN bException)
    [ ] SecurityAlert.ClearTrap()
    [+] if (bException)
    [ ] ExceptLog ()
    [ ] SetBaseState ()

    Here i am hanling the SetTrap and Clear Trap because i need to check in each and every test case.

    I tried like this, but it is not working fine i.e. it is not handling popup's.

    Please let me know if anybody have other ideas top handle these popups.

    Thanks & Regards
    Venkat

  6. #6
    Junior Member
    Join Date
    Sep 2006
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to handle popups which appears suddenly

    Hi Venkat,

    To handle popup blocks that occur atr runtime we can do something like as follows...

    1. Declare a popup window in any framework file.

    2. Write a method under this window declaration let's say method can be Dismiss().

    window BrowserChild PopupBlocker
    tag "PopupBlocker"

    Dismiss()
    Here write a code using some globally declared variables tht represents time in m.sec and check for the existance of PopupBlocker if in case exists make the browser to wait for few sec.s

    Now u can use PopupBlocker.Dismiss() wherever u want like during loading of URL etc..


    Thanks,
    Raju

  7. #7
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do we handle the Microsoft I.E popups

    Hello,
    How do we handle Microsoft I.E popups.

    Thanks in advance for your help.

 

 

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.38%
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:16 PM.

Copyright BetaSoft Inc.