Playwright.ReactUI.Controls 1.1.0

Requires NuGet 2.12 or higher.

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

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

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.41.2
  • @skbkontur/react-ui 4.15.0 (рекомендуется использовать последние версии)
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
1.1.0 127 3/20/2024
1.0.0 131 3/19/2024