Playwright.ReactUI.Controls 2.0.1

Requires NuGet 2.12 or higher.

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

// Install Playwright.ReactUI.Controls as a Cake Tool
#tool nuget:?package=Playwright.ReactUI.Controls&version=2.0.1                

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.Expect().ToHaveValueAsync("newValue").ConfigureAwait(false);

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

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

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

  • netstandard2.1 / NET6
  • Playwright 1.48.0
  • @skbkontur/react-ui 4.22.5 (рекомендуется использовать последние версии)
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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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
2.0.1 44 11/9/2024
2.0.0 43 11/9/2024
1.2.0 330 5/19/2024
1.1.1 134 5/17/2024
1.1.0 181 3/20/2024
1.0.0 176 3/19/2024