We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b598bd commit 03ea143Copy full SHA for 03ea143
lib/webdriveragent.js
@@ -58,7 +58,8 @@ export class WebDriverAgent {
58
this.setWDAPaths(args.bootstrapPath, args.agentPath);
59
60
this.wdaLocalPort = args.wdaLocalPort;
61
- this.wdaRemotePort = args.wdaLocalPort || WDA_AGENT_PORT;
+ this.wdaRemotePort = ((this.isRealDevice ? args.wdaRemotePort : null) ?? args.wdaLocalPort)
62
+ || WDA_AGENT_PORT;
63
this.wdaBaseUrl = args.wdaBaseUrl || WDA_BASE_URL;
64
65
this.prebuildWDA = args.prebuildWDA;
0 commit comments