Lines Matching defs:FirefoxOptions
8 use Facebook\WebDriver\Firefox\FirefoxOptions;
99 // When setting 'moz:firefoxOptions' from an array and not from instance of FirefoxOptions, we must merge
100 // it with default FirefoxOptions to keep previous behavior (where the default preferences were added
102 // TODO: remove in next major version, once FirefoxOptions are only accepted as object instance and not as array
103 if ($name === FirefoxOptions::CAPABILITY && is_array($value)) {
104 $defaultOptions = (new FirefoxOptions())->toArray();
187 if (isset($this->capabilities[FirefoxOptions::CAPABILITY]) &&
188 $this->capabilities[FirefoxOptions::CAPABILITY] instanceof FirefoxOptions
190 $this->capabilities[FirefoxOptions::CAPABILITY] =
191 $this->capabilities[FirefoxOptions::CAPABILITY]->toArray();
268 if (!array_key_exists(FirefoxOptions::CAPABILITY, $ossCapabilities)
269 || !array_key_exists('profile', $ossCapabilities[FirefoxOptions::CAPABILITY])) {
270 $w3cCapabilities[FirefoxOptions::CAPABILITY]['profile'] = $ossCapabilities[FirefoxDriver::PROFILE];
309 $caps->setCapability(FirefoxOptions::CAPABILITY, new FirefoxOptions()); // to add default options