Skip to content

Do not store the current screenshot if not needed #10

Description

@phmLabs

Use the executor instead.

publicfunctiontakeScreenshot($save_as = null) {
$screenshot = base64_decode(
$this->executor->execute('takeScreenshot')
);
if ($save_as) {
file_put_contents($save_as, $screenshot);
}
return$screenshot;
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions