Pages

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

3 comments:

  1. As a scalable HR platform, Clove HRMS offers a versatile Human Resource Management System that grows with your business. The Payroll Management Software integration minimizes manual data entry and errors, while clear reporting supports audits and financial planning. The solution’s configurability helps tailor workflows to match unique organizational policies and processes.

    ReplyDelete
  2. DevstringX Technologies delivers focused software testing services in india designed to ensure software readiness from day one. Their methodologies combine exploratory testing with automation to maximize defect detection while controlling costs. The team’s emphasis on security, usability, and compatibility helps safeguard brand reputation and deliver reliable user experiences.

    ReplyDelete