mhnaeem / DotNetSeleniumTemplate

A simple template that can be adapted quickly to write Selenium tests in .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DotNetSeleniumTemplate

A simple opinionated project template written in C# using .NET to quickly start writing tests using Selenium.

Features

  1. Zero setup, mostly plug and play
  2. Cross platform support for both Mac OS and Windows
  3. Written with Selenium 4 and .NET 7
  4. Uses Selenium Manager to automatically manage web drivers
  5. Integrates ExtentReports for custom reporting
  6. Utilises NUnit to run tests and integrate with Visual Studio
  7. Provides helper classes and utilities to make writing tests super simple

Steps for Setup

  1. Download Visual Studio - any version >10.x should work
  2. Fork and then Clone this repo to your computer
  3. Open the DotNetSeleniumTemplate.sln solution file in Visual Studio
  4. AND that's it!

Steps to Run Tests

  1. Open the DotNetSeleniumTemplate.sln solution file in Visual Studio
  2. Open the Test Explorer in Visual Studio
  3. Double click the test name you want to run - more info

Extra Info

Currently only the envsettings.json is copied to the output directory, so modify it to change settings

About

A simple template that can be adapted quickly to write Selenium tests in .NET


Languages

Language:C# 100.0%