Beispiel #1
0
 /**
  * Get the web driver connection
  *
  * @return RemoteWebDriver
  * @author Ronan Chilvers <*****@*****.**>
  */
 protected function getDriver()
 {
     if (!$this->driver instanceof Connection) {
         $this->driver = Connection::create($this->getConnectionUrl(), $this->getCapabilities());
         if ($host = $this->getDefaultHost()) {
             $this->driver->setDefaultHost($host);
         }
     }
     return $this->driver;
 }