/** * @return WebDriverLocation * @throws WebDriverException */ public function getLocation() { try { return $this->element->getLocation(); } catch (WebDriverException $exception) { $this->dispatchOnException($exception); } }