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
ConfigurationSectionName
public const string ConfigurationSectionName = "ProtoTest:Web:Playwright"
Field Value
Properties
Browser
public PlaywrightBrowser Browser { get; set; }
Property Value
CapturePageErrors
public bool CapturePageErrors { get; set; }
Property Value
CaptureRequestFailures
public bool CaptureRequestFailures { get; set; }
Property Value
Channel
public string? Channel { get; set; }
Property Value
ConsoleCapture
public PlaywrightConsoleCapture ConsoleCapture { get; set; }
Property Value
Context
public BrowserNewContextOptions Context { get; set; }
Property Value
- BrowserNewContextOptions
CorrelateTraceGroups
public bool CorrelateTraceGroups { get; set; }
Property Value
Headless
public bool Headless { get; set; }
Property Value
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
SlowMo
public float? SlowMo { get; set; }
Property Value
TraceRetention
public PlaywrightTraceRetention TraceRetention { get; set; }