Before starting this topic I would like to clear in beginning that Visual Studio 2013 uses Selenium WebDriver component to achieve cross browser testing as of now.

So to integrate WebDriver component with Visual Studio follow below given steps-

Start the Visual Studio and go to Tools menu and click on Extensions and Updates…

CUIT

System will open Extensions and Updates window. Make sure you are in Online section. Search the ‘Selenium Component’ and download the same.

CUIT1

It will download the .msi file.

CUIT2

Install it on running machine.

CBT

Once you installed it, it keeps all the dll and files in below location-

C:\Program Files (x86)\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components

CUIT3

Now restart the system and write below method-

CUIT4

CurrentBrowser property is a place where you define your browser type. Now run it and see the magic.

Advertisements

2 thoughts on “Cross Browser Testing using CodedUI Test

  1. Hey I’m using this to run cross browser tests, and I’m having issues when setting chrome or firefox as CurrentBrowser. The browser launches correctly, but then it crashes or closes automatically at certain points.
    If I debug the test and run it step by step, I get to a point where it asks for RemoteWebDriver.cs or DriverService.cs
    Any ideas?

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s