Skip to content

Commit

Permalink
fix: Respect wdaRemotePort capability for real devices (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Jun 26, 2024
1 parent 2b598bd commit 03ea143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/webdriveragent.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export class WebDriverAgent {
this.setWDAPaths(args.bootstrapPath, args.agentPath);

this.wdaLocalPort = args.wdaLocalPort;
this.wdaRemotePort = args.wdaLocalPort || WDA_AGENT_PORT;
this.wdaRemotePort = ((this.isRealDevice ? args.wdaRemotePort : null) ?? args.wdaLocalPort)
|| WDA_AGENT_PORT;
this.wdaBaseUrl = args.wdaBaseUrl || WDA_BASE_URL;

this.prebuildWDA = args.prebuildWDA;
Expand Down

0 comments on commit 03ea143

Please sign in to comment.