Connecting to Multiple Pop-Up Windows

4 posts, 1 answers
  1. Jessica
    Jessica avatar
    11 posts
    Member since:
    Aug 2017

    Posted 05 Feb Link to this post

    Hello, 

    I was wondering if it was possible to connect to a pop-up window and return connection to the original window without having to close the pop-up window? Essentially, I am clicking a link in my original window and it launches a new tab (chrome). The recorder recognizes this and puts a connect to pop-up step. I do a few actions in that tab; but, instead of closing I want to leave that tab open and go to the original window and do a few actions and then return to that pop-up window that was opened and do a few more actions, then close that pop-up window at the end of the test.

    What I have tried so far was putting a connect to pop-up to the new tab that is launched, and I tried putting a connect to pop-up step with the original partial URL, but it doesn't seem to actually switch control back to the original window.

    Thank you! 

  2. Answer
    Plamen Mitrev
    Admin
    Plamen Mitrev avatar
    195 posts

    Posted 06 Feb Link to this post

    Hello Jessica,

    The scenario that you have - to switch between different tabs in the browser, is not supported out of the box in our product. This is why I created a public feature request on your behalf and our engineering team will investigate it further. Then, we can plan it for figure releases, so please vote and follow the feature request for more details.

    I did some tests on my end and found a solution for you with a coded step. The idea is to remove the new window (the pop-up) from the collection of active browsers, so that Test Studio can change its focus to the previous tab. I also added some keyboard action that visually switch between the tabs in the browser and ensure that desktop click and simulated user actions will work as expected.

    Please explore the sample test against one of our documentation pages and analyze the code and my comments there. I remain available to discuss this further and help you complete this test scenario.

    P.S. As a small token of gratitude for bringing this missing feature to our knowledge, I have updated the Telerik points in your account. Thank you once again.

    Regards,
    Plamen Mitrev
    Progress Telerik

     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Jessica
    Jessica avatar
    11 posts
    Member since:
    Aug 2017

    Posted 06 Feb in reply to Plamen Mitrev Link to this post

    Thank you so much! The example is just what I needed; and, I'm excited to follow on the possible new feature! 
  4. Plamen Mitrev
    Admin
    Plamen Mitrev avatar
    195 posts

    Posted 07 Feb Link to this post

    Hi Jessica,

    I am happy to know that the suggested approach will help you with the automation of that scenario.

    Please don't hesitate to contact us again, if you need any help.

    Regards,
    Plamen Mitrev
    Progress Telerik

     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top