lib/Remote/RemoteWebElement.php
public function getLocation()
    {
        $location = $this->executor->execute(
            DriverCommand::GET_ELEMENT_LOCATION,
            [':id' => $this->id]
        );

        return new WebDriverPoint($location['x'], $location['y']);
    }
public function getLocation()
    {
        $location = $this->executor->execute(
            DriverCommand::GET_ELEMENT_LOCATION,
            [':id' => $this->id]
        );

        return new WebDriverPoint($location['x'], $location['y']);
    }
public function getLocation ( ) { $ location = $ this -> executor -> execute ( DriverCommand :: GET_ELEMENT_LOCATION , [ ':id' => $ this -> id ] ) ; return new WebDriverPoint ( $ location [ 'x' ] , $ location [ 'y' ] ) ; }
Get the location of element relative to the top-left corner of the page.

@return WebDriverPoint The location of the element.
Get the location of element relative to the top - left corner of the page .