public function __construct(WebDriver $driver) {
   $this->driver = $driver;
   $this->keyboard = $driver->getKeyboard();
   $this->mouse = $driver->getMouse();
   $this->touchScreen = $driver->getTouch();
   $this->action = new WebDriverCompositeAction();
 }
 /**
  * @return WebDriverTouchScreen
  * @throws WebDriverException
  */
 public function getTouch() {
   try {
     return $this->driver->getTouch();
   } catch (WebDriverException $exception) {
     $this->dispatchOnException($exception);
   }
 }