library/MinkWrapper.php
public function getScreenShot($sFileName)
    {
        $oDriver = $this->getMinkSession()->getDriver();
        if ($oDriver instanceof \Behat\Mink\Driver\SeleniumDriver) {
            return $this->getMinkSession()->getDriver()->getBrowser()->captureEntirePageScreenshot($sFileName, "");
        }

        return '';
    }
public function getScreenShot($sFileName)
    {
        $oDriver = $this->getMinkSession()->getDriver();
        if ($oDriver instanceof \Behat\Mink\Driver\SeleniumDriver) {
            return $this->getMinkSession()->getDriver()->getBrowser()->captureEntirePageScreenshot($sFileName, "");
        }

        return '';
    }
public function getScreenShot ( $ sFileName ) { $ oDriver = $ this -> getMinkSession ( ) -> getDriver ( ) ; if ( $ oDriver instanceof \ Behat \ Mink \ Driver \ SeleniumDriver ) { return $ this -> getMinkSession ( ) -> getDriver ( ) -> getBrowser ( ) -> captureEntirePageScreenshot ( $ sFileName , "" ) ; } return '' ; }
Captures screen shot to given file.

@param string $sFileName

@return string
Captures screen shot to given file .