diff --git a/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserStackFactory.php b/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserStackFactory.php index 66aa3fa7..e892a12d 100644 --- a/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserStackFactory.php +++ b/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserStackFactory.php @@ -44,6 +44,10 @@ public function buildDriver(array $config) { $config['wd_host'] = sprintf('%s:%s@hub.browserstack.com/wd/hub', $config['username'], $config['access_key']); + if ($config['capabilities']['browserstack-local']) { + $config['capabilities']['extra_capabilities']['browserstack.local'] = true; + } + return parent::buildDriver($config); } @@ -60,6 +64,7 @@ protected function getCapabilitiesNode() ->scalarNode('os_version')->end() ->scalarNode('device')->end() ->booleanNode('browserstack-debug')->end() + ->booleanNode('browserstack-local')->end() ->booleanNode('browserstack-tunnel')->end() ->booleanNode('emulator')->end() ->booleanNode('acceptSslCert')->end()