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,