Need to validate new tab URL

2 posts, 0 answers
  1. Jon
    Jon avatar
    2 posts
    Member since:
    Jun 2012

    Posted 21 Jun 2013 Link to this post

    Our company has two completely different front end powered applications. We have one of the applications (powered by Silverlight) launching a new IE10, or Firefox, tab with the other application (powered by HTML5 / Javascript) loading information passed to it by the first app. I would like a way to have Test Sudio verify that the new tab was opened, and that the new tab has the correct url. Is there way to do this?
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 25 Jun 2013 Link to this post

    Hi Jon,

    Yes that is doable, as long as the second browser window being opened is the same browser type as the first window i.e. if you start in IE then IE is the second window, if you start in Firefox then Firefox is the second window. One word of caution, Test Studio does not support tabbed browsing in IE. Please make sure that tabbed browsing is disabled in IE as documented here: Pop-ups Open in a New Window. Also we don't support the case where a different browser type will be launched by the application i.e. IE -> Firefox.

    Assuming your case is fully supported by Test Studio per what I described above then you should have no problems creating your test like this:

    1. Manually launch IE with your recorder attached
    2. Manually navigate to the starting page
    3. Perform whatever steps are necessary to make the second window popup. These steps should be recorded automatically by Test Studio
    4. When the second browser window opens Test Studio should record a "Connect to popup" test step as the next step
    5. Next you can manually add a Wait For Url test step.

    This should give you what you're looking for. Let me know if I can be of further assistance, of if I misunderstood your test automation needs.

    Regards,
    Cody
    Telerik
    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
Back to Top