This is a migrated thread and some comments may be shown as answers.

Connecting to Multiple Pop-Up Windows

3 Answers 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jessica
Top achievements
Rank 1
Jessica asked on 05 Feb 2020, 11:27 PM

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! 

3 Answers, 1 is accepted

Sort by
0
Accepted
Plamen Mitrev
Telerik team
answered on 06 Feb 2020, 01:18 PM

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!
0
Jessica
Top achievements
Rank 1
answered on 06 Feb 2020, 07:18 PM
Thank you so much! The example is just what I needed; and, I'm excited to follow on the possible new feature! 
0
Plamen Mitrev
Telerik team
answered on 07 Feb 2020, 09:09 AM

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!
Tags
General Discussions
Asked by
Jessica
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Jessica
Top achievements
Rank 1
Share this question
or