@applitools/spec-driver-selenium 1.3.14 → 1.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -399,11 +399,13 @@ async function build({ selenium, ...env }) {
399
399
  desiredCapabilities[browserOptionsName] = browserOptions;
400
400
  }
401
401
  }
402
- if (appium && browser === 'chrome') {
403
- desiredCapabilities['appium:chromeOptions'] = { w3c: false };
404
- }
405
- if (browser === 'chrome' && process.env.APPLITOOLS_SELENIUM_MAJOR_VERSION === '3') {
406
- desiredCapabilities['goog:chromeOptions'] = { w3c: false };
402
+ if (browser === 'chrome') {
403
+ if (appium) {
404
+ desiredCapabilities['appium:chromeOptions'] = { w3c: false, ...desiredCapabilities['appium:chromeOptions'] };
405
+ }
406
+ else if (process.env.APPLITOOLS_SELENIUM_MAJOR_VERSION === '3') {
407
+ desiredCapabilities['goog:chromeOptions'] = { w3c: false, ...desiredCapabilities['goog:chromeOptions'] };
408
+ }
407
409
  }
408
410
  const builder = new Builder().withCapabilities(desiredCapabilities);
409
411
  if (url && !attach)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-selenium",
3
- "version": "1.3.14",
3
+ "version": "1.3.15",
4
4
  "keywords": [
5
5
  "selenium",
6
6
  "selenium-webdriver",