Introducing Cross Browser Testing with Coded UI Tests

Shubhra Maji MSFT

Coded UI Tests help automate browser based applications built on Internet Explorer. We are now enabling cross-browser testing of such applications. Users will be able to perform functional testing of web applications across IE/Firefox/Chrome.  One can use IE to record tests and validate control properties using Coded UI Test Builder. Users also have an option to hand code cross browser tests. If user needs to playback on IE, she can click on Run All in Test Explorer which plays back the recording using Coded UI inbuilt IE Plugin. On the other hand, if the user needs to playback on non-IE browser, she can set BrowserWindow.CurrentBrowser as “firefox” or “chrome” in the test depending on which browser she wants to test before running from the test explorer.  In this case, Coded UI Engine communicates with Selenium Web Driver to execute the playback. 

Hope you like this feature. Feel free to drop your feedback here

System Requirements:

  1. Operating System: Windows 8 X86 Client/Windows 8 X64/Win7 X64/Win7 X86/Win2k8 R2 SP1
  2. IE version – IE9/ classic IE10 
  3. Firefox version – 15+
  4. Chrome version – 21+
  5. Visual Studio Ultimate/Premium – VS 2012 RTM  + VS 2012 Update 1
  6. Selenium NET Bindings and the Selenium ChromeDriver made available to you through an installer on Visual Studio Gallery. Refer to the file attachment “CUIT Cross Browser Testing Acquisition” for more details


The following features are available across the various web browsers:

  • Recording support for actions and validation on supported IE browsers
  • Hand-coding scenarios support for such things as control properties, search, and playback waiters.
  • Support for popups and dialog
  • Ability to execute basic JavaScript with no return type
  • Search resilience (via smart match) and performance improvements

Scenario Videos: 

Record on IE and Playback everywhere

Author cross browser tests with Coded UI Test Builder

Author cross browser tests using plain hand coding without UI Map

Run cross browser tests sequentially on multiple browsers

Troubleshoot cross browser test failures

Known Limitations

  1. No support for Safari browser
  2. Browser launch needs to be part of the UITest. In case you have a browser already open and you want to run steps on the opened browser, playback will fail for non-IE browser windows. Hence, it is advisable to have launch too as part of the test case.
  3. Automating browser based actions such as Maximize/minimize/restore is not supported

Troubleshooting tips

 Enable HTML Logger – follow

Feedback Survey:

Please fill in the survey to register your feedback on this feature: Your feedback will help us plan for further enhancement to the cross browser feature.

CUIT Cross Browser Testing Acquisition.pdf


Discussion is closed.

Feedback usabilla icon