Selenium xUnit Tutorial: Setup Selenium WebDriver For xUnit Framework In C#

1 Year Subscription

In the on-going ‘Selenium xUnit testing tutorial’ series, we earlier had a look at setting up the xUnit framework in Visual Studio. It was a getting started guide with a major focus on the installation of the xUnit framework for the project. Before setting up Selenium WebDriver for xUnit, we recommend that you check out the installation guide on xUnit Testing Tutorial: Environment Setup For Selenium Testing, in case you are starting up with the Selenium xUnit framework.

In this Selenium xUnit tutorial, we take a quick look at how to install Selenium WebDriver in Visual Studio for performing automation testing with C#.

Creating a New C# Project in Visual Studio

Before installing Selenium WebDriver, we create a new project in C# by following the below-mentioned steps:

  1. Open Visual Studio and create a new project of the type ‘xUnit Test Project (.Net Core)’.
  2. xUnit Test Project

  3. As the project uses the (or xUnit) framework, the C# file contains the [Fact] attribute….


Continue reading on source link

Leave a Comment

Your email address will not be published. Required fields are marked *

55 − = 49