Ossa.TestFramework.UIIntegration.Playwright
1.3.0
See the version list below for details.
dotnet add package Ossa.TestFramework.UIIntegration.Playwright --version 1.3.0
NuGet\Install-Package Ossa.TestFramework.UIIntegration.Playwright -Version 1.3.0
<PackageReference Include="Ossa.TestFramework.UIIntegration.Playwright" Version="1.3.0" />
<PackageVersion Include="Ossa.TestFramework.UIIntegration.Playwright" Version="1.3.0" />
<PackageReference Include="Ossa.TestFramework.UIIntegration.Playwright" />
paket add Ossa.TestFramework.UIIntegration.Playwright --version 1.3.0
#r "nuget: Ossa.TestFramework.UIIntegration.Playwright, 1.3.0"
#addin nuget:?package=Ossa.TestFramework.UIIntegration.Playwright&version=1.3.0
#tool nuget:?package=Ossa.TestFramework.UIIntegration.Playwright&version=1.3.0
Ossa.TestFramework.UIIntegration.Playwright
Overview
This package based on Playwright and C# provides a set of methods and test project configuration to speed up UI/Integration tests. Along with configuration assistance to support the Ossa.TestFrameWorkTemplates 'ossa-test-playwright' template, the test methods are designed to be consitent across both Ossa.TestFramework.UIIntegration.Selenium and Ossa.TestFramework.UIIntegration.Playwright packages.
The package provides functionality for organising actions in Steps, and provides a simple interface for performing common UI test actions and selection methods.
Advantages are:
- reduced reliance on complex selectors
- Tested helper methods for dropdowns, iframes, slider/range inputs, and more
- Automatic snapshots after each user step and snapshot on error/test failure
Getting Started
Install the package to your integration project using nuget manager or from the dotnet command line:
dotnet new add Ossa.TestFramework.UIIntegration.Playwright
or install the startertemplate
Starter integration project
See nuget package Ossa.TestFramework.Templates for a starter project and install the ossa-test-playwright template.
Prerequisites
- Recommended Visual studio 2022 or later
- .NET 8.0 or later
Usage
Ossa.TestFramework.Templates for a starter project example or see the devops WIKI. Main components are PlaywrightBrowserSession (implementing IBrowserSession) and PlaywrightByLocator (implemeting IByLocator). Which can be used to implement a PageObject pattern for your tests
Want to implement some additional playwright code? Simply use the PlaywrightBylocator.Selector to obtain a Playwright 'locator' object you can work with
Additional documentation
- Ossa Templates: https://www.nuget.org/packages/Ossa.TestFramework.Templates/
- Playwright: https://playwright.dev/dotnet/docs/intro
Codegen
You can run the Playwright codegen tool from the build directory. This tool can be used to identify elements, create locators in order to build a page object model.
powershell bin/Debug/net6.0/playwright.ps1 codegen' or 'powershell bin/Debug/net7.0/playwright.ps1 codegen
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Playwright (>= 1.43.0)
- Ossa.TestFramework.Core (>= 1.3.0)
-
net7.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Playwright (>= 1.43.0)
- Ossa.TestFramework.Core (>= 1.3.0)
-
net8.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Playwright (>= 1.43.0)
- Ossa.TestFramework.Core (>= 1.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.4.0 | 249 | 6/13/2025 | |
1.3.1 | 274 | 6/11/2025 | |
1.3.1-beta0001 | 270 | 6/11/2025 | |
1.3.0 | 254 | 6/10/2025 | |
1.2.0 | 109 | 5/30/2025 | |
1.1.0 | 133 | 5/26/2025 | |
1.1.0-alpha0720 | 97 | 6/7/2024 | |
1.0.1 | 176 | 6/7/2024 | |
1.0.0-beta0001 | 97 | 6/7/2024 | |
0.4.0 | 112 | 6/7/2024 | |
0.4.0-alpha0054 | 94 | 6/7/2024 | |
0.4.0-alpha0049 | 108 | 6/7/2024 | |
0.4.0-alpha0048 | 94 | 6/7/2024 | |
0.4.0-alpha0041 | 93 | 6/7/2024 | |
0.4.0-alpha0039 | 94 | 6/6/2024 | |
0.4.0-alpha0038 | 94 | 6/6/2024 | |
0.4.0-alpha0037 | 99 | 6/6/2024 | |
0.4.0-alpha0025 | 95 | 6/6/2024 | |
0.4.0-alpha0017 | 100 | 6/6/2024 | |
0.4.0-alpha0016 | 82 | 6/6/2024 | |
0.4.0-alpha0014 | 88 | 6/5/2024 | |
0.4.0-alpha0012 | 83 | 6/5/2024 | |
0.4.0-alpha0010 | 80 | 6/5/2024 | |
0.4.0-alpha0007 | 94 | 6/5/2024 | |
0.4.0-alpha0006 | 107 | 6/5/2024 | |
0.4.0-alpha0004 | 100 | 6/5/2024 | |
0.4.0-alpha0003 | 92 | 6/5/2024 | |
0.4.0-alpha0002 | 78 | 6/5/2024 | |
0.4.0-alpha0001 | 97 | 6/5/2024 | |
0.2.0-fastertests-ah0001 | 150 | 6/3/2024 | |
0.2.0-alpha0705 | 113 | 6/4/2024 | |
0.2.0-alpha0701 | 103 | 6/3/2024 | |
0.2.0-alpha0696 | 100 | 6/3/2024 | |
0.2.0-alpha0692 | 114 | 6/3/2024 | |
0.2.0-alpha0690 | 95 | 6/3/2024 | |
0.2.0-alpha0688 | 108 | 6/3/2024 | |
0.2.0-alpha0670 | 107 | 6/3/2024 | |
0.2.0-alpha0668 | 91 | 6/2/2024 | |
0.2.0-alpha0662 | 108 | 5/30/2024 | |
0.2.0-alpha0651 | 108 | 5/29/2024 | |
0.2.0-alpha0650 | 103 | 5/29/2024 | |
0.2.0-alpha0641 | 106 | 5/29/2024 | |
0.2.0-alpha0639 | 105 | 5/29/2024 | |
0.2.0-alpha0634 | 106 | 5/28/2024 | |
0.2.0-alpha0622 | 104 | 5/28/2024 | |
0.2.0-alpha0617 | 149 | 5/24/2024 | |
0.2.0-alpha0608 | 117 | 5/23/2024 | |
0.2.0-alpha0602 | 118 | 5/23/2024 | |
0.2.0-alpha0598 | 119 | 5/23/2024 | |
0.2.0-alpha0596 | 114 | 5/22/2024 | |
0.2.0-alpha0593 | 110 | 5/22/2024 | |
0.2.0-alpha0583 | 109 | 5/22/2024 | |
0.2.0-alpha0581 | 118 | 5/22/2024 | |
0.2.0-alpha0576 | 110 | 5/21/2024 | |
0.2.0-alpha0575 | 115 | 5/21/2024 | |
0.2.0-alpha0563 | 110 | 5/21/2024 | |
0.2.0-alpha0561 | 120 | 5/21/2024 | |
0.2.0-alpha0548 | 112 | 5/20/2024 | |
0.2.0-alpha0547 | 100 | 5/20/2024 | |
0.2.0-alpha0539 | 107 | 5/17/2024 | |
0.2.0-alpha0501 | 140 | 5/10/2024 | |
0.2.0-alpha0433 | 96 | 5/2/2024 | |
0.2.0-alpha0408 | 117 | 4/28/2024 | |
0.2.0-alpha0401 | 159 | 4/22/2024 | |
0.2.0-alpha0399 | 113 | 4/19/2024 | |
0.2.0-alpha0398 | 112 | 4/18/2024 | |
0.2.0-alpha0396 | 111 | 4/18/2024 | |
0.2.0-alpha0395 | 110 | 4/18/2024 | |
0.2.0-alpha0352 | 110 | 4/18/2024 | |
0.2.0-alpha0350 | 112 | 4/18/2024 | |
0.2.0-alpha0349 | 122 | 4/17/2024 | |
0.2.0-alpha0347 | 120 | 4/16/2024 | |
0.2.0-alpha0346 | 128 | 4/12/2024 | |
0.2.0-alpha0345 | 163 | 4/12/2024 | |
0.2.0-alpha0339 | 118 | 4/12/2024 | |
0.2.0-alpha0337 | 109 | 4/11/2024 | |
0.2.0-alpha0335 | 121 | 4/11/2024 | |
0.2.0-alpha0333 | 110 | 4/10/2024 | |
0.2.0-alpha0309 | 118 | 4/10/2024 | |
0.2.0-alpha0307 | 130 | 4/4/2024 | |
0.2.0-alpha0305 | 127 | 4/3/2024 | |
0.2.0-alpha0303 | 117 | 4/2/2024 | |
0.2.0-alpha0294 | 118 | 4/1/2024 | |
0.2.0-alpha0293 | 122 | 3/28/2024 | |
0.2.0-alpha0292 | 117 | 3/28/2024 | |
0.2.0-alpha0291 | 118 | 3/27/2024 | |
0.2.0-alpha0290 | 135 | 3/27/2024 | |
0.2.0-alpha0283 | 138 | 3/26/2024 | |
0.2.0-alpha0273 | 130 | 3/24/2024 | |
0.2.0-alpha0271 | 117 | 3/24/2024 | |
0.2.0-alpha0264 | 114 | 3/24/2024 | |
0.2.0-alpha0260 | 116 | 3/24/2024 | |
0.2.0-alpha0258 | 127 | 3/24/2024 | |
0.2.0-alpha0234 | 125 | 3/21/2024 | |
0.2.0-alpha0218 | 130 | 3/20/2024 | |
0.2.0-alpha0217 | 127 | 3/19/2024 | |
0.2.0-alpha0212 | 123 | 3/19/2024 | |
0.2.0-alpha0204 | 131 | 3/18/2024 | |
0.2.0-alpha0202 | 134 | 3/18/2024 |