Workshop Tickets for SeleniumConf Berlin are on sale NOW (while supplies last)! For details GO HERE x
Workshop Tickets for SeleniumConf Berlin are on sale NOW (while supplies last)! For details GO HERE x

Donate to Selenium

with PayPal
through sponsorship

You can sponsor the Selenium project if you'd like some public recognition of your generous contribution.

Selenium Sponsors

See who supports the Selenium project.

Sauce Labs Experitest New Relic Synthetics

Programming Language Preference

.NET client driver configurationΒΆ

Note: the instructions below are outdated. NuGet is now the preferred method of integrating the Selenium WebDriver into .NET clients. Simply create a new Unit Test project and add the Selenium WebDriver NuGet package: https://www.nuget.org/packages/Selenium.WebDriver.

.NET client Driver can be used with Microsoft Visual Studio. To Configure it with Visual Studio do as Following.

  • Launch Visual Studio and navigate to File > New > Project.

    _images/chapt5_img01_Launch_VisualStudio.png
  • Select Visual C# > Class Library > Name your project > Click on OK button.

    _images/chapt5_img02_CreateProject.png
  • A Class (.cs) is created. Rename it as appropriate.

    _images/chapt5_img03_TestClassFile.png
  • Under right hand pane of Solution Explorer right click on References > Add References.

    _images/chapt5_img04_AddReference.png
  • Select following dll files - nmock.dll, nunit.core.dll, nunit.framework.dll,ThoughtWorks. Selenium.Core.dll, ThoughtWorks.Selenium.IntegrationTests.dll, ThoughtWorks.Selenium.UnitTests.dll and click on Ok button

    _images/chapt5_img05_AddDlls.png

With This Visual Studio is ready for Selenium Test Cases.