Class PlaywrightWebOptions

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

Playwright session options. Besides code, they bind from ProtoTest:Web:Playwright and ProtoTest:Web:Sessions:{name}, in that order.

public sealed class PlaywrightWebOptions : IProtoConfigurableOptions
Inheritance
PlaywrightWebOptions
Implements
Inherited Members
Extension Methods

Fields

BackendName

public const string BackendName = "Playwright"

Field Value

string

ConfigurationSectionName

public const string ConfigurationSectionName = "ProtoTest:Web:Playwright"

Field Value

string

Properties

Browser

public PlaywrightBrowser Browser { get; set; }

Property Value

PlaywrightBrowser

CapturePageErrors

public bool CapturePageErrors { get; set; }

Property Value

bool

CaptureRequestFailures

public bool CaptureRequestFailures { get; set; }

Property Value

bool

Channel

public string? Channel { get; set; }

Property Value

string

ConsoleCapture

public PlaywrightConsoleCapture ConsoleCapture { get; set; }

Property Value

PlaywrightConsoleCapture

Context

public BrowserNewContextOptions Context { get; set; }

Property Value

BrowserNewContextOptions

CorrelateTraceGroups

public bool CorrelateTraceGroups { get; set; }

Property Value

bool

Headless

public bool Headless { get; set; }

Property Value

bool

InstallBrowsers

Downloads the selected browser through the Playwright driver before the first launch, so a clean machine or CI runner needs no separate install step. Ignored when Channel names a system browser (for example msedge or chrome).

public bool InstallBrowsers { get; set; }

Property Value

bool

SlowMo

public float? SlowMo { get; set; }

Property Value

float?

TraceRetention

public PlaywrightTraceRetention TraceRetention { get; set; }

Property Value

PlaywrightTraceRetention