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