PlaywrightConfig
Playwright\Configuration\PlaywrightConfig
Immutable configuration value object for Playwright PHP.
Methods
__construct()
function __construct( public readonly ?string $nodePath = null, public readonly string $minNodeVersion = '20.0.0', public readonly BrowserType $browser = BrowserType::CHROMIUM, public readonly ?string $channel = null, public readonly bool $headless = true, public readonly int $timeoutMs = 30000, public readonly int $slowMoMs = 0, public readonly array $args = [], public readonly array $env = [], public readonly ?string $downloadsDir = null, public readonly ?string $videosDir = null, public readonly ?string $screenshotDir = null, public readonly bool $tracingEnabled = false, public readonly ?string $traceDir = null, public readonly bool $traceScreenshots = false, public readonly bool $traceSnapshots = false, public readonly ?array $proxy = null, public readonly ?LoggerInterface $logger = null, )
getScreenshotDirectory()
stringGet the effective screenshot directory.
function getScreenshotDirectory(): string
withNodePath()
selfReturn a new instance with the given node path.
function withNodePath(?string $nodePath): self
toArray()
arrayFor debugging/logging.
function toArray(): array