You are here

public function Session::getScreenshot in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Session.php \Behat\Mink\Session::getScreenshot()

Capture a screenshot of the current window.

Return value

string screenshot of MIME type image/* depending on driver (e.g., image/png, image/jpeg)

File

vendor/behat/mink/src/Session.php, line 248

Class

Session
Mink session.

Namespace

Behat\Mink

Code

public function getScreenshot() {
  return $this->driver
    ->getScreenshot();
}