Skip to content

Commit 8141f82

Browse files
potapovDimdiemol
andauthored
feat/deprecation message for standalone3x (#11422)
* feat/deprecation message for standalone3x * Update javascript/node/selenium-webdriver/remote/util.js Co-authored-by: Diego Molina <[email protected]> Co-authored-by: Diego Molina <[email protected]>
1 parent 4ce44c6 commit 8141f82

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

javascript/node/selenium-webdriver/remote/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const cmd = require('../lib/command')
2828
const input = require('../lib/input')
2929
const net = require('../net')
3030
const portprober = require('../net/portprober')
31+
const logging = require('../lib/logging')
3132

3233
const { getJavaPath, formatSpawnArgs } = require('./util')
3334

@@ -119,6 +120,8 @@ class DriverService {
119120
* @param {!ServiceOptions} options Configuration options for the service.
120121
*/
121122
constructor(executable, options) {
123+
/** @private @const */
124+
this.log_ = logging.getLogger('webdriver.DriverService')
122125
/** @private {string} */
123126
this.executable_ = executable
124127

javascript/node/selenium-webdriver/remote/util.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ function isSelenium3x(seleniumStandalonePath) {
5151
* @returns {Array.<string>}
5252
*/
5353
function formatSpawnArgs(seleniumStandalonePath, args) {
54-
if (isSelenium3x(seleniumStandalonePath)) return args
54+
if (isSelenium3x(seleniumStandalonePath)) {
55+
console.warn('Deprecation: Support for Standalone Server 3.x will be removed soon. Please update to version 4.x')
56+
return args
57+
}
5558

5659
const standaloneArg = 'standalone'
5760
const port3xArgFormat = '-port'

0 commit comments

Comments
 (0)