Run your Coded UI tests against Chrome using the Selenium cross-browser plugin

Run your Coded UI tests against Chrome using the Selenium cross-browser plugin

Rate This
  • Comments 4

Had somebody recently asking about running Coded UI Tests against Chrome and thought i would walk through this process:

1. Down load the Cross-browser plugin for Coded UI Test that uses Selenium to run tests against Chrome and Firefox from here: http://go.microsoft.com/fwlink/?LinkID=267598

image

3. Record a Coded UI test in IE

image

 

 

image

4. Change the browser to run the same test against Chrome using the BrowserWindow object i.e.

BrowserWindow.CurrentBrowser = "Chrome";

image

Viola your coded UI Test can now run in Chrome!

For more information please see the following blog posts:

Leave a Comment
  • Please add 4 and 6 and type the answer here:
  • Post
  • What benefit does this give you over simply using Selenium?

  • @Ta.speot.is  Turns out in this workflow nothing.   We have amended the steps above

    Thanks for reading the blog

  • Unfortunately this requires VS Premium or higher, leaving out the vast majority of Visual Studio developers. Is there a reason that his isn't available for Professional or higher like almost all other extensions?

  • @Charles Thanks for the response. But I meant more generally, like why bother with Coded UI tests when you could just use Selenium inside MSTest?

    www.nuget.org/.../selenium.webdriver

Page 1 of 1 (4 items)