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.
  • Method Details

    • browserName

      @Key("playwright.browserName") @DefaultValue("") String browserName()
    • deviceName

      @Key("playwright.deviceName") @DefaultValue("") String 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

      @Key("playwright.connectionMode") @DefaultValue("local") String connectionMode()
    • endpoint

      @Key("playwright.endpoint") @DefaultValue("") String endpoint()
    • channel

      @Key("playwright.channel") @DefaultValue("") String 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

      @Key("playwright.downloadsDirectory") @DefaultValue("") String 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: EngineProperties
      Returns a fluent EngineProperties.SetProperty builder that allows programmatic override of individual configuration properties at runtime.
      Specified by:
      set in interface EngineProperties<Playwright>
      Returns:
      a new EngineProperties.SetProperty instance for chaining property overrides