Skip to content

applitools/example-selenium-csharp-nunit

Repository files navigation

Applitools Example: Selenium in C# with NUnit

This is the example project for the Selenium C# NUnit tutorial. It shows how to start automating visual tests with Applitools Eyes and using Selenium WebDriver in C#.

It uses:

It can also run tests with:

To run this example project, you'll need:

  1. An Applitools account, which you can register for free.
  2. A good C# editor, such as Microsoft Visual Studio or Visual Studio Code.
  3. The .NET 7 SDK (which may come bundled with Visual Studio).
  4. An up-to-date version of Google Chrome.
  5. A corresponding version of ChromeDriver.

The main test case is AcmeBankTest.cs. By default, the project will run tests with Ultrafast Grid but not Execution Cloud. You can change these settings in the test class.

To execute tests, set the APPLITOOLS_API_KEY environment variable to your account's API key.

You can run the tests through Test Explorer in Visual Studio, or you can run tests from the command line using the following dotnet commands:

dotnet build
dotnet test

For full instructions on running this project, take our Selenium C# NUnit tutorial!