Skip to content

Do not store the current screenshot if not needed #10

Open

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

  1. added this to the Version 1.1 milestone on Mar 22, 2014
  2. phmLabs commented on Mar 24, 2014

    @phmLabs
    CollaboratorAuthor
            $codeCWebdriver = $this->getModule("WebDriver");
            // @var $codeCWebdriver RemoteWebDriver
    
            $executor = $codeCWebdriver->webDriver->getCommandExecutor();
            /* @var \WebDriverCommandExecutor $executor */
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