Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 261b49e

Browse files
committed
docs(config): add full list of local selenium server args
Also, deprecate seleniumPort and seleniumArgs.
1 parent b693256 commit 261b49e

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Diff for: docs/referenceConf.js

+12-10
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,20 @@ exports.config = {
3030
// Server is found, this will default to
3131
// node_modules/protractor/selenium/selenium-server...
3232
seleniumServerJar: null,
33-
// The port to start the Selenium Server on, or null if the server should
34-
// find its own unused port. Ignored if seleniumServerJar is null.
35-
seleniumPort: null,
36-
// Additional command line options to pass to selenium. For example,
37-
// if you need to change the browser timeout, use
38-
// seleniumArgs: ['-browserTimeout=60']
39-
// Ignored if seleniumServerJar is null.
40-
seleniumArgs: [],
4133
// Can be an object which will be passed to the SeleniumServer class as args.
34+
// See a full list of options at
35+
// https://github.com/SeleniumHQ/selenium/blob/master/javascript/node/selenium-webdriver/remote/index.js
4236
// If you specify `args` or `port` in this object, it will overwrite the values
43-
// set via `seleniumPort` and `seleniumArgs`.
44-
localSeleniumStandaloneOpts: null,
37+
// set via the deprecated config values `seleniumPort` and `seleniumArgs`.
38+
localSeleniumStandaloneOpts: {
39+
// The port to start the Selenium Server on, or null if the server should
40+
// find its own unused port.
41+
port: null,
42+
// Additional command line options to pass to selenium. For example,
43+
// if you need to change the browser timeout, use
44+
// seleniumArgs: ['-browserTimeout=60']
45+
args: []
46+
},
4547
// ChromeDriver location is used to help find the chromedriver binary.
4648
// This will be passed to the Selenium jar as the system property
4749
// webdriver.chrome.driver. If null, Selenium will

Diff for: lib/configParser.js

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ var ConfigParser = function() {
3232
stackFilter: helper.filterStackTrace,
3333
defaultTimeoutInterval: (30 * 1000)
3434
},
35-
seleniumArgs: [],
3635
mochaOpts: {
3736
ui: 'bdd',
3837
reporter: 'list'

0 commit comments

Comments
 (0)