Skip to content

Do not store the current screenshot if not needed #10

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;
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions