lib/WebDriverWindow.php
public function setPosition(WebDriverPoint $position)
    {
        $params = [
            'x' => $position->getX(),
            'y' => $position->getY(),
            ':windowHandle' => 'current',
        ];
        $this->executor->execute(DriverCommand::SET_WINDOW_POSITION, $params);

        return $this;
    }
public function setPosition(WebDriverPoint $position)
    {
        $params = [
            'x' => $position->getX(),
            'y' => $position->getY(),
            ':windowHandle' => 'current',
        ];
        $this->executor->execute(DriverCommand::SET_WINDOW_POSITION, $params);

        return $this;
    }
public function setPosition ( WebDriverPoint $ position ) { $ params = [ 'x' => $ position -> getX ( ) , 'y' => $ position -> getY ( ) , ':windowHandle' => 'current' , ] ; $ this -> executor -> execute ( DriverCommand :: SET_WINDOW_POSITION , $ params ) ; return $ this ; }
Set the position of the current window. This is relative to the upper left
corner of the screen.

@param WebDriverPoint $position
@return WebDriverWindow The instance.
Set the position of the current window . This is relative to the upper left corner of the screen .