/** * Creates browser configuration. * * @param EventDispatcherInterface $event_dispatcher Event dispatcher. * @param IBrowserConfigurationFactory $browser_configuration_factory Browser configuration factory. */ public function __construct(EventDispatcherInterface $event_dispatcher, IBrowserConfigurationFactory $browser_configuration_factory) { $this->browserConfigurationFactory = $browser_configuration_factory; $this->defaultParameters['api_username'] = ''; $this->defaultParameters['api_key'] = ''; parent::__construct($event_dispatcher); }
/** * Creates browser configuration. * * @param EventDispatcherInterface $event_dispatcher Event dispatcher. * @param DriverFactoryRegistry $driver_factory_registry Driver factory registry. */ public function __construct(EventDispatcherInterface $event_dispatcher, DriverFactoryRegistry $driver_factory_registry) { $this->defaults['driver'] = 'selenium2'; $this->defaults['apiUsername'] = ''; $this->defaults['apiKey'] = ''; parent::__construct($event_dispatcher, $driver_factory_registry); }