How to validate URL in _blank Browser

6 posts, 0 answers
  1. Mark
    Mark avatar
    3 posts
    Member since:
    Nov 2018

    Posted 09 Jan Link to this post

    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?

  2. Plamen Mitrev
    Admin
    Plamen Mitrev avatar
    110 posts

    Posted 10 Jan Link to this post

    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!
  3. Mark
    Mark avatar
    3 posts
    Member since:
    Nov 2018

    Posted 10 Jan in reply to Plamen Mitrev Link to this post

    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.
  4. Plamen Mitrev
    Admin
    Plamen Mitrev avatar
    110 posts

    Posted 10 Jan Link to this post

    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!
  5. Mark
    Mark avatar
    3 posts
    Member since:
    Nov 2018

    Posted 10 Jan in reply to Plamen Mitrev Link to this post

    I still have issues with my laptop but that has been a problem machine so am not worried about it at this time.
  6. Plamen Mitrev
    Admin
    Plamen Mitrev avatar
    110 posts

    Posted 11 Jan Link to this post

    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!
Back to Top