Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

How to use Selenium .NET Client Driver

To automate web tests with Selenium .Net , you need to follow the steps below:

  •  Extract the folder
  • Download and install NUnit ( Note: You can use NUnit as your test engine. Or you can also write a simple main() function to run your tests; however NUnit is very useful as a test engine.)
  •     Open your desired .Net IDE (Visual Studio)
  •     Create a class library (.dll)
  •     Add references to the following DLLs: nmock.dll, nunit.core.dll, nunit. framework.dll, ThoughtWorks.Selenium.Core.dll, ThoughtWorks.Selenium.IntegrationTests.dll and ThoughtWorks.Selenium.UnitTests.dll

 

  •     Write your Selenium test in a .Net language (C#), or export a script from Selenium-IDE to a C# file and copy this code into the class file you just created.
  •     Write your own simple main() program or you can include NUnit in your project for running your test.
  •     Run Selenium server from console
  •     Run your test either from the IDE, from the NUnit GUI or from the command line.