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 225 7/14/2025
1.5.0 200 7/1/2025
1.4.0 344 6/13/2025
1.3.1 354 6/11/2025
1.3.1-beta0001 357 6/11/2025
1.3.0 334 6/10/2025
1.2.0 175 5/30/2025
1.1.0 214 5/26/2025
1.1.0-alpha0720 173 6/7/2024
1.0.1 275 6/7/2024
1.0.0-beta0001 170 6/7/2024
0.4.0 197 6/7/2024
0.4.0-alpha0054 156 6/7/2024
0.4.0-alpha0049 183 6/7/2024
0.4.0-alpha0048 172 6/7/2024
0.4.0-alpha0041 165 6/7/2024
0.4.0-alpha0039 172 6/6/2024
0.4.0-alpha0038 163 6/6/2024
0.4.0-alpha0037 174 6/6/2024
0.4.0-alpha0025 171 6/6/2024
Loading failed