Sample nunit, Galio code for running selenium with BrowserStack Automate
Switch branches/tags
Nothing to show
Clone or download
tr4n2uil Merge pull request #6 from browserstack/csharp_session_id
Added sample test to console-log sessionID
Latest commit 15c7519 May 23, 2016


Documentation for writing Automate test scripts in C#

Install selenium driver for .net

Setup your IDE to write selenium tests

Visual Studio:

  • In order to write selenium test in visual studio, create a new "Console Application" in visual studio. File→New Project→Visual c#→Console Application.
  • Then the selenium libraries are needed to be imported through "Solution Explorer" pane. Right click on References, browse through C:\selenium-dotnet\selenium-dotnet-2.33.0\net40 and import the libraries.

For C# frameworks integration with BrowserStack, refer to their individual repositories -