From 8f7e8727cfb238443117c5dff37c976628003720 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Wed, 26 Jun 2024 20:07:55 +0200 Subject: [PATCH] tune condition --- lib/webdriveragent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webdriveragent.js b/lib/webdriveragent.js index a8019e056..f5cda7ee3 100644 --- a/lib/webdriveragent.js +++ b/lib/webdriveragent.js @@ -58,7 +58,7 @@ export class WebDriverAgent { this.setWDAPaths(args.bootstrapPath, args.agentPath); this.wdaLocalPort = args.wdaLocalPort; - this.wdaRemotePort = (this.isRealDevice ? (args.wdaRemotePort ?? args.wdaLocalPort) : args.wdaLocalPort) + this.wdaRemotePort = ((this.isRealDevice ? args.wdaRemotePort : null) ?? args.wdaLocalPort) || WDA_AGENT_PORT; this.wdaBaseUrl = args.wdaBaseUrl || WDA_BASE_URL;