Skip to content

Do not store the current screenshot if not needed #10

@phmLabs

Description

@phmLabs

Use the executor instead.

  public function takeScreenshot($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