lib/WebDriverWindow.php
public function getSize()
    {
        $size = $this->executor->execute(
            DriverCommand::GET_WINDOW_SIZE,
            [':windowHandle' => 'current']
        );

        return new WebDriverDimension(
            $size['width'],
            $size['height']
        );
    }
public function getSize()
    {
        $size = $this->executor->execute(
            DriverCommand::GET_WINDOW_SIZE,
            [':windowHandle' => 'current']
        );

        return new WebDriverDimension(
            $size['width'],
            $size['height']
        );
    }
public function getSize ( ) { $ size = $ this -> executor -> execute ( DriverCommand :: GET_WINDOW_SIZE , [ ':windowHandle' => 'current' ] ) ; return new WebDriverDimension ( $ size [ 'width' ] , $ size [ 'height' ] ) ; }
Get the size of the current window. This will return the outer window
dimension, not just the view port.

@return WebDriverDimension The current window size.
Get the size of the current window . This will return the outer window dimension not just the view port .