ProcessLauncher

Playwright\Transport\JsonRpc\ProcessLauncherInterface

Interface for process launchers that manage Node.js bridge processes.

Methods

start()

Process
function start( array $command, ?string $cwd = null, array $env = [], ?float $timeout = null, ): Process

ensureRunning()

void
function ensureRunning(Process $process, string $phase = 'operation'): void

getStderrOutput()

string
function getStderrOutput(): string

clearStderrBuffer()

void
function clearStderrBuffer(): void

terminate()

void
function terminate(Process $process, float $gracePeriodSeconds = 2.0): void

waitForExit()

int
function waitForExit(Process $process, ?float $timeoutSeconds = null): int

getInputStream()

?InputStream
function getInputStream(): ?InputStream