/Playwright.SpecFlow.Boilerplate

Boilerplate project to run Playwright tests with SpecFlow and .NET 8 to web applications.

Primary LanguageC#

Playwright SpecFlow Boilerplate

Playwright SpecFlow

Boilerplate project to run Playwright tests with SpecFlow and .NET 8 to web applications.

Prerequisites

Make sure you have installed and be configured the environment variables all the following prerequisites on your development machine:

OS .NET SDK Powershell
Windows winget install --id Microsoft.DotNet.SDK.8 winget install --id Microsoft.PowerShell
macOS brew install --cask dotnet-sdk brew install --cask powershell

Executing the Tests

  • Clone the repository.
git clone git@github.com:burakkaygusuz/Playright.SpecFlow.Boilerplate.git
  • Change the directory.
cd Playwright.SpecFlow.Boilerplate

Build the project.

dotnet build
  • Install the required browsers.
pwsh bin/Debug/net8.0/playwright.ps1 install
  • Run the test.
dotnet test