Skip to content

Commit 1c036ab

Browse files
committed
[JS] Do not need browserVersion if Selenium is managing it #12641
1 parent a124440 commit 1c036ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

javascript/node/selenium-webdriver/common/seleniumManager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const { platform } = require('process')
2525
const path = require('path')
2626
const fs = require('fs')
2727
const spawnSync = require('child_process').spawnSync
28+
const { Capability } = require('../lib/capabilities')
2829

2930
let debugMessagePrinted = false;
3031

@@ -126,6 +127,11 @@ function driverLocation(options) {
126127
)
127128
}
128129

130+
// Once driverPath is available, delete browserVersion from payload
131+
if (output.result.driver_path) {
132+
options.delete(Capability.BROWSER_VERSION)
133+
}
134+
129135
logOutput(output)
130136
return {
131137
driverPath: output.result.driver_path,

0 commit comments

Comments
 (0)