Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function buildDriver(array $config)
 {
     $host = 'ondemand.saucelabs.com';
     if ($config['connect']) {
         $host = 'localhost:4445';
     }
     $config['wd_host'] = sprintf('%s:%s@%s/wd/hub', $config['username'], $config['access_key'], $host);
     return parent::buildDriver($config);
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function buildDriver(array $config)
 {
     $config['wd_host'] = sprintf('%s:%s@hub.browserstack.com/wd/hub', $config['username'], $config['access_key']);
     $config['capabilities']['browserstack.local'] = true;
     return parent::buildDriver($config);
 }