This is the example project for the Selenium C# xUnit.net tutorial. It shows how to start automating visual tests with Applitools Eyes and Selenium WebDriver in C#.
It uses:
- C# as the programming language
- Selenium WebDriver for browser automation
- Google Chrome as the local browser for testing
- NuGet for dependency management
- xUnit.net as the core test framework
- Applitools Eyes for visual testing
It can also run tests with:
- Applitools Ultrafast Grid for cross-browser execution
- Applitools Execution Cloud for self-healing remote WebDriver sessions
To run this example project, you'll need:
- An Applitools account, which you can register for free.
- A good C# editor, such as Microsoft Visual Studio or Visual Studio Code.
- The .NET 7 SDK (which may come bundled with Visual Studio).
- An up-to-date version of Google Chrome.
- 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# xUnit.net tutorial!