appium-xcuitest-driver 10.14.6 → 10.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +3 -8
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/biometric.d.ts.map +1 -1
- package/build/lib/commands/biometric.js +3 -4
- package/build/lib/commands/biometric.js.map +1 -1
- package/build/lib/commands/certificate.d.ts.map +1 -1
- package/build/lib/commands/certificate.js +3 -7
- package/build/lib/commands/certificate.js.map +1 -1
- package/build/lib/commands/condition.js +3 -8
- package/build/lib/commands/condition.js.map +1 -1
- package/build/lib/commands/content-size.d.ts.map +1 -1
- package/build/lib/commands/content-size.js +3 -3
- package/build/lib/commands/content-size.js.map +1 -1
- package/build/lib/commands/gesture.js +1 -1
- package/build/lib/commands/gesture.js.map +1 -1
- package/build/lib/commands/increase-contrast.d.ts.map +1 -1
- package/build/lib/commands/increase-contrast.js +4 -3
- package/build/lib/commands/increase-contrast.js.map +1 -1
- package/build/lib/commands/keychains.js +1 -1
- package/build/lib/commands/keychains.js.map +1 -1
- package/build/lib/commands/localization.js +1 -1
- package/build/lib/commands/localization.js.map +1 -1
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +2 -4
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/notifications.d.ts.map +1 -1
- package/build/lib/commands/notifications.js +3 -4
- package/build/lib/commands/notifications.js.map +1 -1
- package/build/lib/commands/pasteboard.d.ts.map +1 -1
- package/build/lib/commands/pasteboard.js +4 -4
- package/build/lib/commands/pasteboard.js.map +1 -1
- package/build/lib/commands/pcap.d.ts.map +1 -1
- package/build/lib/commands/pcap.js +1 -3
- package/build/lib/commands/pcap.js.map +1 -1
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +2 -5
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/simctl.d.ts.map +1 -1
- package/build/lib/commands/simctl.js +4 -5
- package/build/lib/commands/simctl.js.map +1 -1
- package/build/lib/commands/web.js +1 -1
- package/build/lib/commands/web.js.map +1 -1
- package/build/lib/index.d.ts +5 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/{index.js → lib/index.js} +2 -2
- package/build/lib/index.js.map +1 -0
- package/build/lib/utils.d.ts +12 -2
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +20 -5
- package/build/lib/utils.js.map +1 -1
- package/build/test/functional/basic/alert-e2e-specs.d.ts +2 -0
- package/build/test/functional/basic/alert-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/basic/alert-e2e-specs.js +129 -0
- package/build/test/functional/basic/alert-e2e-specs.js.map +1 -0
- package/build/test/functional/basic/basic-e2e-specs.d.ts +2 -0
- package/build/test/functional/basic/basic-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/basic/basic-e2e-specs.js +268 -0
- package/build/test/functional/basic/basic-e2e-specs.js.map +1 -0
- package/build/test/functional/basic/element-e2e-specs.d.ts +2 -0
- package/build/test/functional/basic/element-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/basic/element-e2e-specs.js +354 -0
- package/build/test/functional/basic/element-e2e-specs.js.map +1 -0
- package/build/test/functional/basic/find-e2e-specs.d.ts +2 -0
- package/build/test/functional/basic/find-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/basic/find-e2e-specs.js +434 -0
- package/build/test/functional/basic/find-e2e-specs.js.map +1 -0
- package/build/test/functional/basic/gesture-e2e-specs.d.ts +2 -0
- package/build/test/functional/basic/gesture-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/basic/gesture-e2e-specs.js +211 -0
- package/build/test/functional/basic/gesture-e2e-specs.js.map +1 -0
- package/build/test/functional/desired.d.ts +26 -0
- package/build/test/functional/desired.d.ts.map +1 -0
- package/build/test/functional/desired.js +124 -0
- package/build/test/functional/desired.js.map +1 -0
- package/build/test/functional/device/accessibility-e2e-specs.d.ts +2 -0
- package/build/test/functional/device/accessibility-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/device/accessibility-e2e-specs.js +117 -0
- package/build/test/functional/device/accessibility-e2e-specs.js.map +1 -0
- package/build/test/functional/device/file-movement-e2e-specs.d.ts +2 -0
- package/build/test/functional/device/file-movement-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/device/file-movement-e2e-specs.js +141 -0
- package/build/test/functional/device/file-movement-e2e-specs.js.map +1 -0
- package/build/test/functional/device/otherApps-e2e-specs.d.ts +2 -0
- package/build/test/functional/device/otherApps-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/device/otherApps-e2e-specs.js +66 -0
- package/build/test/functional/device/otherApps-e2e-specs.js.map +1 -0
- package/build/test/functional/device/passwords-e2e-specs.d.ts +2 -0
- package/build/test/functional/device/passwords-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/device/passwords-e2e-specs.js +91 -0
- package/build/test/functional/device/passwords-e2e-specs.js.map +1 -0
- package/build/test/functional/device/performance-e2e-specs.d.ts +2 -0
- package/build/test/functional/device/performance-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/device/performance-e2e-specs.js +72 -0
- package/build/test/functional/device/performance-e2e-specs.js.map +1 -0
- package/build/test/functional/driver/driver-e2e-specs.d.ts +2 -0
- package/build/test/functional/driver/driver-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/driver/driver-e2e-specs.js +296 -0
- package/build/test/functional/driver/driver-e2e-specs.js.map +1 -0
- package/build/test/functional/helpers/element.d.ts +4 -0
- package/build/test/functional/helpers/element.d.ts.map +1 -0
- package/build/test/functional/helpers/element.js +8 -0
- package/build/test/functional/helpers/element.js.map +1 -0
- package/build/test/functional/helpers/ports.d.ts +6 -0
- package/build/test/functional/helpers/ports.d.ts.map +1 -0
- package/build/test/functional/helpers/ports.js +29 -0
- package/build/test/functional/helpers/ports.js.map +1 -0
- package/build/test/functional/helpers/session.d.ts +7 -0
- package/build/test/functional/helpers/session.d.ts.map +1 -0
- package/build/test/functional/helpers/session.js +39 -0
- package/build/test/functional/helpers/session.js.map +1 -0
- package/build/test/functional/helpers/simulator.d.ts +12 -0
- package/build/test/functional/helpers/simulator.d.ts.map +1 -0
- package/build/test/functional/helpers/simulator.js +51 -0
- package/build/test/functional/helpers/simulator.js.map +1 -0
- package/build/test/functional/long/typing-stress-e2e-specs.d.ts +2 -0
- package/build/test/functional/long/typing-stress-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/long/typing-stress-e2e-specs.js +84 -0
- package/build/test/functional/long/typing-stress-e2e-specs.js.map +1 -0
- package/build/test/functional/tv/tvos-e2e-specs.d.ts +2 -0
- package/build/test/functional/tv/tvos-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/tv/tvos-e2e-specs.js +83 -0
- package/build/test/functional/tv/tvos-e2e-specs.js.map +1 -0
- package/build/test/functional/web/helpers.d.ts +28 -0
- package/build/test/functional/web/helpers.d.ts.map +1 -0
- package/build/test/functional/web/helpers.js +137 -0
- package/build/test/functional/web/helpers.js.map +1 -0
- package/build/test/functional/web/safari-alerts-e2e-specs.d.ts +2 -0
- package/build/test/functional/web/safari-alerts-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/web/safari-alerts-e2e-specs.js +109 -0
- package/build/test/functional/web/safari-alerts-e2e-specs.js.map +1 -0
- package/build/test/functional/web/safari-basic-e2e-specs.d.ts +2 -0
- package/build/test/functional/web/safari-basic-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/web/safari-basic-e2e-specs.js +425 -0
- package/build/test/functional/web/safari-basic-e2e-specs.js.map +1 -0
- package/build/test/functional/web/safari-execute-e2e-specs.d.ts +2 -0
- package/build/test/functional/web/safari-execute-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/web/safari-execute-e2e-specs.js +167 -0
- package/build/test/functional/web/safari-execute-e2e-specs.js.map +1 -0
- package/build/test/functional/web/safari-nativewebtap-e2e-specs.d.ts +2 -0
- package/build/test/functional/web/safari-nativewebtap-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/web/safari-nativewebtap-e2e-specs.js +323 -0
- package/build/test/functional/web/safari-nativewebtap-e2e-specs.js.map +1 -0
- package/build/test/functional/web/safari-ssl-e2e-specs.d.ts +2 -0
- package/build/test/functional/web/safari-ssl-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/web/safari-ssl-e2e-specs.js +131 -0
- package/build/test/functional/web/safari-ssl-e2e-specs.js.map +1 -0
- package/build/test/functional/web/safari-window-e2e-specs.d.ts +2 -0
- package/build/test/functional/web/safari-window-e2e-specs.d.ts.map +1 -0
- package/build/test/functional/web/safari-window-e2e-specs.js +263 -0
- package/build/test/functional/web/safari-window-e2e-specs.js.map +1 -0
- package/build/test/setup.d.ts +19 -0
- package/build/test/setup.d.ts.map +1 -0
- package/build/test/setup.js +117 -0
- package/build/test/setup.js.map +1 -0
- package/build/test/unit/app-infos-cache-specs.d.ts +2 -0
- package/build/test/unit/app-infos-cache-specs.d.ts.map +1 -0
- package/build/test/unit/app-infos-cache-specs.js +101 -0
- package/build/test/unit/app-infos-cache-specs.js.map +1 -0
- package/build/test/unit/app-utils-specs.d.ts +2 -0
- package/build/test/unit/app-utils-specs.d.ts.map +1 -0
- package/build/test/unit/app-utils-specs.js +131 -0
- package/build/test/unit/app-utils-specs.js.map +1 -0
- package/build/test/unit/commands/activeAppInfo-specs.d.ts +2 -0
- package/build/test/unit/commands/activeAppInfo-specs.d.ts.map +1 -0
- package/build/test/unit/commands/activeAppInfo-specs.js +74 -0
- package/build/test/unit/commands/activeAppInfo-specs.js.map +1 -0
- package/build/test/unit/commands/alert-specs.d.ts +2 -0
- package/build/test/unit/commands/alert-specs.d.ts.map +1 -0
- package/build/test/unit/commands/alert-specs.js +111 -0
- package/build/test/unit/commands/alert-specs.js.map +1 -0
- package/build/test/unit/commands/context-specs.d.ts +2 -0
- package/build/test/unit/commands/context-specs.d.ts.map +1 -0
- package/build/test/unit/commands/context-specs.js +119 -0
- package/build/test/unit/commands/context-specs.js.map +1 -0
- package/build/test/unit/commands/deviceinfo-specs.d.ts +2 -0
- package/build/test/unit/commands/deviceinfo-specs.d.ts.map +1 -0
- package/build/test/unit/commands/deviceinfo-specs.js +67 -0
- package/build/test/unit/commands/deviceinfo-specs.js.map +1 -0
- package/build/test/unit/commands/element-specs.d.ts +2 -0
- package/build/test/unit/commands/element-specs.d.ts.map +1 -0
- package/build/test/unit/commands/element-specs.js +419 -0
- package/build/test/unit/commands/element-specs.js.map +1 -0
- package/build/test/unit/commands/file-movement-specs.d.ts +2 -0
- package/build/test/unit/commands/file-movement-specs.d.ts.map +1 -0
- package/build/test/unit/commands/file-movement-specs.js +81 -0
- package/build/test/unit/commands/file-movement-specs.js.map +1 -0
- package/build/test/unit/commands/find-specs.d.ts +2 -0
- package/build/test/unit/commands/find-specs.d.ts.map +1 -0
- package/build/test/unit/commands/find-specs.js +106 -0
- package/build/test/unit/commands/find-specs.js.map +1 -0
- package/build/test/unit/commands/general-specs.d.ts +2 -0
- package/build/test/unit/commands/general-specs.d.ts.map +1 -0
- package/build/test/unit/commands/general-specs.js +154 -0
- package/build/test/unit/commands/general-specs.js.map +1 -0
- package/build/test/unit/commands/gesture-specs.d.ts +2 -0
- package/build/test/unit/commands/gesture-specs.d.ts.map +1 -0
- package/build/test/unit/commands/gesture-specs.js +263 -0
- package/build/test/unit/commands/gesture-specs.js.map +1 -0
- package/build/test/unit/commands/location-specs.d.ts +2 -0
- package/build/test/unit/commands/location-specs.d.ts.map +1 -0
- package/build/test/unit/commands/location-specs.js +141 -0
- package/build/test/unit/commands/location-specs.js.map +1 -0
- package/build/test/unit/commands/pasteboard-specs.d.ts +2 -0
- package/build/test/unit/commands/pasteboard-specs.d.ts.map +1 -0
- package/build/test/unit/commands/pasteboard-specs.js +65 -0
- package/build/test/unit/commands/pasteboard-specs.js.map +1 -0
- package/build/test/unit/commands/proxy-helper-specs.d.ts +2 -0
- package/build/test/unit/commands/proxy-helper-specs.d.ts.map +1 -0
- package/build/test/unit/commands/proxy-helper-specs.js +88 -0
- package/build/test/unit/commands/proxy-helper-specs.js.map +1 -0
- package/build/test/unit/commands/screenshots-specs.d.ts +2 -0
- package/build/test/unit/commands/screenshots-specs.d.ts.map +1 -0
- package/build/test/unit/commands/screenshots-specs.js +71 -0
- package/build/test/unit/commands/screenshots-specs.js.map +1 -0
- package/build/test/unit/commands/session-specs.d.ts +2 -0
- package/build/test/unit/commands/session-specs.d.ts.map +1 -0
- package/build/test/unit/commands/session-specs.js +49 -0
- package/build/test/unit/commands/session-specs.js.map +1 -0
- package/build/test/unit/commands/simctl-specs.d.ts +2 -0
- package/build/test/unit/commands/simctl-specs.d.ts.map +1 -0
- package/build/test/unit/commands/simctl-specs.js +54 -0
- package/build/test/unit/commands/simctl-specs.js.map +1 -0
- package/build/test/unit/commands/source-specs.d.ts +2 -0
- package/build/test/unit/commands/source-specs.d.ts.map +1 -0
- package/build/test/unit/commands/source-specs.js +55 -0
- package/build/test/unit/commands/source-specs.js.map +1 -0
- package/build/test/unit/commands/ssl-certificate-specs.d.ts +2 -0
- package/build/test/unit/commands/ssl-certificate-specs.d.ts.map +1 -0
- package/build/test/unit/commands/ssl-certificate-specs.js +16 -0
- package/build/test/unit/commands/ssl-certificate-specs.js.map +1 -0
- package/build/test/unit/commands/xctest-specs.d.ts +2 -0
- package/build/test/unit/commands/xctest-specs.d.ts.map +1 -0
- package/build/test/unit/commands/xctest-specs.js +116 -0
- package/build/test/unit/commands/xctest-specs.js.map +1 -0
- package/build/test/unit/css-converter-specs.d.ts +2 -0
- package/build/test/unit/css-converter-specs.d.ts.map +1 -0
- package/build/test/unit/css-converter-specs.js +99 -0
- package/build/test/unit/css-converter-specs.js.map +1 -0
- package/build/test/unit/device-connections-factory-specs.d.ts +2 -0
- package/build/test/unit/device-connections-factory-specs.d.ts.map +1 -0
- package/build/test/unit/device-connections-factory-specs.js +88 -0
- package/build/test/unit/device-connections-factory-specs.js.map +1 -0
- package/build/test/unit/driver-specs.d.ts +2 -0
- package/build/test/unit/driver-specs.d.ts.map +1 -0
- package/build/test/unit/driver-specs.js +358 -0
- package/build/test/unit/driver-specs.js.map +1 -0
- package/build/test/unit/helpers.d.ts +2 -0
- package/build/test/unit/helpers.d.ts.map +1 -0
- package/build/test/unit/helpers.js +5 -0
- package/build/test/unit/helpers.js.map +1 -0
- package/build/test/unit/language-specs.d.ts +2 -0
- package/build/test/unit/language-specs.d.ts.map +1 -0
- package/build/test/unit/language-specs.js +159 -0
- package/build/test/unit/language-specs.js.map +1 -0
- package/build/test/unit/logs-helpers-specs.d.ts +2 -0
- package/build/test/unit/logs-helpers-specs.d.ts.map +1 -0
- package/build/test/unit/logs-helpers-specs.js +71 -0
- package/build/test/unit/logs-helpers-specs.js.map +1 -0
- package/build/test/unit/processargs-specs.d.ts +2 -0
- package/build/test/unit/processargs-specs.d.ts.map +1 -0
- package/build/test/unit/processargs-specs.js +87 -0
- package/build/test/unit/processargs-specs.js.map +1 -0
- package/build/test/unit/real-device-management-specs.d.ts +2 -0
- package/build/test/unit/real-device-management-specs.d.ts.map +1 -0
- package/build/test/unit/real-device-management-specs.js +151 -0
- package/build/test/unit/real-device-management-specs.js.map +1 -0
- package/build/test/unit/simulator-management-specs.d.ts +2 -0
- package/build/test/unit/simulator-management-specs.d.ts.map +1 -0
- package/build/test/unit/simulator-management-specs.js +143 -0
- package/build/test/unit/simulator-management-specs.js.map +1 -0
- package/build/test/unit/utils-specs.d.ts +2 -0
- package/build/test/unit/utils-specs.d.ts.map +1 -0
- package/build/test/unit/utils-specs.js +132 -0
- package/build/test/unit/utils-specs.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/lib/commands/app-management.ts +3 -11
- package/lib/commands/biometric.ts +4 -7
- package/lib/commands/certificate.ts +3 -7
- package/lib/commands/condition.ts +4 -10
- package/lib/commands/content-size.ts +4 -6
- package/lib/commands/gesture.ts +2 -2
- package/lib/commands/increase-contrast.ts +5 -6
- package/lib/commands/keychains.ts +2 -2
- package/lib/commands/localization.ts +2 -2
- package/lib/commands/memory.ts +2 -7
- package/lib/commands/notifications.ts +3 -5
- package/lib/commands/pasteboard.ts +5 -6
- package/lib/commands/pcap.ts +2 -4
- package/lib/commands/permissions.ts +3 -8
- package/lib/commands/simctl.ts +4 -5
- package/lib/commands/web.ts +2 -2
- package/lib/index.ts +5 -0
- package/lib/utils.ts +20 -4
- package/npm-shrinkwrap.json +8 -8
- package/package.json +4 -7
- package/build/index.d.ts +0 -5
- package/index.js +0 -7
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
onPostConfigureApp,
|
|
10
10
|
onDownloadApp,
|
|
11
11
|
} from '../app-utils';
|
|
12
|
+
import {requireRealDevice} from '../utils';
|
|
12
13
|
import type {XCUITestDriver} from '../driver';
|
|
13
14
|
import type {AppState} from './enum';
|
|
14
15
|
import type {Simulator} from 'appium-ios-simulator';
|
|
15
|
-
import type {RealDevice} from '../device/real-device-management';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Installs the given application to the device under test.
|
|
@@ -185,11 +185,7 @@ export async function mobileKillApp(
|
|
|
185
185
|
this: XCUITestDriver,
|
|
186
186
|
bundleId: string,
|
|
187
187
|
): Promise<boolean> {
|
|
188
|
-
|
|
189
|
-
throw new errors.UnsupportedOperationError('A real device is required');
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
return await (this.device as RealDevice).terminateApp(bundleId, String(this.opts.platformVersion));
|
|
188
|
+
return await requireRealDevice(this, 'Killing app').terminateApp(bundleId, String(this.opts.platformVersion));
|
|
193
189
|
}
|
|
194
190
|
|
|
195
191
|
/**
|
|
@@ -310,11 +306,7 @@ export async function mobileListApps(
|
|
|
310
306
|
this: XCUITestDriver,
|
|
311
307
|
applicationType: 'User' | 'System' = 'User',
|
|
312
308
|
): Promise<Record<string, any>[]> {
|
|
313
|
-
|
|
314
|
-
throw new errors.NotImplementedError(`This extension is only supported on real devices`);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
const service = await services.startInstallationProxyService(this.device.udid);
|
|
309
|
+
const service = await services.startInstallationProxyService(requireRealDevice(this, 'Listing apps').udid);
|
|
318
310
|
try {
|
|
319
311
|
return await service.listApplications({applicationType});
|
|
320
312
|
} finally {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {requireSimulator} from '../utils';
|
|
2
2
|
import type {XCUITestDriver} from '../driver';
|
|
3
3
|
import type {BiometricFeature} from './types';
|
|
4
|
-
import type {Simulator} from 'appium-ios-simulator';
|
|
5
|
-
|
|
6
|
-
const assertSimulator = (driver: XCUITestDriver): Simulator => _assertSimulator.call(driver, 'Biometric enrollment');
|
|
7
4
|
|
|
8
5
|
/**
|
|
9
6
|
* Enrolls biometric authentication on a simulated device.
|
|
@@ -16,7 +13,7 @@ export async function mobileEnrollBiometric(
|
|
|
16
13
|
this: XCUITestDriver,
|
|
17
14
|
isEnabled: boolean = true,
|
|
18
15
|
): Promise<void> {
|
|
19
|
-
await
|
|
16
|
+
await requireSimulator(this, 'Biometric enrollment').enrollBiometric(isEnabled);
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
/**
|
|
@@ -34,7 +31,7 @@ export async function mobileSendBiometricMatch(
|
|
|
34
31
|
type: BiometricFeature = 'touchId',
|
|
35
32
|
match: boolean = true,
|
|
36
33
|
): Promise<void> {
|
|
37
|
-
await
|
|
34
|
+
await requireSimulator(this, 'Sending biometric match').sendBiometricMatch(match, type);
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
/**
|
|
@@ -47,6 +44,6 @@ export async function mobileSendBiometricMatch(
|
|
|
47
44
|
export async function mobileIsBiometricEnrolled(
|
|
48
45
|
this: XCUITestDriver,
|
|
49
46
|
): Promise<boolean> {
|
|
50
|
-
return await
|
|
47
|
+
return await requireSimulator(this, 'Checking biometric enrollment').isBiometricEnrolled();
|
|
51
48
|
}
|
|
52
49
|
|
|
@@ -8,7 +8,7 @@ import http from 'http';
|
|
|
8
8
|
import {exec} from 'teen_process';
|
|
9
9
|
import {findAPortNotInUse, checkPortStatus} from 'portscanner';
|
|
10
10
|
import {Pyidevice} from '../device/clients/py-ios-device-client';
|
|
11
|
-
import {
|
|
11
|
+
import {requireRealDevice} from '../utils';
|
|
12
12
|
import type {Simulator} from 'appium-ios-simulator';
|
|
13
13
|
import type {XCUITestDriver} from '../driver';
|
|
14
14
|
import type {CertificateList} from './types';
|
|
@@ -252,9 +252,7 @@ export async function mobileInstallCertificate(
|
|
|
252
252
|
* @group Real Device Only
|
|
253
253
|
*/
|
|
254
254
|
export async function mobileRemoveCertificate(this: XCUITestDriver, name: string): Promise<string> {
|
|
255
|
-
|
|
256
|
-
throw new errors.NotImplementedError('This extension is only supported on real devices');
|
|
257
|
-
}
|
|
255
|
+
requireRealDevice(this, 'Removing certificate');
|
|
258
256
|
if (!this.opts.udid) {
|
|
259
257
|
throw new Error('udid capability is required');
|
|
260
258
|
}
|
|
@@ -276,9 +274,7 @@ export async function mobileRemoveCertificate(this: XCUITestDriver, name: string
|
|
|
276
274
|
* @throws {Error} If attempting to list certificates for a simulated device or if `py-ios-device` is not installed
|
|
277
275
|
*/
|
|
278
276
|
export async function mobileListCertificates(this: XCUITestDriver): Promise<CertificateList> {
|
|
279
|
-
|
|
280
|
-
throw new errors.NotImplementedError('This extension is only supported on real devices');
|
|
281
|
-
}
|
|
277
|
+
requireRealDevice(this, 'Listing certificates');
|
|
282
278
|
if (!this.opts.udid) {
|
|
283
279
|
throw new Error('udid capability is required');
|
|
284
280
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {INSTRUMENT_CHANNEL, services} from 'appium-ios-device';
|
|
2
2
|
import _ from 'lodash';
|
|
3
|
-
import { isIos18OrNewer } from '../utils';
|
|
3
|
+
import { isIos18OrNewer, requireRealDevice } from '../utils';
|
|
4
4
|
import type {XCUITestDriver} from '../driver';
|
|
5
5
|
import type {DVTServiceWithConnection} from 'appium-ios-remotexpc';
|
|
6
6
|
import type {Condition} from './types';
|
|
@@ -12,7 +12,7 @@ import type {Condition} from './types';
|
|
|
12
12
|
* @see {@link https://help.apple.com/xcode/mac/current/#/dev308429d42}
|
|
13
13
|
*/
|
|
14
14
|
export async function listConditionInducers(this: XCUITestDriver): Promise<Condition[]> {
|
|
15
|
-
|
|
15
|
+
requireRealDevice(this, 'Condition inducer');
|
|
16
16
|
|
|
17
17
|
if (isIos18OrNewer(this.opts)) {
|
|
18
18
|
const dvtConnection = await startRemoteXPC(this.device.udid);
|
|
@@ -63,7 +63,7 @@ export async function enableConditionInducer(
|
|
|
63
63
|
conditionID: string,
|
|
64
64
|
profileID: string,
|
|
65
65
|
): Promise<boolean> {
|
|
66
|
-
|
|
66
|
+
requireRealDevice(this, 'Condition inducer');
|
|
67
67
|
|
|
68
68
|
if (isIos18OrNewer(this.opts)) {
|
|
69
69
|
if (this._remoteXPCConditionInducerConnection) {
|
|
@@ -118,7 +118,7 @@ export async function enableConditionInducer(
|
|
|
118
118
|
* @see {@link https://help.apple.com/xcode/mac/current/#/dev308429d42}
|
|
119
119
|
*/
|
|
120
120
|
export async function disableConditionInducer(this: XCUITestDriver): Promise<boolean> {
|
|
121
|
-
|
|
121
|
+
requireRealDevice(this, 'Condition inducer');
|
|
122
122
|
|
|
123
123
|
if (isIos18OrNewer(this.opts)) {
|
|
124
124
|
if (!this._remoteXPCConditionInducerConnection) {
|
|
@@ -161,12 +161,6 @@ export async function disableConditionInducer(this: XCUITestDriver): Promise<boo
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
function requireConditionInducerCompatibleDevice(this: XCUITestDriver): void {
|
|
165
|
-
if (this.isSimulator()) {
|
|
166
|
-
throw this.log.errorWithException('Condition inducer only works on real devices');
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
164
|
async function startRemoteXPC(udid: string): Promise<DVTServiceWithConnection> {
|
|
171
165
|
const {Services} = await import('appium-ios-remotexpc');
|
|
172
166
|
return Services.startDVTService(udid);
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import {
|
|
2
|
+
import {requireSimulator} from '../utils';
|
|
3
3
|
import { errors } from 'appium/driver';
|
|
4
4
|
import type {XCUITestDriver} from '../driver';
|
|
5
5
|
import type {ContentSizeAction, ContentSizeResult} from './types';
|
|
6
|
-
import type {Simulator} from 'appium-ios-simulator';
|
|
7
|
-
|
|
8
|
-
const assertSimulator = (driver: XCUITestDriver): Simulator => _assertSimulator.call(driver, 'Content size ui command');
|
|
9
6
|
|
|
10
7
|
const CONTENT_SIZE = [
|
|
11
8
|
'extra-small',
|
|
@@ -45,7 +42,7 @@ export async function mobileSetContentSize(
|
|
|
45
42
|
);
|
|
46
43
|
}
|
|
47
44
|
|
|
48
|
-
await
|
|
45
|
+
await requireSimulator(this, 'Setting content size').setContentSize(size);
|
|
49
46
|
}
|
|
50
47
|
|
|
51
48
|
/**
|
|
@@ -62,6 +59,7 @@ export async function mobileSetContentSize(
|
|
|
62
59
|
export async function mobileGetContentSize(
|
|
63
60
|
this: XCUITestDriver,
|
|
64
61
|
): Promise<ContentSizeResult> {
|
|
65
|
-
return await
|
|
62
|
+
return await requireSimulator(this, 'Getting content size')
|
|
63
|
+
.getContentSize() as ContentSizeResult;
|
|
66
64
|
}
|
|
67
65
|
|
package/lib/commands/gesture.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {errors} from 'appium/driver';
|
|
2
2
|
import {util} from 'appium/support';
|
|
3
3
|
import _ from 'lodash';
|
|
4
|
-
import {
|
|
4
|
+
import {requireSimulator} from '../utils';
|
|
5
5
|
import type {XCUITestDriver} from '../driver';
|
|
6
6
|
import type {ActionSequence, Element} from '@appium/types';
|
|
7
7
|
import type {Direction} from './types';
|
|
@@ -15,7 +15,7 @@ const SUPPORTED_GESTURE_DIRECTIONS = ['up', 'down', 'left', 'right'] as const;
|
|
|
15
15
|
* @throws {Error} If called on a real device
|
|
16
16
|
*/
|
|
17
17
|
export async function mobileShake(this: XCUITestDriver): Promise<void> {
|
|
18
|
-
await
|
|
18
|
+
await requireSimulator(this, 'Shake device').shake();
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import {
|
|
2
|
+
import {requireSimulator} from '../utils';
|
|
3
3
|
import { errors } from 'appium/driver';
|
|
4
4
|
import type {XCUITestDriver} from '../driver';
|
|
5
5
|
import type {IncreaseContrastAction, IncreaseContrastResult} from './types';
|
|
6
|
-
import type {Simulator} from 'appium-ios-simulator';
|
|
7
|
-
|
|
8
|
-
const assertSimulator = (driver: XCUITestDriver): Simulator => _assertSimulator.call(driver, 'Content size ui command');
|
|
9
6
|
|
|
10
7
|
const INCREASE_CONTRAST_CONFIG = [
|
|
11
8
|
'enabled',
|
|
@@ -30,7 +27,8 @@ export async function mobileSetIncreaseContrast(
|
|
|
30
27
|
);
|
|
31
28
|
}
|
|
32
29
|
|
|
33
|
-
await
|
|
30
|
+
await requireSimulator(this, 'Setting increase contrast')
|
|
31
|
+
.setIncreaseContrast(increaseContrast);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
/**
|
|
@@ -44,6 +42,7 @@ export async function mobileSetIncreaseContrast(
|
|
|
44
42
|
export async function mobileGetIncreaseContrast(
|
|
45
43
|
this: XCUITestDriver,
|
|
46
44
|
): Promise<IncreaseContrastResult> {
|
|
47
|
-
return await
|
|
45
|
+
return await requireSimulator(this, 'Getting increase contrast')
|
|
46
|
+
.getIncreaseContrast() as IncreaseContrastResult;
|
|
48
47
|
}
|
|
49
48
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {requireSimulator} from '../utils';
|
|
2
2
|
import type {XCUITestDriver} from '../driver';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -11,6 +11,6 @@ import type {XCUITestDriver} from '../driver';
|
|
|
11
11
|
export async function mobileClearKeychains(
|
|
12
12
|
this: XCUITestDriver,
|
|
13
13
|
): Promise<void> {
|
|
14
|
-
await
|
|
14
|
+
await requireSimulator(this, 'Keychain modification').clearKeychains();
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {requireSimulator} from '../utils';
|
|
2
2
|
import type {XCUITestDriver} from '../driver';
|
|
3
3
|
import type {KeyboardOptions, LanguageOptions, LocaleOptions} from './types';
|
|
4
4
|
|
|
@@ -33,7 +33,7 @@ export async function mobileConfigureLocalization(
|
|
|
33
33
|
// Assign skipSyncUiDialogTranslation: true option in order to avoid shutting down the WDA session
|
|
34
34
|
localizationOptions.language = Object.assign(language, {skipSyncUiDialogTranslation: true});
|
|
35
35
|
}
|
|
36
|
-
return await
|
|
36
|
+
return await requireSimulator(this, 'Localization configuration')
|
|
37
37
|
.configureLocalization(localizationOptions);
|
|
38
38
|
}
|
|
39
39
|
|
package/lib/commands/memory.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import { errors } from 'appium/driver';
|
|
3
|
+
import {requireRealDevice} from '../utils';
|
|
3
4
|
import type {XCUITestDriver} from '../driver';
|
|
4
|
-
import type {RealDevice} from '../device/real-device-management';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Simulates Low Memory warning on the given application
|
|
@@ -14,12 +14,7 @@ export async function mobileSendMemoryWarning(
|
|
|
14
14
|
this: XCUITestDriver,
|
|
15
15
|
bundleId: string,
|
|
16
16
|
): Promise<void> {
|
|
17
|
-
|
|
18
|
-
throw new Error('Memory warning simulation is only supported on real devices');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const device = this.device as RealDevice;
|
|
22
|
-
|
|
17
|
+
const device = requireRealDevice(this, 'Memory warning simulation');
|
|
23
18
|
const appInfos = await device.devicectl.listApps(bundleId);
|
|
24
19
|
if (_.isEmpty(appInfos)) {
|
|
25
20
|
throw new errors.InvalidArgumentError(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {errors} from 'appium/driver';
|
|
2
2
|
import _ from 'lodash';
|
|
3
|
+
import {requireSimulator} from '../utils';
|
|
3
4
|
import type {XCUITestDriver} from '../driver';
|
|
4
5
|
import type {PushPayload, NotificationType} from './types';
|
|
5
|
-
import type {Simulator} from 'appium-ios-simulator';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Simulates push notification delivery to a simulated device.
|
|
@@ -20,9 +20,7 @@ export async function mobilePushNotification(
|
|
|
20
20
|
bundleId: string,
|
|
21
21
|
payload: PushPayload,
|
|
22
22
|
): Promise<void> {
|
|
23
|
-
|
|
24
|
-
throw new Error('This extension only works on Simulator');
|
|
25
|
-
}
|
|
23
|
+
const simulator = requireSimulator(this, 'Push notification');
|
|
26
24
|
|
|
27
25
|
if (!bundleId) {
|
|
28
26
|
throw new errors.InvalidArgumentError(
|
|
@@ -41,7 +39,7 @@ export async function mobilePushNotification(
|
|
|
41
39
|
`Got ${JSON.stringify(payload.aps)} instead`,
|
|
42
40
|
);
|
|
43
41
|
}
|
|
44
|
-
await
|
|
42
|
+
await simulator.pushNotification({
|
|
45
43
|
...payload,
|
|
46
44
|
'Simulator Target Bundle': bundleId,
|
|
47
45
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import {
|
|
2
|
+
import { requireSimulator } from '../utils';
|
|
3
3
|
import type {XCUITestDriver} from '../driver';
|
|
4
|
-
import type {Simulator} from 'appium-ios-simulator';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Sets the Simulator's pasteboard content to the given value.
|
|
@@ -17,12 +16,12 @@ export async function mobileSetPasteboard(
|
|
|
17
16
|
content: string,
|
|
18
17
|
encoding: BufferEncoding = 'utf8',
|
|
19
18
|
): Promise<void> {
|
|
20
|
-
|
|
19
|
+
const simulator = requireSimulator(this, 'Setting pasteboard content');
|
|
21
20
|
if (!_.isString(content)) {
|
|
22
21
|
// can be empty string
|
|
23
22
|
throw new Error('Pasteboard content is mandatory to set');
|
|
24
23
|
}
|
|
25
|
-
await
|
|
24
|
+
await simulator.simctl.setPasteboard(content, encoding);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
/**
|
|
@@ -38,7 +37,7 @@ export async function mobileGetPasteboard(
|
|
|
38
37
|
this: XCUITestDriver,
|
|
39
38
|
encoding: BufferEncoding = 'utf8',
|
|
40
39
|
): Promise<string> {
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
return await requireSimulator(this, 'Getting pasteboard content')
|
|
41
|
+
.simctl.getPasteboard(encoding);
|
|
43
42
|
}
|
|
44
43
|
|
package/lib/commands/pcap.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Pyidevice } from '../device/clients/py-ios-device-client';
|
|
2
2
|
import {fs, tempDir, util} from 'appium/support';
|
|
3
|
-
import {encodeBase64OrUpload} from '../utils';
|
|
3
|
+
import {encodeBase64OrUpload, requireRealDevice} from '../utils';
|
|
4
4
|
import {errors} from 'appium/driver';
|
|
5
5
|
import type {XCUITestDriver} from '../driver';
|
|
6
6
|
import type {SubProcess} from 'teen_process';
|
|
@@ -85,9 +85,7 @@ export async function mobileStartPcap(
|
|
|
85
85
|
timeLimitSec = 180,
|
|
86
86
|
forceRestart = false,
|
|
87
87
|
): Promise<void> {
|
|
88
|
-
|
|
89
|
-
throw this.log.errorWithException('Network traffic capture only works on real devices');
|
|
90
|
-
}
|
|
88
|
+
requireRealDevice(this, 'Network traffic capture');
|
|
91
89
|
|
|
92
90
|
if (this._trafficCapture?.isCapturing()) {
|
|
93
91
|
this.log.info(`There is an active traffic capture process`);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import {PermissionService} from './enum';
|
|
3
|
-
import {
|
|
3
|
+
import {requireSimulator} from '../utils';
|
|
4
4
|
import type {XCUITestDriver} from '../driver';
|
|
5
5
|
import type {PermissionState} from './types';
|
|
6
|
-
import type {Simulator} from 'appium-ios-simulator';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* Resets the given permission for the active application under test.
|
|
@@ -58,9 +57,8 @@ export async function mobileGetPermission(
|
|
|
58
57
|
if (!service) {
|
|
59
58
|
throw new Error(`The 'service' option is expected to be present`);
|
|
60
59
|
}
|
|
61
|
-
assertSimulator(this);
|
|
62
60
|
|
|
63
|
-
return await (this
|
|
61
|
+
return await requireSimulator(this, 'Getting permission').getPermission(
|
|
64
62
|
bundleId, String(service)
|
|
65
63
|
) as PermissionState;
|
|
66
64
|
}
|
|
@@ -82,9 +80,6 @@ export async function mobileSetPermissions(
|
|
|
82
80
|
if (!_.isPlainObject(access)) {
|
|
83
81
|
throw new Error(`The 'access' option is expected to be a map`);
|
|
84
82
|
}
|
|
85
|
-
assertSimulator(this);
|
|
86
83
|
|
|
87
|
-
await (this
|
|
84
|
+
await requireSimulator(this, 'Setting permissions').setPermissions(bundleId, access);
|
|
88
85
|
}
|
|
89
|
-
|
|
90
|
-
const assertSimulator = (driver: XCUITestDriver) => _assertSimulator.call(driver, 'Permission-related operations');
|
package/lib/commands/simctl.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { errors } from 'appium/driver';
|
|
2
|
+
import {requireSimulator} from '../utils';
|
|
2
3
|
import type {XCUITestDriver} from '../driver';
|
|
3
4
|
import type {Simulator} from 'appium-ios-simulator';
|
|
4
5
|
|
|
@@ -56,12 +57,10 @@ export async function mobileSimctl(
|
|
|
56
57
|
args: string[] = [],
|
|
57
58
|
timeout?: number,
|
|
58
59
|
): Promise<SimctlExecResponse> {
|
|
59
|
-
|
|
60
|
-
throw new errors.UnsupportedOperationError(`Only simulator is supported.`);
|
|
61
|
-
}
|
|
60
|
+
const simulator: Simulator = requireSimulator(this, 'simctl command');
|
|
62
61
|
|
|
63
62
|
if (!this.opts.udid) {
|
|
64
|
-
throw new errors.InvalidArgumentError(`Unknown
|
|
63
|
+
throw new errors.InvalidArgumentError(`Unknown simulator UDID: '${this.opts.udid}'`);
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
if (!(SUBCOMMANDS_HAS_DEVICE as readonly string[]).includes(command)) {
|
|
@@ -69,7 +68,7 @@ export async function mobileSimctl(
|
|
|
69
68
|
`Available subcommands are ${SUBCOMMANDS_HAS_DEVICE.join(',')}`);
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
const result = await
|
|
71
|
+
const result = await simulator.simctl.exec(
|
|
73
72
|
command as typeof SUBCOMMANDS_HAS_DEVICE[number],
|
|
74
73
|
{args: [this.opts.udid, ...args], timeout}
|
|
75
74
|
);
|
package/lib/commands/web.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {timing, util} from 'appium/support';
|
|
|
3
3
|
import {retryInterval} from 'asyncbox';
|
|
4
4
|
import B, {TimeoutError, AggregateError} from 'bluebird';
|
|
5
5
|
import _ from 'lodash';
|
|
6
|
-
import {
|
|
6
|
+
import {requireSimulator} from '../utils';
|
|
7
7
|
import type {XCUITestDriver} from '../driver';
|
|
8
8
|
import type {Element, Cookie, Size, Position, Rect} from '@appium/types';
|
|
9
9
|
import type {AtomsElement} from './types';
|
|
@@ -1014,7 +1014,7 @@ export async function mobileCalibrateWebToRealCoordinatesTranslation(this: XCUIT
|
|
|
1014
1014
|
* @throws {errors.InvalidArgumentError} If the preferences argument is invalid
|
|
1015
1015
|
*/
|
|
1016
1016
|
export async function mobileUpdateSafariPreferences(this: XCUITestDriver, preferences: Record<string, any>): Promise<void> {
|
|
1017
|
-
const simulator =
|
|
1017
|
+
const simulator = requireSimulator(this, 'Updating Safari preferences');
|
|
1018
1018
|
if (!_.isPlainObject(preferences)) {
|
|
1019
1019
|
throw new errors.InvalidArgumentError('"preferences" argument must be a valid object');
|
|
1020
1020
|
}
|
package/lib/index.ts
ADDED
package/lib/utils.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {PLATFORM_NAME_TVOS, PLATFORM_NAME_IOS} from './desired-caps';
|
|
|
13
13
|
import type {XCUITestDriverOpts, XCUITestDriver} from './driver';
|
|
14
14
|
import type {XcodeVersion} from 'appium-xcode';
|
|
15
15
|
import type {Simulator} from 'appium-ios-simulator';
|
|
16
|
+
import type {RealDevice} from './device/real-device-management';
|
|
16
17
|
import type {HTTPHeaders} from '@appium/types';
|
|
17
18
|
import type {Method} from 'axios';
|
|
18
19
|
|
|
@@ -423,16 +424,31 @@ export function requireArgs(argNames: string | string[], opts: Record<string, an
|
|
|
423
424
|
}
|
|
424
425
|
|
|
425
426
|
/**
|
|
426
|
-
*
|
|
427
|
+
* Requires that the given driver is running on a Simulator and return
|
|
427
428
|
* the simlator instance.
|
|
428
429
|
*
|
|
430
|
+
* @param driver - The driver instance
|
|
429
431
|
* @param action - Description of action
|
|
430
432
|
*/
|
|
431
|
-
export function
|
|
432
|
-
if (!
|
|
433
|
+
export function requireSimulator(driver: XCUITestDriver, action: string): Simulator {
|
|
434
|
+
if (!driver.isSimulator()) {
|
|
433
435
|
throw new Error(`${_.upperFirst(action)} can only be performed on Simulator`);
|
|
434
436
|
}
|
|
435
|
-
return
|
|
437
|
+
return driver.device as Simulator;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Requires that the given driver is running on a real device and return
|
|
442
|
+
* the real device instance.
|
|
443
|
+
*
|
|
444
|
+
* @param driver - The driver instance
|
|
445
|
+
* @param action - Description of action
|
|
446
|
+
*/
|
|
447
|
+
export function requireRealDevice(driver: XCUITestDriver, action: string): RealDevice {
|
|
448
|
+
if (!driver.isRealDevice()) {
|
|
449
|
+
throw new Error(`${_.upperFirst(action)} can only be performed on a real device`);
|
|
450
|
+
}
|
|
451
|
+
return driver.device as RealDevice;
|
|
436
452
|
}
|
|
437
453
|
|
|
438
454
|
/**
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-xcuitest-driver",
|
|
3
|
-
"version": "10.14.
|
|
3
|
+
"version": "10.14.8",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-xcuitest-driver",
|
|
9
|
-
"version": "10.14.
|
|
9
|
+
"version": "10.14.8",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@appium/strongbox": "^1.0.0-rc.1",
|
|
@@ -692,9 +692,9 @@
|
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
694
|
"node_modules/appium-ios-remotexpc": {
|
|
695
|
-
"version": "0.
|
|
696
|
-
"resolved": "https://registry.npmjs.org/appium-ios-remotexpc/-/appium-ios-remotexpc-0.
|
|
697
|
-
"integrity": "sha512-
|
|
695
|
+
"version": "0.25.0",
|
|
696
|
+
"resolved": "https://registry.npmjs.org/appium-ios-remotexpc/-/appium-ios-remotexpc-0.25.0.tgz",
|
|
697
|
+
"integrity": "sha512-inc/mZc3Dz7mtBj/CWC+m3NlWB2a14aZ4Ug6onM/7vI80N3YRsOyaSfYk1HCLwacstvDJhjEoA6bqi5LMtVwYA==",
|
|
698
698
|
"license": "Apache-2.0",
|
|
699
699
|
"optional": true,
|
|
700
700
|
"dependencies": {
|
|
@@ -2439,9 +2439,9 @@
|
|
|
2439
2439
|
"license": "MIT"
|
|
2440
2440
|
},
|
|
2441
2441
|
"node_modules/iconv-lite": {
|
|
2442
|
-
"version": "0.7.
|
|
2443
|
-
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.
|
|
2444
|
-
"integrity": "sha512-
|
|
2442
|
+
"version": "0.7.2",
|
|
2443
|
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
|
|
2444
|
+
"integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
|
|
2445
2445
|
"license": "MIT",
|
|
2446
2446
|
"dependencies": {
|
|
2447
2447
|
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"xcuitest",
|
|
9
9
|
"xctest"
|
|
10
10
|
],
|
|
11
|
-
"version": "10.14.
|
|
11
|
+
"version": "10.14.8",
|
|
12
12
|
"author": "Appium Contributors",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"repository": {
|
|
@@ -61,24 +61,21 @@
|
|
|
61
61
|
]
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
"main": "./build/index.js",
|
|
64
|
+
"main": "./build/lib/index.js",
|
|
65
65
|
"bin": {},
|
|
66
66
|
"directories": {
|
|
67
67
|
"lib": "lib"
|
|
68
68
|
},
|
|
69
69
|
"files": [
|
|
70
|
-
"index.js",
|
|
71
70
|
"lib",
|
|
72
71
|
"scripts",
|
|
73
|
-
"build
|
|
74
|
-
"build/index.d.ts",
|
|
75
|
-
"build/lib",
|
|
72
|
+
"build",
|
|
76
73
|
"!.DS_Store",
|
|
77
74
|
"CHANGELOG.md",
|
|
78
75
|
"LICENSE",
|
|
79
76
|
"npm-shrinkwrap.json"
|
|
80
77
|
],
|
|
81
|
-
"types": "./build/index.d.ts",
|
|
78
|
+
"types": "./build/lib/index.d.ts",
|
|
82
79
|
"dependencies": {
|
|
83
80
|
"@appium/strongbox": "^1.0.0-rc.1",
|
|
84
81
|
"@colors/colors": "^1.6.0",
|
package/build/index.d.ts
DELETED