Skip to content

Commit 03ea143

Browse files
fix: Respect wdaRemotePort capability for real devices (#915)
1 parent 2b598bd commit 03ea143

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/webdriveragent.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export class WebDriverAgent {
5858
this.setWDAPaths(args.bootstrapPath, args.agentPath);
5959

6060
this.wdaLocalPort = args.wdaLocalPort;
61-
this.wdaRemotePort = args.wdaLocalPort || WDA_AGENT_PORT;
61+
this.wdaRemotePort = ((this.isRealDevice ? args.wdaRemotePort : null) ?? args.wdaLocalPort)
62+
|| WDA_AGENT_PORT;
6263
this.wdaBaseUrl = args.wdaBaseUrl || WDA_BASE_URL;
6364

6465
this.prebuildWDA = args.prebuildWDA;

0 commit comments

Comments
 (0)