Skip to content

[🐛 Bug]: appium service adds double port for the appium inspector #14960

@wswebcreation

Description

@wswebcreation

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

latest

Mode

Standalone Mode

Which capabilities are you using?

not needed

What happened?

When you've isntalled the latest wdio-appium-service and now run npx start-appium-inspector --port=6543 it will be translated to

npx start-appium-inspector --port=6543 
⏳ Checking inspector plugin...
🚀 Starting Appium server...
📡 Command: /Users/wimselles/Git/wdio/appium-boilerplate/node_modules/appium/index.js server --port=6543 --port=6543 --log-timestamp --use-plugins=inspector --allow-cors
⏳ Waiting for Appium server to be ready...
ℹ️  Press Ctrl+C to stop Appium server and exit

As you can see the port is added twice, this needs to be done once

What is your expected behavior?

only one custom port needs to be added to the arguments

How to reproduce the bug.

See above

Relevant log output

npx start-appium-inspector --port=6543
 Checking inspector plugin...
🚀 Starting Appium server...
📡 Command: /Users/wimselles/Git/wdio/appium-boilerplate/node_modules/appium/index.js server --port=6543 --port=6543 --log-timestamp --use-plugins=inspector --allow-cors
 Waiting for Appium server to be ready...
ℹ️  Press Ctrl+C to stop Appium server and exit

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions