class ScreenshotHelper (View source)

Helper class to handle taking, decoding and screenshots using WebDriver.

Methods

__construct(RemoteExecuteMethod $executor)

No description

string
takePageScreenshot(string|null $saveAs = null)

No description

takeElementScreenshot($elementId, $saveAs = null)

No description

Details

__construct(RemoteExecuteMethod $executor)

No description

Parameters

RemoteExecuteMethod $executor

string takePageScreenshot(string|null $saveAs = null)

No description

Parameters

string|null $saveAs

Return Value

string

Exceptions

WebDriverException

takeElementScreenshot($elementId, $saveAs = null)

No description

Parameters

$elementId
$saveAs