fix: make cli flag set correct chromedriverPort
MODIFY
docs/en/advanced-concepts/parallel-tests.md
docs/en/advanced-concepts/parallel-tests.md
@@ -7,7 +7,7 @@ Note, that it is not possible to have more than one session running on the *same
The important capabilities:
- `udid` the device id
-- `chromeDriverPort` the chromedriver port (if using webviews or chrome)
+- `chromedriverPort` the chromedriver port (if using webviews or chrome)
- `systemPort` If you are using [appium-uiautomator2-driver](https://github.com/appium/appium-uiautomator2-driver), set a unique system port for each parallel session. Otherwise you might get a port conflict such as in [this issue](https://github.com/appium/appium/issues/7745).

MODIFY
lib/parser.js
lib/parser.js
@@ -255,15 +255,6 @@ const args = [
help: 'port for robot',
}],
- [['--chromedriver-port'], {
- defaultValue: null,
- dest: 'chromeDriverPort',
- required: false,
- type: 'int',
- example: '9515',
- help: 'Port upon which ChromeDriver will run. If not given, Android driver will pick a random available port.',
- }],
-
[['--chromedriver-executable'], {
defaultValue: null,
dest: 'chromedriverExecutable',
@@ -790,6 +781,16 @@ const deprecatedArgs = [
deprecatedFor: '--long-stacktrace',
help: '[DEPRECATED] - Add long stack traces to log entries. Recommended for debugging only.',
}],
+
+ [['--chromedriver-port'], {
+ defaultValue: null,
+ dest: 'chromedriverPort',
+ required: false,
+ type: 'int',
+ example: '9515',
+ deprecatedFor: '--default-capabilities',
+ help: '[DEPRECATED] - Port upon which ChromeDriver will run. If not given, Android driver will pick a random available port.',
+ }],
];
function updateParseArgsForDefaultCapabilities (parser) {

fix: make cli flag set correct chromedriverPort (#13771)