Example #1
0
 /**
  * @return WebDriverPoint
  * @throws WebDriverException
  */
 public function getLocation()
 {
     try {
         return $this->element->getLocation();
     } catch (WebDriverException $exception) {
         $this->dispatchOnException($exception);
     }
 }
Example #2
0
 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');
 }
Example #3
0
 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');
 }