Interface Playwright
- All Superinterfaces:
org.aeonbits.owner.Config, EngineProperties<Playwright>, Serializable
@Sources({"system:properties","file:src/main/resources/properties/custom.properties","file:src/main/resources/properties/default/custom.properties","classpath:custom.properties"})
public interface Playwright
extends EngineProperties<Playwright>
Playwright-specific GUI backend settings. Browser name, headless mode, base
URL, and viewport are reused from
Web unless an explicit Playwright
override is exposed here.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.aeonbits.owner.Config
org.aeonbits.owner.Config.ConverterClass, org.aeonbits.owner.Config.DecryptorClass, org.aeonbits.owner.Config.DefaultValue, org.aeonbits.owner.Config.DisableableFeature, org.aeonbits.owner.Config.DisableFeature, org.aeonbits.owner.Config.EncryptedValue, org.aeonbits.owner.Config.HotReload, org.aeonbits.owner.Config.HotReloadType, org.aeonbits.owner.Config.Key, org.aeonbits.owner.Config.LoadPolicy, org.aeonbits.owner.Config.LoadType, org.aeonbits.owner.Config.PreprocessorClasses, org.aeonbits.owner.Config.Separator, org.aeonbits.owner.Config.Sources, org.aeonbits.owner.Config.TokenizerClassNested classes/interfaces inherited from interface EngineProperties
EngineProperties.SetProperty -
Method Summary
Modifier and TypeMethodDescriptionbooleanchannel()intPlaywright device descriptor name to apply when creating a browser context.endpoint()intintdefault Playwright.PlaywrightSetPropertyset()Returns a fluentEngineProperties.SetPropertybuilder that allows programmatic override of individual configuration properties at runtime.intslowMo()booleanbooleanbooleanbooleanboolean
-
Method Details
-
browserName
-
deviceName
Playwright device descriptor name to apply when creating a browser context. Matches Playwright registry names when available, plus SHAFT-provided latest device aliases for pinned Playwright versions.- Returns:
- the configured Playwright device descriptor name
-
connectionMode
-
endpoint
-
channel
-
slowMo
@Key("playwright.slowMo") @DefaultValue("0") int slowMo() -
launchTimeoutMilliseconds
@Key("playwright.launchTimeoutMilliseconds") @DefaultValue("30000") int launchTimeoutMilliseconds() -
defaultTimeoutMilliseconds
@Key("playwright.defaultTimeoutMilliseconds") @DefaultValue("30000") int defaultTimeoutMilliseconds() -
artifactsDirectory
@Key("playwright.artifactsDirectory") @DefaultValue("target/playwright-artifacts") String artifactsDirectory() -
downloadsDirectory
-
acceptDownloads
@Key("playwright.acceptDownloads") @DefaultValue("true") boolean acceptDownloads() -
tracingEnabled
@Key("playwright.tracing.enabled") @DefaultValue("false") boolean tracingEnabled() -
tracingOnRetryOnly
@Key("playwright.tracing.onRetryOnly") @DefaultValue("true") boolean tracingOnRetryOnly() -
tracingScreenshots
@Key("playwright.tracing.screenshots") @DefaultValue("true") boolean tracingScreenshots() -
tracingSnapshots
@Key("playwright.tracing.snapshots") @DefaultValue("true") boolean tracingSnapshots() -
tracingSources
@Key("playwright.tracing.sources") @DefaultValue("true") boolean tracingSources() -
set
Description copied from interface:EnginePropertiesReturns a fluentEngineProperties.SetPropertybuilder that allows programmatic override of individual configuration properties at runtime.- Specified by:
setin interfaceEngineProperties<Playwright>- Returns:
- a new
EngineProperties.SetPropertyinstance for chaining property overrides
-