Playwright.ReactUI.Controls
3.3.0
Requires NuGet 2.12 or higher.
dotnet add package Playwright.ReactUI.Controls --version 3.3.0
NuGet\Install-Package Playwright.ReactUI.Controls -Version 3.3.0
<PackageReference Include="Playwright.ReactUI.Controls" Version="3.3.0" />
<PackageVersion Include="Playwright.ReactUI.Controls" Version="3.3.0" />
<PackageReference Include="Playwright.ReactUI.Controls" />
paket add Playwright.ReactUI.Controls --version 3.3.0
#r "nuget: Playwright.ReactUI.Controls, 3.3.0"
#:package Playwright.ReactUI.Controls@3.3.0
#addin nuget:?package=Playwright.ReactUI.Controls&version=3.3.0
#tool nuget:?package=Playwright.ReactUI.Controls&version=3.3.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.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.52.0
- @skbkontur/react-ui 4.25.2 (рекомендуется использовать последние версии)
| Product | Versions 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. |
-
.NETStandard 2.0
- Microsoft.Playwright (>= 1.52.0)
- System.Linq.Async (>= 6.0.1)
-
net6.0
- Microsoft.Playwright (>= 1.52.0)
- System.Linq.Async (>= 6.0.1)
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.3.0 | 262 | 12/16/2025 |
| 3.2.0 | 332 | 10/12/2025 |
| 3.1.1 | 5,384 | 6/26/2025 |
| 3.1.0 | 227 | 6/16/2025 |
| 3.0.0 | 217 | 6/15/2025 |
| 2.2.0 | 362 | 6/12/2025 |
| 2.1.0 | 375 | 6/11/2025 |
| 2.0.3 | 595 | 4/18/2025 |
| 2.0.2 | 1,751 | 2/14/2025 |
| 2.0.1 | 206 | 11/9/2024 |
| 2.0.0 | 198 | 11/9/2024 |
| 1.2.0 | 1,131 | 5/19/2024 |
| 1.1.1 | 217 | 5/17/2024 |
| 1.1.0 | 249 | 3/20/2024 |
| 1.0.0 | 270 | 3/19/2024 |