public function snap($destination = null)
    {
        $destination = $destination ?: './tests/logs/screenshot.png';

        $this->files()->put(
            $destination,
            base64_decode($this->session->screenshot())
        );

        return $this;
    }
public function snap($destination = null)
    {
        $destination = $destination ?: './tests/logs/screenshot.png';

        $this->files()->put(
            $destination,
            base64_decode($this->session->screenshot())
        );

        return $this;
    }
public function snap ( $ destination = null ) { $ destination = $ destination ? : './tests/logs/screenshot.png' ; $ this -> files ( ) -> put ( $ destination , base64_decode ( $ this -> session -> screenshot ( ) ) ) ; return $ this ; }
Take a snapshot of the current page.

@param  string|null $destination
@return static
Take a snapshot of the current page .