Skip to content

Commit

Permalink
fix: add wdalocalport when running parallel sessions (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 authored Aug 27, 2024
1 parent 3cb6caf commit 1f7144b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CapabilityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export async function iOSCapabilities(
caps.firstMatch[0]['appium:udid'] = freeDevice.udid;
caps.firstMatch[0]['appium:deviceName'] = freeDevice.name;
caps.firstMatch[0]['appium:platformVersion'] = freeDevice.sdk;
caps.firstMatch[0]['appium:wdaLocalPort'] = freeDevice.wdaLocalPort;
caps.firstMatch[0]['appium:mjpegServerPort'] = options.liveVideo
? freeDevice.mjpegServerPort
: undefined;
Expand All @@ -101,11 +102,11 @@ export async function iOSCapabilities(
where: { fileName: 'wda-resign.ipa' },
});
if (wdaInfo && !process.env.GO_IOS) {
caps.firstMatch[0]['appium:wdaLocalPort'] = freeDevice.wdaLocalPort;
caps.firstMatch[0]['appium:usePreinstalledWDA'] = true;
caps.firstMatch[0]['appium:updatedWDABundleId'] = wdaInfo.appBundleId;
caps.firstMatch[0]['appium:updatedWDABundleIdSuffix'] = '';
} else if (wdaInfo && process.env.GO_IOS) {
delete caps.firstMatch[0]['appium:wdaLocalPort'];
caps.firstMatch[0]['appium:webDriverAgentUrl'] = freeDevice.webDriverAgentUrl;
}
}
Expand Down

0 comments on commit 1f7144b

Please sign in to comment.