Home United States dc3 United States software in english pdf Setting Up Selenium WebDriver for MSTest Framework in C#

Setting Up Selenium WebDriver for MSTest Framework in C#

393
0
SHARE

This MSTest testing tutorial covers different ways of installing Selenium WebDriver for the MSTest framework in C#.
Join the DZone community and get the full member experience. In the ongoing « Selenium MSTest testing tutorial » series, we had an earlier look at setting up the MSTest framework in Visual Studio. It was a getting started guide with a major focus on the installation of the Selenium MSTest framework and MSTest adapter for the project. In this Selenium MSTest testing tutorial, we take a look at setting up Selenium WebDriver with Visual Studio in C#. Before we install the Selenium WebDriver, we create a new project in C#. Before installing Selenium WebDriver, we create a new project in C# by following the below-mentioned steps: Before running your first script in MSTest, you need to download and set up Selenium WebDriver. Selenium WebDriver on Visual Studio can be installed using NuGet, a free and open-source package manager that is specifically designed for the Microsoft Platform. There are two options for installing Selenium WebDriver – using the Visual Studio IDE and using the NuGet Package Manager (PM) Commands. For installing Selenium WebDriver using the VS IDE, please perform the following steps: If you are more comfortable with the command-line terminal, Selenium WebDriver can also be installed by executing the relevant commands on the Package Manager (PM) console. Shown below is the snapshot of the Package Manager Console: To verify whether the necessary packages are installed, execute the Get-Package command on the PM console. With this Selenium MSTest setup example, we had a look at setting up Selenium WebDriver for automated testing with MSTest and C#. The steps mentioned in this Selenium C# tutorial are essential to get started with automation testing with Selenium and C#. With the completion of the Selenium MSTest framework & Selenium installation, you are all set to perform cross-browser testing or automated browser testing with MSTest, Selenium, and C#. Published at DZone with permission of Himanshu Sheth. See the original article here. Opinions expressed by DZone contributors are their own.