Playwright.ReactUI.Controls 3.1.1

Requires NuGet 2.12 or higher.

dotnet add package Playwright.ReactUI.Controls --version 3.1.1
                    
NuGet\Install-Package Playwright.ReactUI.Controls -Version 3.1.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="Playwright.ReactUI.Controls" Version="3.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Playwright.ReactUI.Controls" Version="3.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Playwright.ReactUI.Controls" />
                    
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 Playwright.ReactUI.Controls --version 3.1.1
                    
#r "nuget: Playwright.ReactUI.Controls, 3.1.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.
#addin nuget:?package=Playwright.ReactUI.Controls&version=3.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Playwright.ReactUI.Controls&version=3.1.1
                    
Install as a Cake Tool

Playwright.ReactUI.Controls

Библиотека предназначена для взаимодействия с компонентами @skbkontur/react-ui при тестировании с помощью Playwright.NET

Как использовать

В качестве примера взят компонент Input:
<Input data-tid="InputId" />

Инициализация
var input = new Input(page.GetByTestId("InputId"));

Взаимодействие
await input.FillAsync("newValue").ConfigureAwait(false);

Проверка
await input.ExpectV2().ToHaveValueAsync("newValue").ConfigureAwait(false);

Создание своего компонента

public class Header : ControlBase
{
    public Header(ILocator rootLocator)
        : base(rootLocator)
    {
        SomeInput = new Input(rootLocator.GetByTestId("InputId"));
    }
    
    public Input SomeInput { get; }
}

Создание набора ассертов к своему компоненту

public class HeaderAssertions : ControlBaseAssertionsV2
{
    private readonly Header header;
    
    public HeaderAssertions(Header header)
        : base(header)
    {
        this.header = header;
    }
    
    public async Task ToBeVisibleAsync()
        => await header.RootLocator.Expect().ToBeVisibleAsync().ConfigureAwait(false);
}

Для "подключения" набора достаточно добавить к своему компоненту:

public new HeaderAssertions ExpectV2() => new(this);

Минимальные требования

  • netstandard2.0 / NET6
  • Playwright 1.51.0
  • @skbkontur/react-ui 4.25.2 (рекомендуется использовать последние версии)
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Playwright.ReactUI.Controls:

Package Downloads
Playwright.ReactUI.Controls.Extensions

Extensions for Playwright.ReactUI.Controls

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.1 85 6/26/2025
3.1.0 152 6/16/2025
3.0.0 148 6/15/2025
2.2.0 292 6/12/2025
2.1.0 300 6/11/2025
2.0.3 339 4/18/2025
2.0.2 1,048 2/14/2025
2.0.1 145 11/9/2024
2.0.0 141 11/9/2024
1.2.0 1,071 5/19/2024
1.1.1 159 5/17/2024
1.1.0 200 3/20/2024
1.0.0 205 3/19/2024