One of the test I'm trying to write is to verify the URL of a NEW browser window.
On a page of our site I'm testing a link to a new page gets clicked and its target is _blank, which causes a new window to pop. I need to validate that the URL is correct. Any suggestions?
5 Answers, 1 is accepted
0
Hello Mark,
I can suggest the following approaches to validate the URL of a page with _blank target attribute:
Let me know if I can help you further or you need additional information.
Regards,
Plamen Mitrev
Progress Telerik
I can suggest the following approaches to validate the URL of a page with _blank target attribute:
- Using Advanced test verification to locate the element and verify target and href attributes.
- Using Test Studio tracking of pop-up windows and Wait For Url manual step. Similar topic was discussed and you can follow these steps. I have tested them on the latest Test Studio release and can confirm that they are working as expected on my side.
- Using coded steps is an option if the above are not applicable to your case. However, keep in mind that the example does not check if the target attribute is set to _blank and if the URL is opened in new window.
Let me know if I can help you further or you need additional information.
Regards,
Plamen Mitrev
Progress Telerik
0
Mark
Top achievements
Rank 1
answered on 10 Jan 2019, 03:01 PM
This works today after getting a new machine setup. On my laptop it would not connect to the 2nd Window. Today it works as you describe perfectly. Thanks for the help.
0
Hi Mark,
Thank you for your feedback.
From your reply I assume that the test is working on all machines you are using and no further assistance from our side is necessary. Nevertheless, if you still have a failure on a specific machine or with a specific browser after my recommendations, please share this so I can investigate further.
Regards,
Plamen Mitrev
Progress Telerik
Thank you for your feedback.
From your reply I assume that the test is working on all machines you are using and no further assistance from our side is necessary. Nevertheless, if you still have a failure on a specific machine or with a specific browser after my recommendations, please share this so I can investigate further.
Regards,
Plamen Mitrev
Progress Telerik
0
Mark
Top achievements
Rank 1
answered on 10 Jan 2019, 04:20 PM
I still have issues with my laptop but that has been a problem machine so am not worried about it at this time.
0
Hi Mark,
I am glad to hear that the issue is resolved then. Please do not hesitate to contact us again if further assistance is required. I will be happy to help again.
Regards,
Plamen Mitrev
Progress Telerik
I am glad to hear that the issue is resolved then. Please do not hesitate to contact us again if further assistance is required. I will be happy to help again.
Regards,
Plamen Mitrev
Progress Telerik