/** * @return WebDriverPoint * @throws WebDriverException */ public function getLocation() { try { return $this->element->getLocation(); } catch (WebDriverException $exception) { $this->dispatchOnException($exception); } }
public function assert() { $rightCoord = $this->rightElement->getLocation(); $leftCoord = $this->leftElement->getLocation(); $this->getTestCase()->assertGreaterThan($leftCoord->getX(), $rightCoord->getX(), 'The "right" element was not to the right of the "left" element'); }
public function assert() { $aboveCoord = $this->aboveElement->getLocation(); $belowCoord = $this->belowElement->getLocation(); $this->getTestCase()->assertGreaterThan($aboveCoord->getY(), $belowCoord->getY(), 'The "below" element was not below the "above" element'); }