/** * @return WebDriverTargetLocator * @throws WebDriverException */ public function switchTo() { try { return $this->driver->switchTo(); } catch (WebDriverException $exception) { $this->dispatchOnException($exception); } }