public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     $base_uri = sprintf('http://%s:%s@localhost:4445/wd/hub/', getenv('SAUCE_USERNAME'), getenv('SAUCE_ACCESS_KEY'));
     $server = new Server(['base_uri' => $base_uri]);
     $capabilities = ['browserName' => 'firefox'];
     if (getenv('TRAVIS_JOB_NUMBER')) {
         $capabilities['tunnel-identifier'] = getenv('TRAVIS_JOB_NUMBER');
     }
     $driver = new Browser($server->newSessionClient($capabilities));
     self::setDriver($driver);
 }
Пример #2
0
 /**
  * @covers ::__construct
  */
 public function testConstruct()
 {
     $server = new Server(['base_uri' => 'http://127.0.0.1:44412/wd/hub/']);
     $this->assertEquals('http://127.0.0.1:44412/wd/hub/', (string) $server->getClient()->getConfig('base_uri'));
 }