Friday, 29 April 2016

Cross Browser Testing in Coded UI

Direct Cross Browser testing is not possible using Coded UI, It can be achieved using selenium components.
Please follow the simple 6 steps mentioned below manually then you can start writing cross-browser tests using Coded UI.


1. Download CodedUITestCrossBrowserTest.msi from the link https://visualstudiogallery.msdn.microsoft.com/11cfc881-f8c9-4f96-b303-a2780156628d

then install and verify that Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowserProxy.dll is found in the following location:

"%ProgramFiles%\Common Files\microsoft shared\VSTT\Cross Browser
Selenium Components" (for 32 bit machines)

"%ProgramFiles(x86)%\Common Files\microsoft shared\VSTT\Cross Browser
Selenium Components" (for 64 bit machines)

2. Download chrome driver and selenium dot net bindings zip files from below link https://visualstudiogallery.msdn.microsoft.com/11cfc881-f8c9-4f96-b303-a2780156628d

3. Right click on the downloaded zip files.

4. Select "properties".

5. Under "General" tab, click on the "Unblock" button.

6. Now unzip both the files and copy the contents to the following path (for the selenium-dotnet 2.43.1 binaries, copy the contents of net40 folder):

"%ProgramFiles%\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components" (for 32 bit machines)

"%ProgramFiles(x86)%\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components" (for 64 bit machines)

On continuation,
BrowserWindow.CurrentBrowser = "chrome";
                             Or
BrowserWindow.CurrentBrowser = "firefox"; can be used.


For Free Demo Call me on Mobile/Email - 9597100592/vardhancuit@gmail.com
You can help yourself with more information from my website www.software-testing-zone.info
If you like the post, comment on the same.

No comments:

Post a Comment