SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Dec 2001
    Location
    Boston,MA, USA
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Interacting with Modal popup on a web application

    Hi Folks,

    I ran some extensive searches in the forum and did not find any posts relevant to the issue I am running into. Hope someone can be of help.

    Our web based ecom retail site AUT has a plethora of modal pop up boxes all over the site and I am trying to automate the regression testing of these modals.

    The problem I am running into is that SilkTest does not recognize these modals as any window or browser child type, but clubs it together with the parent browser where the modal was invoked (by clicking a link/image).

    I would highly appreciate if anyone who may have run in to this situation and has worked around it can provide some assistance to me.

    I can provide more detailed info regarding my application if some one is interested in this challenge.

    Thanks!
    -Shree

    *************************************************
    The more I learn, the more I realize how little I know!

  2. #2
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Interacting with Modal popup on a web application

    Mostly modal dialogboxes will be the first dialogbox/moveableWin in the system. You can declare a general window for modal dialogbox and you can write few more functions to close these dialogboxes on different screens.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

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

    Re: Interacting with Modal popup on a web application

    In addition to palani's comment, you can inherit the class HtmlImage/ HtmlLink and make it as a class for your clickable object identifier. You can override the click method to handle the modal dialog boxes.

  4. #4
    Senior Member
    Join Date
    Dec 2001
    Location
    Boston,MA, USA
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Interacting with Modal popup on a web applicat

    Thanks Guys!

    Palani - the modal box on my application is not the first dialog box. Its only invoked as a "helper" function on the page for a user, what I mean by that is - for e.g. "Forgot Password" link, "Not a member" etc will launch a modal pop up for the user to interact with - mostly enter an email address to get info back. If you are interested/curious, navigate to http://www.ruelala.com and check out the links on the page. This is my AUT.

    Voks - Thanks! good idea, let me give it a shot, will give feedback on how I make out.
    -Shree

    *************************************************
    The more I learn, the more I realize how little I know!

  5. #5
    Senior Member
    Join Date
    Dec 2001
    Location
    Boston,MA, USA
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Interacting with Modal popup on a web applicat

    Not much help - but this is how I worked around it:

    After spending an inordinately long amount of time trying all combinations of inheritence and extending classes/objects I gave up, broke down and went the easy route.

    Invoked the modals as a user would do normally, captured the details using window identifier and pasted into my script directly. Script looks ugly, but works like a champ.

    I hope to spend some more time next week to see if I can kind of take the raw window identification parameters and define a new class with it and de-normalize it.

    Thanks for your help guys.

    Cheers!
    -Shree

    *************************************************
    The more I learn, the more I realize how little I know!

 

 

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 11.54%
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 09:18 AM.

Copyright BetaSoft Inc.