Ossa.TestFramework.UIIntegration.Playwright 1.6.1

dotnet add package Ossa.TestFramework.UIIntegration.Playwright --version 1.6.1
                    
NuGet\Install-Package Ossa.TestFramework.UIIntegration.Playwright -Version 1.6.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ossa.TestFramework.UIIntegration.Playwright" Version="1.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ossa.TestFramework.UIIntegration.Playwright" Version="1.6.1" />
                    
Directory.Packages.props
<PackageReference Include="Ossa.TestFramework.UIIntegration.Playwright" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ossa.TestFramework.UIIntegration.Playwright --version 1.6.1
                    
#r "nuget: Ossa.TestFramework.UIIntegration.Playwright, 1.6.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ossa.TestFramework.UIIntegration.Playwright@1.6.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ossa.TestFramework.UIIntegration.Playwright&version=1.6.1
                    
Install as a Cake Addin
#tool nuget:?package=Ossa.TestFramework.UIIntegration.Playwright&version=1.6.1
                    
Install as a Cake Tool

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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.6.1 167 7/14/2025
1.5.0 168 7/1/2025
1.4.0 304 6/13/2025
1.3.1 319 6/11/2025
1.3.1-beta0001 319 6/11/2025
1.3.0 291 6/10/2025
1.2.0 140 5/30/2025
1.1.0 178 5/26/2025
1.1.0-alpha0720 136 6/7/2024
1.0.1 208 6/7/2024
1.0.0-beta0001 133 6/7/2024
0.4.0 154 6/7/2024
0.4.0-alpha0054 118 6/7/2024
0.4.0-alpha0049 146 6/7/2024
0.4.0-alpha0048 130 6/7/2024
0.4.0-alpha0041 132 6/7/2024
0.4.0-alpha0039 131 6/6/2024
0.4.0-alpha0038 129 6/6/2024
0.4.0-alpha0037 136 6/6/2024
0.4.0-alpha0025 128 6/6/2024
0.4.0-alpha0017 124 6/6/2024
0.4.0-alpha0016 121 6/6/2024
0.4.0-alpha0014 112 6/5/2024
0.4.0-alpha0012 113 6/5/2024
0.4.0-alpha0010 116 6/5/2024
0.4.0-alpha0007 132 6/5/2024
0.4.0-alpha0006 147 6/5/2024
0.4.0-alpha0004 135 6/5/2024
0.4.0-alpha0003 131 6/5/2024
0.4.0-alpha0002 119 6/5/2024
0.4.0-alpha0001 133 6/5/2024
0.2.0-fastertests-ah0001 190 6/3/2024 0.2.0-fastertests-ah0001 is deprecated.
0.2.0-alpha0705 158 6/4/2024 0.2.0-alpha0705 is deprecated.
0.2.0-alpha0701 149 6/3/2024 0.2.0-alpha0701 is deprecated.
0.2.0-alpha0696 142 6/3/2024 0.2.0-alpha0696 is deprecated.
0.2.0-alpha0692 148 6/3/2024 0.2.0-alpha0692 is deprecated.
0.2.0-alpha0690 128 6/3/2024 0.2.0-alpha0690 is deprecated.
0.2.0-alpha0688 145 6/3/2024 0.2.0-alpha0688 is deprecated.
0.2.0-alpha0670 154 6/3/2024 0.2.0-alpha0670 is deprecated.
0.2.0-alpha0668 139 6/2/2024 0.2.0-alpha0668 is deprecated.
0.2.0-alpha0662 151 5/30/2024 0.2.0-alpha0662 is deprecated.
0.2.0-alpha0651 156 5/29/2024 0.2.0-alpha0651 is deprecated.
0.2.0-alpha0650 151 5/29/2024 0.2.0-alpha0650 is deprecated.
0.2.0-alpha0641 154 5/29/2024 0.2.0-alpha0641 is deprecated.
0.2.0-alpha0639 149 5/29/2024 0.2.0-alpha0639 is deprecated.
0.2.0-alpha0634 154 5/28/2024 0.2.0-alpha0634 is deprecated.
0.2.0-alpha0622 148 5/28/2024 0.2.0-alpha0622 is deprecated.
0.2.0-alpha0617 189 5/24/2024 0.2.0-alpha0617 is deprecated.
0.2.0-alpha0608 158 5/23/2024 0.2.0-alpha0608 is deprecated.
0.2.0-alpha0602 166 5/23/2024 0.2.0-alpha0602 is deprecated.
0.2.0-alpha0598 155 5/23/2024 0.2.0-alpha0598 is deprecated.
0.2.0-alpha0596 159 5/22/2024 0.2.0-alpha0596 is deprecated.
0.2.0-alpha0593 154 5/22/2024 0.2.0-alpha0593 is deprecated.
0.2.0-alpha0583 158 5/22/2024 0.2.0-alpha0583 is deprecated.
0.2.0-alpha0581 163 5/22/2024 0.2.0-alpha0581 is deprecated.
0.2.0-alpha0576 155 5/21/2024 0.2.0-alpha0576 is deprecated.
0.2.0-alpha0575 153 5/21/2024 0.2.0-alpha0575 is deprecated.
0.2.0-alpha0563 155 5/21/2024 0.2.0-alpha0563 is deprecated.
0.2.0-alpha0561 164 5/21/2024 0.2.0-alpha0561 is deprecated.
0.2.0-alpha0548 159 5/20/2024 0.2.0-alpha0548 is deprecated.
0.2.0-alpha0547 148 5/20/2024 0.2.0-alpha0547 is deprecated.
0.2.0-alpha0539 155 5/17/2024 0.2.0-alpha0539 is deprecated.
0.2.0-alpha0501 184 5/10/2024 0.2.0-alpha0501 is deprecated.
0.2.0-alpha0433 143 5/2/2024 0.2.0-alpha0433 is deprecated.
0.2.0-alpha0408 171 4/28/2024 0.2.0-alpha0408 is deprecated.
0.2.0-alpha0401 207 4/22/2024 0.2.0-alpha0401 is deprecated.
0.2.0-alpha0399 159 4/19/2024 0.2.0-alpha0399 is deprecated.
0.2.0-alpha0398 158 4/18/2024 0.2.0-alpha0398 is deprecated.
0.2.0-alpha0396 158 4/18/2024 0.2.0-alpha0396 is deprecated.
0.2.0-alpha0395 158 4/18/2024 0.2.0-alpha0395 is deprecated.
0.2.0-alpha0352 157 4/18/2024 0.2.0-alpha0352 is deprecated.
0.2.0-alpha0350 160 4/18/2024 0.2.0-alpha0350 is deprecated.
0.2.0-alpha0349 172 4/17/2024 0.2.0-alpha0349 is deprecated.
0.2.0-alpha0347 168 4/16/2024 0.2.0-alpha0347 is deprecated.
0.2.0-alpha0346 171 4/12/2024 0.2.0-alpha0346 is deprecated.
0.2.0-alpha0345 200 4/12/2024 0.2.0-alpha0345 is deprecated.
0.2.0-alpha0339 168 4/12/2024 0.2.0-alpha0339 is deprecated.
0.2.0-alpha0337 156 4/11/2024 0.2.0-alpha0337 is deprecated.
0.2.0-alpha0335 165 4/11/2024 0.2.0-alpha0335 is deprecated.
0.2.0-alpha0333 154 4/10/2024 0.2.0-alpha0333 is deprecated.
0.2.0-alpha0309 164 4/10/2024 0.2.0-alpha0309 is deprecated.
0.2.0-alpha0307 164 4/4/2024 0.2.0-alpha0307 is deprecated.
0.2.0-alpha0305 171 4/3/2024 0.2.0-alpha0305 is deprecated.
0.2.0-alpha0303 149 4/2/2024 0.2.0-alpha0303 is deprecated.
0.2.0-alpha0294 165 4/1/2024 0.2.0-alpha0294 is deprecated.
0.2.0-alpha0293 170 3/28/2024 0.2.0-alpha0293 is deprecated.
0.2.0-alpha0292 160 3/28/2024 0.2.0-alpha0292 is deprecated.
0.2.0-alpha0291 152 3/27/2024 0.2.0-alpha0291 is deprecated.
0.2.0-alpha0290 186 3/27/2024 0.2.0-alpha0290 is deprecated.
0.2.0-alpha0283 187 3/26/2024 0.2.0-alpha0283 is deprecated.
0.2.0-alpha0273 170 3/24/2024 0.2.0-alpha0273 is deprecated.
0.2.0-alpha0271 159 3/24/2024 0.2.0-alpha0271 is deprecated.
0.2.0-alpha0264 156 3/24/2024 0.2.0-alpha0264 is deprecated.
0.2.0-alpha0260 157 3/24/2024 0.2.0-alpha0260 is deprecated.
0.2.0-alpha0258 173 3/24/2024 0.2.0-alpha0258 is deprecated.
0.2.0-alpha0234 183 3/21/2024 0.2.0-alpha0234 is deprecated.
0.2.0-alpha0218 180 3/20/2024 0.2.0-alpha0218 is deprecated.
0.2.0-alpha0217 169 3/19/2024 0.2.0-alpha0217 is deprecated.
0.2.0-alpha0212 169 3/19/2024 0.2.0-alpha0212 is deprecated.
0.2.0-alpha0204 175 3/18/2024 0.2.0-alpha0204 is deprecated.
0.2.0-alpha0202 179 3/18/2024 0.2.0-alpha0202 is deprecated.