Class PlaywrightWebHostBuilderExtensions

Namespace
ProtoTest.Web
Assembly
ProtoTest.Web.Playwright.dll

Playwright registration for IProtoHostBuilder. Reference the ProtoTest.Web.Playwright package and call AddWeb(...); the backend is implied by the referenced package. Sessions are created per test via Proto.Context.Web(name).

public static class PlaywrightWebHostBuilderExtensions
Inheritance
PlaywrightWebHostBuilderExtensions
Inherited Members

Methods

AddWeb(IProtoApplicationBuilder, Action<PlaywrightWebOptions>?)

Exposes web under an application. The application's sessions share this backend.

public static IProtoApplicationBuilder AddWeb(this IProtoApplicationBuilder application, Action<PlaywrightWebOptions>? configure = null)

Parameters

application IProtoApplicationBuilder
configure Action<PlaywrightWebOptions>

Returns

IProtoApplicationBuilder

AddWeb(IProtoHostBuilder, Action<PlaywrightWebOptions>?)

Adds a Playwright-backed web host.

public static IProtoHostBuilder AddWeb(this IProtoHostBuilder builder, Action<PlaywrightWebOptions>? configure = null)

Parameters

builder IProtoHostBuilder

The host builder.

configure Action<PlaywrightWebOptions>

Optional callback to configure Playwright options for every session.

Returns

IProtoHostBuilder