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

Need to validate new tab URL

1 Answer 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 21 Jun 2013, 02:01 PM
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?

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 25 Jun 2013, 05:22 PM
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!
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or