Skip to content

Commit

Permalink
Fix ios manual control (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudharsan-selvaraj authored Jun 23, 2024
1 parent 5fa81db commit 90c2402
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/CapabilityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ export async function iOSCapabilities(
caps.firstMatch[0]['appium:deviceName'] = freeDevice.name;
caps.firstMatch[0]['appium:platformVersion'] = freeDevice.sdk;
caps.firstMatch[0]['appium:wdaLocalPort'] = freeDevice.wdaLocalPort;
if (!isCapabilityAlreadyPresent(caps, 'appium:mjpegServerPort')) {
caps.firstMatch[0]['appium:mjpegServerPort'] = !!options.liveVideo
? await getPort()
: undefined;
}
caps.firstMatch[0]['appium:mjpegServerPort'] = !!options.liveVideo
? freeDevice.mjpegServerPort
: undefined;
if (freeDevice.realDevice && !caps.firstMatch[0]['df:skipReport']) {
const wdaInfo = await prisma.appInformation.findFirst({
where: { fileName: 'wda-resign.ipa' },
Expand Down

0 comments on commit 90c2402

Please sign in to comment.