From 1c036abf7975819f9cf5449f26494162edaa09c7 Mon Sep 17 00:00:00 2001 From: Sriharsha Date: Wed, 30 Aug 2023 23:24:57 +0530 Subject: [PATCH] =?UTF-8?q?[JS]=20Do=20not=20need=20browserVersion=20if=20?= =?UTF-8?q?Selenium=20is=20managing=20it=C2=A0#12641?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../node/selenium-webdriver/common/seleniumManager.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/javascript/node/selenium-webdriver/common/seleniumManager.js b/javascript/node/selenium-webdriver/common/seleniumManager.js index 2e99532b04901..7d3f0bb677755 100644 --- a/javascript/node/selenium-webdriver/common/seleniumManager.js +++ b/javascript/node/selenium-webdriver/common/seleniumManager.js @@ -25,6 +25,7 @@ const { platform } = require('process') const path = require('path') const fs = require('fs') const spawnSync = require('child_process').spawnSync +const { Capability } = require('../lib/capabilities') let debugMessagePrinted = false; @@ -126,6 +127,11 @@ function driverLocation(options) { ) } + // Once driverPath is available, delete browserVersion from payload + if (output.result.driver_path) { + options.delete(Capability.BROWSER_VERSION) + } + logOutput(output) return { driverPath: output.result.driver_path,