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
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.
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.
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.