- Install new NUnit project:
dotnet new nunit -n PlaywrightTestsWithDotNet
- Navigate to project folder:
cd PlaywrightTestsWithDotNet
- Install Microsoft.Playwright.NUnit:
dotnet add package Microsoft.Playwright.NUnit
- Build project to assure every thing is OK:
dotnet build
- Install PowerShell
- Install Playwright browsers (verify which .net version is installed, ex: net8.0):
pwsh bin/Debug/net8.0/playwright.ps1 install
- Create a
project.runSettings
file on the root folder - Install codegen from Playwright:
npx playwright codegen
- In order to execute tests using the RunSettings:
dotnet test --settings:project.runsettings
-
Notifications
You must be signed in to change notification settings - Fork 0
Web Automation using Playwright and C#
kenzoviski/PlaywrightTestsWithDotNet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Web Automation using Playwright and C#
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published