src/Browser.php
public function screenshot($name)
    {
        $this->driver->takeScreenshot(
            sprintf('%s/%s.png', rtrim(static::$storeScreenshotsAt, '/'), $name)
        );

        return $this;
    }
public function screenshot($name)
    {
        $this->driver->takeScreenshot(
            sprintf('%s/%s.png', rtrim(static::$storeScreenshotsAt, '/'), $name)
        );

        return $this;
    }
public function screenshot ( $ name ) { $ this -> driver -> takeScreenshot ( sprintf ( '%s/%s.png' , rtrim ( static :: $ storeScreenshotsAt , '/' ) , $ name ) ) ; return $ this ; }
Take a screenshot and store it with the given name.

@param  string  $name
@return $this
Take a screenshot and store it with the given name .