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

How to validate URL in _blank Browser

5 Answers 226 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 09 Jan 2019, 03:35 PM

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

Sort by
0
Plamen Mitrev
Telerik team
answered on 10 Jan 2019, 02:32 PM
Hello Mark,

I can suggest the following approaches to validate the URL of a page with _blank target attribute:
  • 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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
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
Plamen Mitrev
Telerik team
answered on 10 Jan 2019, 04:13 PM
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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
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
Plamen Mitrev
Telerik team
answered on 11 Jan 2019, 12:56 PM
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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Mark
Top achievements
Rank 1
Share this question
or