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

        return new WebDriverPoint(
            $position['x'],
            $position['y']
        );
    }
public function getPosition()
    {
        $position = $this->executor->execute(
            DriverCommand::GET_WINDOW_POSITION,
            [':windowHandle' => 'current']
        );

        return new WebDriverPoint(
            $position['x'],
            $position['y']
        );
    }
public function getPosition ( ) { $ position = $ this -> executor -> execute ( DriverCommand :: GET_WINDOW_POSITION , [ ':windowHandle' => 'current' ] ) ; return new WebDriverPoint ( $ position [ 'x' ] , $ position [ 'y' ] ) ; }
Get the position of the current window, relative to the upper left corner
of the screen.

@return WebDriverPoint The current window position.
Get the position of the current window relative to the upper left corner of the screen .