

Pay attention to the constructor of 'ChromeDriver' on line 16. Note: The test is likely to break when the dotnet site changes. Here's a more advanced sample, but feel free to strip it to the minimum: using Microsoft. Keep it simple for now, you can write a more advanced test after getting a simple test working. Using your editor of choice, write a UI test. Once the package has been added, you'll be able to use the Selenium API in your C# project but you'll need to make the ChromeDriver available before it'll start working. dotnet add package Selenium.WebDriver -version 3. Use the following dotnet cli command to add the dependency. To start integrating Selenium into your test project, you'll need to add the Selenium.WebDriver Nuget package. Navigate to your test project and run the following command to test out the dummy test: cd Demo.SeleniumTests

Using the above commands, the skeleton of your test project is ready. NET Core test project # mkdir Selenium_DotNet

Selenium is agnostic of operating system, programming language, and browser. Selenium is a browser automation tool mainly used for UI testing and automating tasks.
