Tutorials and sample web automation framework using Selenium WebDriver and C#
- Make sure you have .NET 8 SDK or newer installed on your machine (projects were developed using .NET 8). Check installation
dotnet --version
- Clone this repository to your local machine.
- Open the solution (
SeleniumWebDriverProject.sln
) in Visual Studio or folder (selenium-webdriver-c-sharp
) in VS Code or your preferred IDE. - Build solution from IDE or from terminal navigate under solution folder or a project you want to build and run
dotnet build
(implicit restore).dotnet build
- Make sure you have the appropriate browser installed (
https://www.selenium.dev/documentation/webdriver/browsers/
) - Open the solution directory in VS Code or your preferred IDE.
- Using terminal navigate to a project (cd command) and run
dotnet build
- Run the tests using your preferred test runner or IDE. From terminal, in your project folder, change "net_version" and "project_name" e.g.
dotnet test .\bin\Debug\net_version\project_name.dll
- Optional: check reports (depending on the project you run, the reports may by integrated with ExtentReports or Allure)
- .NET 8
- C#
- Selenium WebDriver
- NUnit
- .NET.Test.SDK
- Extent Reports
- Allure
- Autofac
- Page Object Model
- Singleton (Extent reports)
- Dependency Injection (Autofac)
- First Selenium test
- Introduction to browser drivers
- Locators, relative locators
- Find element(s) on the web page
- Web elements interactions
- Wait conditions
- First Selenium framework
- Extent reports
- Allure reports
- Singleton
- Parallel run
- Dependency Injection
Please check my YouTube channel for step by step implementation or detailed tutorials on automation and more: https://www.youtube.com/@TechWithAlexDuta
This project is licensed under the MIT License - see the LICENSE file for details.