- Visual Studio installed on your machine. Workload ".NET desktop development" should be installed in Visual Studio too (if no - add it with Visual Studio Installer)
- Chrome Webdriver is on your machine and is in the PATH. Here are some resources from the internet that'll help you.
- Git clone this repo
git clone https://github.com/applitools/tutorial-selenium-csharp-basic.git
- Open the folder
tutorial-selenium-csharp-basic
- Get your API key to set it in code (or in the APPLITOOLS_API_KEY environment variable).
- You can get your API key by logging into Applitools > Person Icon > My API Key.
- Double click the
ApplitoolsTutorial.sln
. This will open the project in Visual Studio. - Change the
APPLITOOLS_API_KEY
with your own in code. Set your ApiKey in string 'config.SetApiKey("...")' (or comment the string and set APPLITOOLS_API_KEY environment variable) - Build the project. It can take several minutes.
- Navigate to Test Explorer (Test > Test Explorer), select test BasicTest and hit Run
- If needed, in case of some problems - update package Eyes.Selenium by NuGet Package Manager - Tools > NuGet Package Manager > Manage Nuget Packages for Solution, tab Updates. Select package for update (Eyes.Selenium), select needed version in right panel and tap Install