From eeddd659835da810a2a8a1d497692152193d7d3c Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 29 Jan 2024 12:56:22 -0600 Subject: [PATCH] Upgrade selenium-webdriver to 4.17.0 (#175746) Will be testing as a fix for https://github.com/elastic/kibana/pull/175740 --- package.json | 2 +- .../services/remote/webdriver.ts | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index fcd29bece4829..045155bbf1762 100644 --- a/package.json +++ b/package.json @@ -1644,7 +1644,7 @@ "rxjs-marbles": "^7.0.1", "sass-embedded": "^1.70.0", "sass-loader": "^10.5.1", - "selenium-webdriver": "^4.16.0", + "selenium-webdriver": "^4.17.0", "sharp": "0.32.6", "simple-git": "^3.16.0", "sinon": "^7.4.2", diff --git a/packages/kbn-ftr-common-functional-ui-services/services/remote/webdriver.ts b/packages/kbn-ftr-common-functional-ui-services/services/remote/webdriver.ts index 49a43817efc62..8d9196fa8124e 100644 --- a/packages/kbn-ftr-common-functional-ui-services/services/remote/webdriver.ts +++ b/packages/kbn-ftr-common-functional-ui-services/services/remote/webdriver.ts @@ -231,8 +231,8 @@ async function attemptToCreateCommand( firefoxOptions.setAcceptInsecureCerts(config.acceptInsecureCerts); if (headlessBrowser === '1') { - // See: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode - firefoxOptions.headless(); + // See: https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions + firefoxOptions.addArguments('-headless'); } // Windows issue with stout socket https://github.com/elastic/kibana/issues/52053 diff --git a/yarn.lock b/yarn.lock index fa40b7667330a..e5a7fa5362d52 100644 --- a/yarn.lock +++ b/yarn.lock @@ -27543,10 +27543,10 @@ select-hose@^2.0.0: resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" integrity sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo= -selenium-webdriver@^4.16.0: - version "4.16.0" - resolved "https://registry.yarnpkg.com/selenium-webdriver/-/selenium-webdriver-4.16.0.tgz#2f1a2426d876aa389d1c937b00f034c2c7808360" - integrity sha512-IbqpRpfGE7JDGgXHJeWuCqT/tUqnLvZ14csSwt+S8o4nJo3RtQoE9VR4jB47tP/A8ArkYsh/THuMY6kyRP6kuA== +selenium-webdriver@^4.17.0: + version "4.17.0" + resolved "https://registry.yarnpkg.com/selenium-webdriver/-/selenium-webdriver-4.17.0.tgz#f6c93a9df3e0543df7dc2329d81968af42845a7f" + integrity sha512-e2E+2XBlGepzwgFbyQfSwo9Cbj6G5fFfs9MzAS00nC99EewmcS2rwn2MwtgfP7I5p1e7DYv4HQJXtWedsu6DvA== dependencies: jszip "^3.10.1" tmp "^0.2.1"