@limrun/appium-xcuitest-driver 10.4.3-lim.1
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 +2600 -0
- package/LICENSE +201 -0
- package/README.md +55 -0
- package/build/index.d.ts +5 -0
- package/build/index.js +41 -0
- package/build/lib/app-infos-cache.d.ts +62 -0
- package/build/lib/app-infos-cache.d.ts.map +1 -0
- package/build/lib/app-infos-cache.js +180 -0
- package/build/lib/app-infos-cache.js.map +1 -0
- package/build/lib/app-utils.d.ts +89 -0
- package/build/lib/app-utils.d.ts.map +1 -0
- package/build/lib/app-utils.js +657 -0
- package/build/lib/app-utils.js.map +1 -0
- package/build/lib/commands/active-app-info.d.ts +9 -0
- package/build/lib/commands/active-app-info.d.ts.map +1 -0
- package/build/lib/commands/active-app-info.js +14 -0
- package/build/lib/commands/active-app-info.js.map +1 -0
- package/build/lib/commands/advanced-battery-types.d.ts +444 -0
- package/build/lib/commands/advanced-battery-types.d.ts.map +1 -0
- package/build/lib/commands/advanced-battery-types.js +8 -0
- package/build/lib/commands/advanced-battery-types.js.map +1 -0
- package/build/lib/commands/alert.d.ts +45 -0
- package/build/lib/commands/alert.d.ts.map +1 -0
- package/build/lib/commands/alert.js +87 -0
- package/build/lib/commands/alert.js.map +1 -0
- package/build/lib/commands/app-management.d.ts +153 -0
- package/build/lib/commands/app-management.d.ts.map +1 -0
- package/build/lib/commands/app-management.js +323 -0
- package/build/lib/commands/app-management.js.map +1 -0
- package/build/lib/commands/app-strings.d.ts +16 -0
- package/build/lib/commands/app-strings.d.ts.map +1 -0
- package/build/lib/commands/app-strings.js +30 -0
- package/build/lib/commands/app-strings.js.map +1 -0
- package/build/lib/commands/appearance.d.ts +22 -0
- package/build/lib/commands/appearance.d.ts.map +1 -0
- package/build/lib/commands/appearance.js +74 -0
- package/build/lib/commands/appearance.js.map +1 -0
- package/build/lib/commands/audit.d.ts +43 -0
- package/build/lib/commands/audit.d.ts.map +1 -0
- package/build/lib/commands/audit.js +31 -0
- package/build/lib/commands/audit.js.map +1 -0
- package/build/lib/commands/battery.d.ts +13 -0
- package/build/lib/commands/battery.d.ts.map +1 -0
- package/build/lib/commands/battery.js +49 -0
- package/build/lib/commands/battery.js.map +1 -0
- package/build/lib/commands/bidi/constants.d.ts +6 -0
- package/build/lib/commands/bidi/constants.d.ts.map +1 -0
- package/build/lib/commands/bidi/constants.js +10 -0
- package/build/lib/commands/bidi/constants.js.map +1 -0
- package/build/lib/commands/bidi/models.d.ts +9 -0
- package/build/lib/commands/bidi/models.d.ts.map +1 -0
- package/build/lib/commands/bidi/models.js +54 -0
- package/build/lib/commands/bidi/models.js.map +1 -0
- package/build/lib/commands/bidi/types.d.ts +26 -0
- package/build/lib/commands/bidi/types.d.ts.map +1 -0
- package/build/lib/commands/bidi/types.js +4 -0
- package/build/lib/commands/bidi/types.js.map +1 -0
- package/build/lib/commands/biometric.d.ts +32 -0
- package/build/lib/commands/biometric.d.ts.map +1 -0
- package/build/lib/commands/biometric.js +54 -0
- package/build/lib/commands/biometric.js.map +1 -0
- package/build/lib/commands/certificate.d.ts +50 -0
- package/build/lib/commands/certificate.d.ts.map +1 -0
- package/build/lib/commands/certificate.js +454 -0
- package/build/lib/commands/certificate.js.map +1 -0
- package/build/lib/commands/clipboard.d.ts +21 -0
- package/build/lib/commands/clipboard.d.ts.map +1 -0
- package/build/lib/commands/clipboard.js +36 -0
- package/build/lib/commands/clipboard.js.map +1 -0
- package/build/lib/commands/condition.d.ts +102 -0
- package/build/lib/commands/condition.d.ts.map +1 -0
- package/build/lib/commands/condition.js +146 -0
- package/build/lib/commands/condition.js.map +1 -0
- package/build/lib/commands/content-size.d.ts +30 -0
- package/build/lib/commands/content-size.d.ts.map +1 -0
- package/build/lib/commands/content-size.js +67 -0
- package/build/lib/commands/content-size.js.map +1 -0
- package/build/lib/commands/context.d.ts +191 -0
- package/build/lib/commands/context.d.ts.map +1 -0
- package/build/lib/commands/context.js +625 -0
- package/build/lib/commands/context.js.map +1 -0
- package/build/lib/commands/deviceInfo.d.ts +12 -0
- package/build/lib/commands/deviceInfo.d.ts.map +1 -0
- package/build/lib/commands/deviceInfo.js +25 -0
- package/build/lib/commands/deviceInfo.js.map +1 -0
- package/build/lib/commands/element.d.ts +108 -0
- package/build/lib/commands/element.d.ts.map +1 -0
- package/build/lib/commands/element.js +395 -0
- package/build/lib/commands/element.js.map +1 -0
- package/build/lib/commands/enum.d.ts +105 -0
- package/build/lib/commands/enum.d.ts.map +1 -0
- package/build/lib/commands/enum.js +113 -0
- package/build/lib/commands/enum.js.map +1 -0
- package/build/lib/commands/execute.d.ts +33 -0
- package/build/lib/commands/execute.d.ts.map +1 -0
- package/build/lib/commands/execute.js +142 -0
- package/build/lib/commands/execute.js.map +1 -0
- package/build/lib/commands/file-movement.d.ts +90 -0
- package/build/lib/commands/file-movement.d.ts.map +1 -0
- package/build/lib/commands/file-movement.js +477 -0
- package/build/lib/commands/file-movement.js.map +1 -0
- package/build/lib/commands/find.d.ts +21 -0
- package/build/lib/commands/find.d.ts.map +1 -0
- package/build/lib/commands/find.js +199 -0
- package/build/lib/commands/find.js.map +1 -0
- package/build/lib/commands/general.d.ts +137 -0
- package/build/lib/commands/general.d.ts.map +1 -0
- package/build/lib/commands/general.js +270 -0
- package/build/lib/commands/general.js.map +1 -0
- package/build/lib/commands/geolocation.d.ts +57 -0
- package/build/lib/commands/geolocation.d.ts.map +1 -0
- package/build/lib/commands/geolocation.js +58 -0
- package/build/lib/commands/geolocation.js.map +1 -0
- package/build/lib/commands/gesture.d.ts +283 -0
- package/build/lib/commands/gesture.d.ts.map +1 -0
- package/build/lib/commands/gesture.js +565 -0
- package/build/lib/commands/gesture.js.map +1 -0
- package/build/lib/commands/hid-event.d.ts +2773 -0
- package/build/lib/commands/hid-event.d.ts.map +1 -0
- package/build/lib/commands/hid-event.js +1633 -0
- package/build/lib/commands/hid-event.js.map +1 -0
- package/build/lib/commands/increase-contrast.d.ts +24 -0
- package/build/lib/commands/increase-contrast.d.ts.map +1 -0
- package/build/lib/commands/increase-contrast.js +49 -0
- package/build/lib/commands/increase-contrast.js.map +1 -0
- package/build/lib/commands/iohid.d.ts +1372 -0
- package/build/lib/commands/iohid.d.ts.map +1 -0
- package/build/lib/commands/iohid.js +63 -0
- package/build/lib/commands/iohid.js.map +1 -0
- package/build/lib/commands/keyboard.d.ts +32 -0
- package/build/lib/commands/keyboard.d.ts.map +1 -0
- package/build/lib/commands/keyboard.js +67 -0
- package/build/lib/commands/keyboard.js.map +1 -0
- package/build/lib/commands/keychains.d.ts +10 -0
- package/build/lib/commands/keychains.d.ts.map +1 -0
- package/build/lib/commands/keychains.js +22 -0
- package/build/lib/commands/keychains.js.map +1 -0
- package/build/lib/commands/localization.d.ts +17 -0
- package/build/lib/commands/localization.d.ts.map +1 -0
- package/build/lib/commands/localization.js +34 -0
- package/build/lib/commands/localization.js.map +1 -0
- package/build/lib/commands/location.d.ts +40 -0
- package/build/lib/commands/location.d.ts.map +1 -0
- package/build/lib/commands/location.js +121 -0
- package/build/lib/commands/location.js.map +1 -0
- package/build/lib/commands/lock.d.ts +23 -0
- package/build/lib/commands/lock.d.ts.map +1 -0
- package/build/lib/commands/lock.js +49 -0
- package/build/lib/commands/lock.js.map +1 -0
- package/build/lib/commands/log.d.ts +68 -0
- package/build/lib/commands/log.d.ts.map +1 -0
- package/build/lib/commands/log.js +287 -0
- package/build/lib/commands/log.js.map +1 -0
- package/build/lib/commands/memory.d.ts +11 -0
- package/build/lib/commands/memory.d.ts.map +1 -0
- package/build/lib/commands/memory.js +49 -0
- package/build/lib/commands/memory.js.map +1 -0
- package/build/lib/commands/navigation.d.ts +44 -0
- package/build/lib/commands/navigation.d.ts.map +1 -0
- package/build/lib/commands/navigation.js +121 -0
- package/build/lib/commands/navigation.js.map +1 -0
- package/build/lib/commands/notifications.d.ts +28 -0
- package/build/lib/commands/notifications.d.ts.map +1 -0
- package/build/lib/commands/notifications.js +64 -0
- package/build/lib/commands/notifications.js.map +1 -0
- package/build/lib/commands/pasteboard.d.ts +23 -0
- package/build/lib/commands/pasteboard.d.ts.map +1 -0
- package/build/lib/commands/pasteboard.js +43 -0
- package/build/lib/commands/pasteboard.js.map +1 -0
- package/build/lib/commands/pcap.d.ts +54 -0
- package/build/lib/commands/pcap.d.ts.map +1 -0
- package/build/lib/commands/pcap.js +149 -0
- package/build/lib/commands/pcap.js.map +1 -0
- package/build/lib/commands/performance.d.ts +85 -0
- package/build/lib/commands/performance.d.ts.map +1 -0
- package/build/lib/commands/performance.js +331 -0
- package/build/lib/commands/performance.js.map +1 -0
- package/build/lib/commands/permissions.d.ts +36 -0
- package/build/lib/commands/permissions.d.ts.map +1 -0
- package/build/lib/commands/permissions.js +80 -0
- package/build/lib/commands/permissions.js.map +1 -0
- package/build/lib/commands/proxy-helper.d.ts +15 -0
- package/build/lib/commands/proxy-helper.d.ts.map +1 -0
- package/build/lib/commands/proxy-helper.js +117 -0
- package/build/lib/commands/proxy-helper.js.map +1 -0
- package/build/lib/commands/record-audio.d.ts +69 -0
- package/build/lib/commands/record-audio.d.ts.map +1 -0
- package/build/lib/commands/record-audio.js +228 -0
- package/build/lib/commands/record-audio.js.map +1 -0
- package/build/lib/commands/recordscreen.d.ts +89 -0
- package/build/lib/commands/recordscreen.d.ts.map +1 -0
- package/build/lib/commands/recordscreen.js +326 -0
- package/build/lib/commands/recordscreen.js.map +1 -0
- package/build/lib/commands/screenshots.d.ts +16 -0
- package/build/lib/commands/screenshots.d.ts.map +1 -0
- package/build/lib/commands/screenshots.js +129 -0
- package/build/lib/commands/screenshots.js.map +1 -0
- package/build/lib/commands/simctl.d.ts +27 -0
- package/build/lib/commands/simctl.d.ts.map +1 -0
- package/build/lib/commands/simctl.js +65 -0
- package/build/lib/commands/simctl.js.map +1 -0
- package/build/lib/commands/source.d.ts +16 -0
- package/build/lib/commands/source.d.ts.map +1 -0
- package/build/lib/commands/source.js +128 -0
- package/build/lib/commands/source.js.map +1 -0
- package/build/lib/commands/timeouts.d.ts +53 -0
- package/build/lib/commands/timeouts.d.ts.map +1 -0
- package/build/lib/commands/timeouts.js +71 -0
- package/build/lib/commands/timeouts.js.map +1 -0
- package/build/lib/commands/types.d.ts +539 -0
- package/build/lib/commands/types.d.ts.map +1 -0
- package/build/lib/commands/types.js +3 -0
- package/build/lib/commands/types.js.map +1 -0
- package/build/lib/commands/web.d.ts +297 -0
- package/build/lib/commands/web.d.ts.map +1 -0
- package/build/lib/commands/web.js +1029 -0
- package/build/lib/commands/web.js.map +1 -0
- package/build/lib/commands/xctest-record-screen.d.ts +92 -0
- package/build/lib/commands/xctest-record-screen.d.ts.map +1 -0
- package/build/lib/commands/xctest-record-screen.js +193 -0
- package/build/lib/commands/xctest-record-screen.js.map +1 -0
- package/build/lib/commands/xctest.d.ts +71 -0
- package/build/lib/commands/xctest.d.ts.map +1 -0
- package/build/lib/commands/xctest.js +257 -0
- package/build/lib/commands/xctest.js.map +1 -0
- package/build/lib/css-converter.d.ts +10 -0
- package/build/lib/css-converter.d.ts.map +1 -0
- package/build/lib/css-converter.js +258 -0
- package/build/lib/css-converter.js.map +1 -0
- package/build/lib/desired-caps.d.ts +506 -0
- package/build/lib/desired-caps.d.ts.map +1 -0
- package/build/lib/desired-caps.js +400 -0
- package/build/lib/desired-caps.js.map +1 -0
- package/build/lib/device-connections-factory.d.ts +13 -0
- package/build/lib/device-connections-factory.d.ts.map +1 -0
- package/build/lib/device-connections-factory.js +244 -0
- package/build/lib/device-connections-factory.js.map +1 -0
- package/build/lib/device-log/helpers.d.ts +10 -0
- package/build/lib/device-log/helpers.d.ts.map +1 -0
- package/build/lib/device-log/helpers.js +37 -0
- package/build/lib/device-log/helpers.js.map +1 -0
- package/build/lib/device-log/ios-crash-log.d.ts +34 -0
- package/build/lib/device-log/ios-crash-log.d.ts.map +1 -0
- package/build/lib/device-log/ios-crash-log.js +141 -0
- package/build/lib/device-log/ios-crash-log.js.map +1 -0
- package/build/lib/device-log/ios-device-log.d.ts +19 -0
- package/build/lib/device-log/ios-device-log.d.ts.map +1 -0
- package/build/lib/device-log/ios-device-log.js +42 -0
- package/build/lib/device-log/ios-device-log.js.map +1 -0
- package/build/lib/device-log/ios-log.d.ts +24 -0
- package/build/lib/device-log/ios-log.d.ts.map +1 -0
- package/build/lib/device-log/ios-log.js +50 -0
- package/build/lib/device-log/ios-log.js.map +1 -0
- package/build/lib/device-log/ios-performance-log.d.ts +18 -0
- package/build/lib/device-log/ios-performance-log.d.ts.map +1 -0
- package/build/lib/device-log/ios-performance-log.js +43 -0
- package/build/lib/device-log/ios-performance-log.js.map +1 -0
- package/build/lib/device-log/ios-simulator-log.d.ts +38 -0
- package/build/lib/device-log/ios-simulator-log.d.ts.map +1 -0
- package/build/lib/device-log/ios-simulator-log.js +184 -0
- package/build/lib/device-log/ios-simulator-log.js.map +1 -0
- package/build/lib/device-log/line-consuming-log.d.ts +9 -0
- package/build/lib/device-log/line-consuming-log.d.ts.map +1 -0
- package/build/lib/device-log/line-consuming-log.js +16 -0
- package/build/lib/device-log/line-consuming-log.js.map +1 -0
- package/build/lib/device-log/safari-console-log.d.ts +67 -0
- package/build/lib/device-log/safari-console-log.d.ts.map +1 -0
- package/build/lib/device-log/safari-console-log.js +81 -0
- package/build/lib/device-log/safari-console-log.js.map +1 -0
- package/build/lib/device-log/safari-network-log.d.ts +75 -0
- package/build/lib/device-log/safari-network-log.d.ts.map +1 -0
- package/build/lib/device-log/safari-network-log.js +47 -0
- package/build/lib/device-log/safari-network-log.js.map +1 -0
- package/build/lib/doctor/checks.d.ts +3 -0
- package/build/lib/doctor/checks.d.ts.map +1 -0
- package/build/lib/doctor/checks.js +39 -0
- package/build/lib/doctor/checks.js.map +1 -0
- package/build/lib/doctor/optional-checks.d.ts +46 -0
- package/build/lib/doctor/optional-checks.d.ts.map +1 -0
- package/build/lib/doctor/optional-checks.js +129 -0
- package/build/lib/doctor/optional-checks.js.map +1 -0
- package/build/lib/doctor/required-checks.d.ts +42 -0
- package/build/lib/doctor/required-checks.d.ts.map +1 -0
- package/build/lib/doctor/required-checks.js +94 -0
- package/build/lib/doctor/required-checks.js.map +1 -0
- package/build/lib/doctor/utils.d.ts +8 -0
- package/build/lib/doctor/utils.d.ts.map +1 -0
- package/build/lib/doctor/utils.js +21 -0
- package/build/lib/doctor/utils.js.map +1 -0
- package/build/lib/driver.d.ts +2429 -0
- package/build/lib/driver.d.ts.map +1 -0
- package/build/lib/driver.js +1967 -0
- package/build/lib/driver.js.map +1 -0
- package/build/lib/execute-method-map.d.ts +552 -0
- package/build/lib/execute-method-map.d.ts.map +1 -0
- package/build/lib/execute-method-map.js +586 -0
- package/build/lib/execute-method-map.js.map +1 -0
- package/build/lib/ios-fs-helpers.d.ts +75 -0
- package/build/lib/ios-fs-helpers.d.ts.map +1 -0
- package/build/lib/ios-fs-helpers.js +370 -0
- package/build/lib/ios-fs-helpers.js.map +1 -0
- package/build/lib/ios-generic-simulators.d.ts +6 -0
- package/build/lib/ios-generic-simulators.d.ts.map +1 -0
- package/build/lib/ios-generic-simulators.js +14 -0
- package/build/lib/ios-generic-simulators.js.map +1 -0
- package/build/lib/logger.d.ts +3 -0
- package/build/lib/logger.d.ts.map +1 -0
- package/build/lib/logger.js +6 -0
- package/build/lib/logger.js.map +1 -0
- package/build/lib/method-map.d.ts +229 -0
- package/build/lib/method-map.d.ts.map +1 -0
- package/build/lib/method-map.js +200 -0
- package/build/lib/method-map.js.map +1 -0
- package/build/lib/real-device-clients/base-device-client.d.ts +22 -0
- package/build/lib/real-device-clients/base-device-client.d.ts.map +1 -0
- package/build/lib/real-device-clients/base-device-client.js +14 -0
- package/build/lib/real-device-clients/base-device-client.js.map +1 -0
- package/build/lib/real-device-clients/py-ios-device-client.d.ts +21 -0
- package/build/lib/real-device-clients/py-ios-device-client.d.ts.map +1 -0
- package/build/lib/real-device-clients/py-ios-device-client.js +125 -0
- package/build/lib/real-device-clients/py-ios-device-client.js.map +1 -0
- package/build/lib/real-device-management.d.ts +53 -0
- package/build/lib/real-device-management.d.ts.map +1 -0
- package/build/lib/real-device-management.js +128 -0
- package/build/lib/real-device-management.js.map +1 -0
- package/build/lib/real-device.d.ts +112 -0
- package/build/lib/real-device.d.ts.map +1 -0
- package/build/lib/real-device.js +352 -0
- package/build/lib/real-device.js.map +1 -0
- package/build/lib/simulator-management.d.ts +96 -0
- package/build/lib/simulator-management.d.ts.map +1 -0
- package/build/lib/simulator-management.js +278 -0
- package/build/lib/simulator-management.js.map +1 -0
- package/build/lib/stubs.d.ts +3 -0
- package/build/lib/stubs.d.ts.map +1 -0
- package/build/lib/stubs.js +3 -0
- package/build/lib/stubs.js.map +1 -0
- package/build/lib/types.d.ts +31 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js +3 -0
- package/build/lib/types.js.map +1 -0
- package/build/lib/utils.d.ts +191 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js +549 -0
- package/build/lib/utils.js.map +1 -0
- package/build/lib/xcrun.d.ts +3 -0
- package/build/lib/xcrun.d.ts.map +1 -0
- package/build/lib/xcrun.js +17 -0
- package/build/lib/xcrun.js.map +1 -0
- package/index.js +7 -0
- package/lib/app-infos-cache.js +187 -0
- package/lib/app-utils.js +710 -0
- package/lib/commands/active-app-info.js +12 -0
- package/lib/commands/advanced-battery-types.ts +454 -0
- package/lib/commands/alert.js +88 -0
- package/lib/commands/app-management.js +346 -0
- package/lib/commands/app-strings.js +30 -0
- package/lib/commands/appearance.js +71 -0
- package/lib/commands/audit.js +31 -0
- package/lib/commands/battery.js +45 -0
- package/lib/commands/bidi/constants.ts +6 -0
- package/lib/commands/bidi/models.ts +55 -0
- package/lib/commands/bidi/types.ts +31 -0
- package/lib/commands/biometric.js +53 -0
- package/lib/commands/certificate.js +497 -0
- package/lib/commands/clipboard.js +35 -0
- package/lib/commands/condition.js +155 -0
- package/lib/commands/content-size.js +68 -0
- package/lib/commands/context.js +705 -0
- package/lib/commands/deviceInfo.js +27 -0
- package/lib/commands/element.js +423 -0
- package/lib/commands/enum.ts +108 -0
- package/lib/commands/execute.js +153 -0
- package/lib/commands/file-movement.js +510 -0
- package/lib/commands/find.js +205 -0
- package/lib/commands/general.js +278 -0
- package/lib/commands/geolocation.js +56 -0
- package/lib/commands/gesture.js +596 -0
- package/lib/commands/hid-event.ts +1634 -0
- package/lib/commands/increase-contrast.js +50 -0
- package/lib/commands/iohid.js +64 -0
- package/lib/commands/keyboard.js +62 -0
- package/lib/commands/keychains.js +18 -0
- package/lib/commands/localization.js +30 -0
- package/lib/commands/location.js +131 -0
- package/lib/commands/lock.js +46 -0
- package/lib/commands/log.js +327 -0
- package/lib/commands/memory.js +51 -0
- package/lib/commands/navigation.js +125 -0
- package/lib/commands/notifications.js +66 -0
- package/lib/commands/pasteboard.js +42 -0
- package/lib/commands/pcap.js +168 -0
- package/lib/commands/performance.js +392 -0
- package/lib/commands/permissions.js +85 -0
- package/lib/commands/proxy-helper.js +122 -0
- package/lib/commands/record-audio.js +264 -0
- package/lib/commands/recordscreen.js +391 -0
- package/lib/commands/screenshots.js +137 -0
- package/lib/commands/simctl.js +71 -0
- package/lib/commands/source.js +131 -0
- package/lib/commands/timeouts.js +68 -0
- package/lib/commands/types.ts +648 -0
- package/lib/commands/web.js +1113 -0
- package/lib/commands/xctest-record-screen.js +204 -0
- package/lib/commands/xctest.js +285 -0
- package/lib/css-converter.js +311 -0
- package/lib/desired-caps.js +396 -0
- package/lib/device-connections-factory.js +269 -0
- package/lib/device-log/helpers.ts +40 -0
- package/lib/device-log/ios-crash-log.ts +166 -0
- package/lib/device-log/ios-device-log.ts +51 -0
- package/lib/device-log/ios-log.ts +70 -0
- package/lib/device-log/ios-performance-log.ts +50 -0
- package/lib/device-log/ios-simulator-log.ts +202 -0
- package/lib/device-log/line-consuming-log.ts +16 -0
- package/lib/device-log/safari-console-log.ts +117 -0
- package/lib/device-log/safari-network-log.ts +120 -0
- package/lib/doctor/checks.ts +3 -0
- package/lib/doctor/optional-checks.ts +173 -0
- package/lib/doctor/required-checks.ts +120 -0
- package/lib/doctor/utils.ts +18 -0
- package/lib/driver.js +2316 -0
- package/lib/execute-method-map.ts +585 -0
- package/lib/ios-fs-helpers.js +355 -0
- package/lib/ios-generic-simulators.js +11 -0
- package/lib/logger.js +5 -0
- package/lib/method-map.js +196 -0
- package/lib/real-device-clients/base-device-client.ts +34 -0
- package/lib/real-device-clients/py-ios-device-client.ts +149 -0
- package/lib/real-device-management.js +133 -0
- package/lib/real-device.js +347 -0
- package/lib/simulator-management.js +324 -0
- package/lib/stubs.ts +3 -0
- package/lib/types.ts +33 -0
- package/lib/utils.js +551 -0
- package/lib/xcrun.js +16 -0
- package/package.json +175 -0
- package/scripts/build-docs.js +56 -0
- package/scripts/build-wda.js +42 -0
- package/scripts/download-wda-sim.mjs +68 -0
- package/scripts/image-mounter.mjs +239 -0
- package/scripts/open-wda.mjs +15 -0
- package/scripts/tunnel-creation.mjs +359 -0
- package/scripts/utils.js +16 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,qFAJW,MAAM,GAAC,OAAO,sBA0BxB;AAED;;;;;;GAMG;AACH,+EAHa,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAC,CAAC,CA0BnC;6BAGY,OAAO,WAAW,EAAE,cAAc;oBAClC,OAAO,SAAS,EAAE,KAAK"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.mobileSetAppearance = mobileSetAppearance;
|
|
7
|
+
exports.mobileGetAppearance = mobileGetAppearance;
|
|
8
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
9
|
+
const support_1 = require("appium/support");
|
|
10
|
+
/**
|
|
11
|
+
* Set the device's UI appearance style
|
|
12
|
+
*
|
|
13
|
+
* @since iOS 12.0
|
|
14
|
+
* @param {'dark'|'light'} style - The appearance style to set
|
|
15
|
+
* @throws {Error} if the current platform does not support UI appearance changes
|
|
16
|
+
* @this {XCUITestDriver}
|
|
17
|
+
*/
|
|
18
|
+
async function mobileSetAppearance(style) {
|
|
19
|
+
if (!['light', 'dark'].includes(lodash_1.default.toLower(style))) {
|
|
20
|
+
throw new Error(`The 'style' value is expected to equal either 'light' or 'dark'`);
|
|
21
|
+
}
|
|
22
|
+
if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '<', '12.0')) {
|
|
23
|
+
throw new Error('Changing appearance is only supported since iOS 12');
|
|
24
|
+
}
|
|
25
|
+
if (this.isSimulator()) {
|
|
26
|
+
try {
|
|
27
|
+
return void (await /** @type {import('../driver').Simulator} */ (this.device).setAppearance(style));
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
this.log.debug(e.stack);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
try {
|
|
34
|
+
return void (await this.proxyCommand('/wda/device/appearance', 'POST', { name: style }, false));
|
|
35
|
+
}
|
|
36
|
+
catch (e) {
|
|
37
|
+
this.log.debug(e.stack);
|
|
38
|
+
}
|
|
39
|
+
// Fall back to the ugly Siri workaround if the current SDK is too old
|
|
40
|
+
await this.mobileSiriCommand(`Turn ${lodash_1.default.toLower(style) === 'dark' ? 'on' : 'off'} dark mode`);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get the device's UI appearance style.
|
|
44
|
+
*
|
|
45
|
+
* @since Xcode SDK 11
|
|
46
|
+
* @returns {Promise<{style: Style}>}
|
|
47
|
+
* @this {XCUITestDriver}
|
|
48
|
+
*/
|
|
49
|
+
async function mobileGetAppearance() {
|
|
50
|
+
if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '<', '12.0')) {
|
|
51
|
+
return { style: 'unsupported' };
|
|
52
|
+
}
|
|
53
|
+
/** @type {Style|undefined} */
|
|
54
|
+
let style;
|
|
55
|
+
if (this.isSimulator()) {
|
|
56
|
+
try {
|
|
57
|
+
style = /** @type {Style} */ (await /** @type {import('../driver').Simulator} */ (this.device).getAppearance());
|
|
58
|
+
}
|
|
59
|
+
catch { }
|
|
60
|
+
}
|
|
61
|
+
if (!style) {
|
|
62
|
+
style = /** @type {Style} */ (
|
|
63
|
+
/** @type {any} */ (await this.proxyCommand('/wda/device/info', 'GET'))
|
|
64
|
+
?.userInterfaceStyle ?? 'unknown');
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
style,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
72
|
+
* @typedef {import('./types').Style} Style
|
|
73
|
+
*/
|
|
74
|
+
//# sourceMappingURL=appearance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appearance.js","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":";;;;;AAWA,kDAsBC;AASD,kDAuBC;AAjED,oDAAuB;AACvB,4CAAoC;AAEpC;;;;;;;GAOG;AACI,KAAK,UAAU,mBAAmB,CAAC,KAAK;IAC7C,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,gBAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACrF,CAAC;IACD,IAAI,cAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC;QACzF,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IAED,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;QACvB,IAAI,CAAC;YACH,OAAO,KAAK,CAAC,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QACtG,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,IAAI,CAAC;QACH,OAAO,KAAK,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAChG,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;IACD,sEAAsE;IACtE,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,gBAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC;AAC/F,CAAC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,mBAAmB;IACvC,IAAI,cAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC;QACzF,OAAO,EAAC,KAAK,EAAE,aAAa,EAAC,CAAC;IAChC,CAAC;IAED,8BAA8B;IAC9B,IAAI,KAAK,CAAC;IACV,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;QACvB,IAAI,CAAC;YACH,KAAK,GAAG,oBAAoB,CAAC,CAC3B,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CACjF,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACZ,CAAC;IACD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,KAAK,GAAG,oBAAoB,CAAC;QAC3B,kBAAkB,CAAC,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;YACrE,EAAE,kBAAkB,IAAI,SAAS,CACpC,CAAC;IACJ,CAAC;IACD,OAAO;QACL,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;;GAGG"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} AccessibilityAuditItem
|
|
3
|
+
* @property {string} detailedDescription The detailed description of the found accessibility issue.
|
|
4
|
+
* @property {string} compactDescription The compact description of the found accessibility issue.
|
|
5
|
+
* @property {string|number} auditType The name of the audit type this issue belongs to. Could be
|
|
6
|
+
* a number if the type name is unknown.
|
|
7
|
+
* @property {string} element The description of the element this issue was found for.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Performs accessibility audit of the current application according to the given type or multiple types.
|
|
11
|
+
*
|
|
12
|
+
* @since Xcode 15/iOS 17
|
|
13
|
+
* @param {string[]?} auditTypes - One or more type names to perform the audit for.
|
|
14
|
+
* The full list of available names could be found at
|
|
15
|
+
* https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
|
|
16
|
+
* If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
|
|
17
|
+
*
|
|
18
|
+
* @returns {Promise<AccessibilityAuditItem[]>} List of found issues or an empty list
|
|
19
|
+
*
|
|
20
|
+
* @this {XCUITestDriver}
|
|
21
|
+
*/
|
|
22
|
+
export function mobilePerformAccessibilityAudit(this: import("../driver").XCUITestDriver, auditTypes: string[] | null): Promise<AccessibilityAuditItem[]>;
|
|
23
|
+
export type AccessibilityAuditItem = {
|
|
24
|
+
/**
|
|
25
|
+
* The detailed description of the found accessibility issue.
|
|
26
|
+
*/
|
|
27
|
+
detailedDescription: string;
|
|
28
|
+
/**
|
|
29
|
+
* The compact description of the found accessibility issue.
|
|
30
|
+
*/
|
|
31
|
+
compactDescription: string;
|
|
32
|
+
/**
|
|
33
|
+
* The name of the audit type this issue belongs to. Could be
|
|
34
|
+
* a number if the type name is unknown.
|
|
35
|
+
*/
|
|
36
|
+
auditType: string | number;
|
|
37
|
+
/**
|
|
38
|
+
* The description of the element this issue was found for.
|
|
39
|
+
*/
|
|
40
|
+
element: string;
|
|
41
|
+
};
|
|
42
|
+
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
43
|
+
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AACH,sGATW,MAAM,EAAE,OAAC,GAKP,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAQ7C;;;;;yBAxBa,MAAM;;;;wBACN,MAAM;;;;;eACN,MAAM,GAAC,MAAM;;;;aAEb,MAAM;;6BAuBP,OAAO,WAAW,EAAE,cAAc"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object} AccessibilityAuditItem
|
|
4
|
+
* @property {string} detailedDescription The detailed description of the found accessibility issue.
|
|
5
|
+
* @property {string} compactDescription The compact description of the found accessibility issue.
|
|
6
|
+
* @property {string|number} auditType The name of the audit type this issue belongs to. Could be
|
|
7
|
+
* a number if the type name is unknown.
|
|
8
|
+
* @property {string} element The description of the element this issue was found for.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.mobilePerformAccessibilityAudit = mobilePerformAccessibilityAudit;
|
|
12
|
+
/**
|
|
13
|
+
* Performs accessibility audit of the current application according to the given type or multiple types.
|
|
14
|
+
*
|
|
15
|
+
* @since Xcode 15/iOS 17
|
|
16
|
+
* @param {string[]?} auditTypes - One or more type names to perform the audit for.
|
|
17
|
+
* The full list of available names could be found at
|
|
18
|
+
* https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
|
|
19
|
+
* If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
|
|
20
|
+
*
|
|
21
|
+
* @returns {Promise<AccessibilityAuditItem[]>} List of found issues or an empty list
|
|
22
|
+
*
|
|
23
|
+
* @this {XCUITestDriver}
|
|
24
|
+
*/
|
|
25
|
+
async function mobilePerformAccessibilityAudit(auditTypes) {
|
|
26
|
+
return /** @type {AccessibilityAuditItem[]} */ (await this.proxyCommand('/wda/performAccessibilityAudit', 'POST', { auditTypes }));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
30
|
+
*/
|
|
31
|
+
//# sourceMappingURL=audit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAeH,0EAIC;AAjBD;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,+BAA+B,CAAC,UAAU;IAC9D,OAAO,uCAAuC,CAAC,CAC7C,MAAM,IAAI,CAAC,YAAY,CAAC,gCAAgC,EAAE,MAAM,EAAE,EAAC,UAAU,EAAC,CAAC,CAChF,CAAC;AACJ,CAAC;AAED;;GAEG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the battery information from the device under test.
|
|
3
|
+
*
|
|
4
|
+
* This endpoint only returns reliable result on real devices.
|
|
5
|
+
*
|
|
6
|
+
* @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
|
|
7
|
+
* @this {import('../driver').XCUITestDriver}
|
|
8
|
+
*/
|
|
9
|
+
export function mobileGetBatteryInfo(this: import("../driver").XCUITestDriver): Promise<import("./types").BatteryInfo & {
|
|
10
|
+
advanced: Record<string, any>;
|
|
11
|
+
}>;
|
|
12
|
+
export type BatteryInfo = import("./types").BatteryInfo;
|
|
13
|
+
//# sourceMappingURL=battery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,gFAHa,OAAO,CAAC,OAAO,SAAS,EAAE,WAAW,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,CAAC,CAgCpF;0BAGY,OAAO,SAAS,EAAE,WAAW"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.mobileGetBatteryInfo = mobileGetBatteryInfo;
|
|
7
|
+
const logger_js_1 = __importDefault(require("../logger.js"));
|
|
8
|
+
const utils_js_1 = require("../utils.js");
|
|
9
|
+
/**
|
|
10
|
+
* Reads the battery information from the device under test.
|
|
11
|
+
*
|
|
12
|
+
* This endpoint only returns reliable result on real devices.
|
|
13
|
+
*
|
|
14
|
+
* @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
|
|
15
|
+
* @this {import('../driver').XCUITestDriver}
|
|
16
|
+
*/
|
|
17
|
+
async function mobileGetBatteryInfo() {
|
|
18
|
+
let batteryInfoFromShimService;
|
|
19
|
+
if ((0, utils_js_1.isIos18OrNewer)(this.opts) && this.isRealDevice()) {
|
|
20
|
+
let remoteXPCConnection;
|
|
21
|
+
try {
|
|
22
|
+
const { Services } = await import('appium-ios-remotexpc');
|
|
23
|
+
let { diagnosticsService, remoteXPC } = await Services.startDiagnosticsService(this.device.udid);
|
|
24
|
+
remoteXPCConnection = remoteXPC;
|
|
25
|
+
batteryInfoFromShimService = await diagnosticsService.ioregistry({
|
|
26
|
+
ioClass: 'IOPMPowerSource',
|
|
27
|
+
returnRawJson: true,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
catch (err) {
|
|
31
|
+
logger_js_1.default.error(`Failed to get battery info from DiagnosticsService: ${err.message}`);
|
|
32
|
+
}
|
|
33
|
+
finally {
|
|
34
|
+
if (remoteXPCConnection) {
|
|
35
|
+
logger_js_1.default.info(`Closing remoteXPC connection for device ${this.device.udid}`);
|
|
36
|
+
await remoteXPCConnection.close();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const batteryInfoFromWda = /** @type {import('./types').BatteryInfo}} */ (await this.proxyCommand('/wda/batteryInfo', 'GET'));
|
|
41
|
+
return {
|
|
42
|
+
...batteryInfoFromWda,
|
|
43
|
+
advanced: batteryInfoFromShimService || {},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @typedef {import('./types').BatteryInfo} BatteryInfo
|
|
48
|
+
*/
|
|
49
|
+
//# sourceMappingURL=battery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"battery.js","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":";;;;;AAWA,oDA6BC;AAxCD,6DAA+B;AAC/B,0CAA6C;AAE7C;;;;;;;GAOG;AACI,KAAK,UAAU,oBAAoB;IACxC,IAAI,0BAA0B,CAAC;IAC/B,IAAI,IAAA,yBAAc,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;QACrD,IAAI,mBAAmB,CAAC;QACxB,IAAI,CAAC;YACH,MAAM,EAAC,QAAQ,EAAC,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;YACxD,IAAI,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,MAAM,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACjG,mBAAmB,GAAG,SAAS,CAAC;YAChC,0BAA0B,GAAG,MAAM,kBAAkB,CAAC,UAAU,CAAC;gBAC/D,OAAO,EAAE,iBAAiB;gBAC1B,aAAa,EAAE,IAAI;aACpB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,mBAAG,CAAC,KAAK,CAAC,uDAAuD,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QAClF,CAAC;gBAAS,CAAC;YACT,IAAI,mBAAmB,EAAE,CAAC;gBACxB,mBAAG,CAAC,IAAI,CAAC,2CAA2C,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBACxE,MAAM,mBAAmB,CAAC,KAAK,EAAE,CAAC;YACpC,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,kBAAkB,GAAG,6CAA6C,CAAC,CACvE,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,EAAE,KAAK,CAAC,CACnD,CAAC;IACF,OAAO;QACL,GAAG,kBAAkB;QACrB,QAAQ,EAAE,0BAA0B,IAAI,EAAE;KAC3C,CAAC;AACJ,CAAC;AAED;;GAEG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const BIDI_EVENT_NAME = "bidiEvent";
|
|
2
|
+
export declare const CONTEXT_UPDATED_EVENT = "appium:xcuitest.contextUpdated";
|
|
3
|
+
/** @deprecated Use {@link CONTEXT_UPDATED_EVENT} instead */
|
|
4
|
+
export declare const CONTEXT_UPDATED_EVENT_OBSOLETE = "appium.contextUpdated";
|
|
5
|
+
export declare const LOG_ENTRY_ADDED_EVENT = "log.entryAdded";
|
|
6
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bidi/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C,eAAO,MAAM,qBAAqB,mCAAoC,CAAC;AACvE,4DAA4D;AAC5D,eAAO,MAAM,8BAA8B,0BAA0B,CAAC;AACtE,eAAO,MAAM,qBAAqB,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LOG_ENTRY_ADDED_EVENT = exports.CONTEXT_UPDATED_EVENT_OBSOLETE = exports.CONTEXT_UPDATED_EVENT = exports.BIDI_EVENT_NAME = void 0;
|
|
4
|
+
exports.BIDI_EVENT_NAME = 'bidiEvent';
|
|
5
|
+
const DOMAIN = 'xcuitest';
|
|
6
|
+
exports.CONTEXT_UPDATED_EVENT = `appium:${DOMAIN}.contextUpdated`;
|
|
7
|
+
/** @deprecated Use {@link CONTEXT_UPDATED_EVENT} instead */
|
|
8
|
+
exports.CONTEXT_UPDATED_EVENT_OBSOLETE = 'appium.contextUpdated';
|
|
9
|
+
exports.LOG_ENTRY_ADDED_EVENT = 'log.entryAdded';
|
|
10
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../lib/commands/bidi/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,WAAW,CAAC;AAC3C,MAAM,MAAM,GAAG,UAAU,CAAC;AACb,QAAA,qBAAqB,GAAG,UAAU,MAAM,iBAAiB,CAAC;AACvE,4DAA4D;AAC/C,QAAA,8BAA8B,GAAG,uBAAuB,CAAC;AACzD,QAAA,qBAAqB,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LogEntryAddedEvent, ContextUpdatedEvent } from './types';
|
|
2
|
+
import type { LogEntry } from '../types';
|
|
3
|
+
export declare const makeContextUpdatedEvent: (contextName: string) => ContextUpdatedEvent;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use {@link makeContextUpdatedEvent} instead
|
|
6
|
+
*/
|
|
7
|
+
export declare const makeObsoleteContextUpdatedEvent: (contextName: string) => ContextUpdatedEvent;
|
|
8
|
+
export declare function makeLogEntryAddedEvent(entry: LogEntry, context: string, type: string): LogEntryAddedEvent;
|
|
9
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bidi/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAgB,MAAM,SAAS,CAAC;AAGrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAazC,eAAO,MAAM,uBAAuB,GAAI,aAAa,MAAM,wBAE1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B,GAAI,aAAa,MAAM,wBAElE,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAczG"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.makeObsoleteContextUpdatedEvent = exports.makeContextUpdatedEvent = void 0;
|
|
7
|
+
exports.makeLogEntryAddedEvent = makeLogEntryAddedEvent;
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const constants_1 = require("./constants");
|
|
10
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
11
|
+
function toContextUpdatedEvent(method, contextName) {
|
|
12
|
+
return {
|
|
13
|
+
method,
|
|
14
|
+
params: {
|
|
15
|
+
name: contextName,
|
|
16
|
+
type: contextName === utils_1.NATIVE_WIN ? 'NATIVE' : 'WEB',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const makeContextUpdatedEvent = (contextName) => toContextUpdatedEvent(constants_1.CONTEXT_UPDATED_EVENT, contextName);
|
|
21
|
+
exports.makeContextUpdatedEvent = makeContextUpdatedEvent;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use {@link makeContextUpdatedEvent} instead
|
|
24
|
+
*/
|
|
25
|
+
const makeObsoleteContextUpdatedEvent = (contextName) => toContextUpdatedEvent(constants_1.CONTEXT_UPDATED_EVENT_OBSOLETE, contextName);
|
|
26
|
+
exports.makeObsoleteContextUpdatedEvent = makeObsoleteContextUpdatedEvent;
|
|
27
|
+
function makeLogEntryAddedEvent(entry, context, type) {
|
|
28
|
+
return {
|
|
29
|
+
context,
|
|
30
|
+
method: constants_1.LOG_ENTRY_ADDED_EVENT,
|
|
31
|
+
params: {
|
|
32
|
+
type,
|
|
33
|
+
level: adjustLogLevel(entry.level),
|
|
34
|
+
source: {
|
|
35
|
+
realm: '',
|
|
36
|
+
},
|
|
37
|
+
text: entry.message,
|
|
38
|
+
timestamp: entry.timestamp,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function adjustLogLevel(originalLevel) {
|
|
43
|
+
const originalLevelLc = lodash_1.default.toLower(originalLevel);
|
|
44
|
+
switch (originalLevelLc) {
|
|
45
|
+
case 'debug':
|
|
46
|
+
case 'info':
|
|
47
|
+
case 'warn':
|
|
48
|
+
case 'error':
|
|
49
|
+
return originalLevelLc;
|
|
50
|
+
default:
|
|
51
|
+
return 'info';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../lib/commands/bidi/models.ts"],"names":[],"mappings":";;;;;;AA2BA,wDAcC;AAxCD,uCAAyC;AACzC,2CAA2G;AAE3G,oDAAuB;AAEvB,SAAS,qBAAqB,CAAC,MAAc,EAAE,WAAmB;IAChE,OAAO;QACL,MAAM;QACN,MAAM,EAAE;YACN,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,WAAW,KAAK,kBAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;SACpD;KACF,CAAC;AACJ,CAAC;AAEM,MAAM,uBAAuB,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,qBAAqB,CACnF,iCAAqB,EAAE,WAAW,CACnC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEF;;GAEG;AACI,MAAM,+BAA+B,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,qBAAqB,CAC3F,0CAA8B,EAAE,WAAW,CAC5C,CAAC;AAFW,QAAA,+BAA+B,mCAE1C;AAEF,SAAgB,sBAAsB,CAAC,KAAe,EAAE,OAAe,EAAE,IAAY;IACnF,OAAO;QACL,OAAO;QACP,MAAM,EAAE,iCAAqB;QAC7B,MAAM,EAAE;YACN,IAAI;YACJ,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC;YAClC,MAAM,EAAE;gBACN,KAAK,EAAE,EAAE;aACV;YACD,IAAI,EAAE,KAAK,CAAC,OAAO;YACnB,SAAS,EAAE,KAAK,CAAC,SAAS;SAC3B;KACF,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,aAAqB;IAC3C,MAAM,eAAe,GAAG,gBAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACjD,QAAQ,eAAe,EAAE,CAAC;QACxB,KAAK,OAAO,CAAC;QACb,KAAK,MAAM,CAAC;QACZ,KAAK,MAAM,CAAC;QACZ,KAAK,OAAO;YACV,OAAO,eAA+B,CAAC;QACzC;YACE,OAAO,MAAM,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface BiDiEvent<TParams> {
|
|
2
|
+
method: string;
|
|
3
|
+
params: TParams;
|
|
4
|
+
}
|
|
5
|
+
interface LogEntrySource {
|
|
6
|
+
realm: string;
|
|
7
|
+
}
|
|
8
|
+
export type BiDiLogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
9
|
+
interface LogEntryAddedEventParams {
|
|
10
|
+
type: string;
|
|
11
|
+
level: BiDiLogLevel;
|
|
12
|
+
source: LogEntrySource;
|
|
13
|
+
text: string;
|
|
14
|
+
timestamp: number;
|
|
15
|
+
}
|
|
16
|
+
export interface LogEntryAddedEvent extends BiDiEvent<LogEntryAddedEventParams> {
|
|
17
|
+
context: string;
|
|
18
|
+
}
|
|
19
|
+
interface ContentUpdatedParams {
|
|
20
|
+
name: string;
|
|
21
|
+
type: 'NATIVE' | 'WEB';
|
|
22
|
+
}
|
|
23
|
+
export interface ContextUpdatedEvent extends BiDiEvent<ContentUpdatedParams> {
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bidi/types.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS,CAAC,OAAO;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/D,UAAU,wBAAwB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,kBAAmB,SAAQ,SAAS,CAAC,wBAAwB,CAAC;IAC7E,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAC;CACxB;AAGD,MAAM,WAAW,mBAAoB,SAAQ,SAAS,CAAC,oBAAoB,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../lib/commands/bidi/types.ts"],"names":[],"mappings":";;AAGC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enrolls biometric authentication on a simulated device.
|
|
3
|
+
*
|
|
4
|
+
* @param {boolean} isEnabled - Whether to enable/disable biometric enrollment.
|
|
5
|
+
* @throws {Error} If enrollment fails or the device is not a Simulator.
|
|
6
|
+
* @group Simulator Only
|
|
7
|
+
* @this {XCUITestDriver}
|
|
8
|
+
*/
|
|
9
|
+
export function mobileEnrollBiometric(this: import("../driver").XCUITestDriver, isEnabled?: boolean): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Emulates biometric match or non-match event on a simulated device.
|
|
12
|
+
*
|
|
13
|
+
* The biometric feature is expected to be already enrolled via {@linkcode mobileEnrollBiometric|mobile: enrollBiometric} before executing this.
|
|
14
|
+
*
|
|
15
|
+
* @param {import('./types').BiometricFeature} type - The biometric feature name.
|
|
16
|
+
* @param {boolean} match - If `true`, simulate biometic match. If `false`, simulate biometric non-match.
|
|
17
|
+
* @throws {Error} If matching fails or the device is not a Simulator.
|
|
18
|
+
* @group Simulator Only
|
|
19
|
+
* @this {XCUITestDriver}
|
|
20
|
+
*/
|
|
21
|
+
export function mobileSendBiometricMatch(this: import("../driver").XCUITestDriver, type?: import("./types").BiometricFeature, match?: boolean): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Checks whether the biometric feature is currently enrolled on a simulated device.
|
|
24
|
+
*
|
|
25
|
+
* @returns {Promise<boolean>} `true` if biometric is enrolled.
|
|
26
|
+
* @throws {Error} If the detection fails or the device is not a Simulator.
|
|
27
|
+
* @group Simulator Only
|
|
28
|
+
* @this {XCUITestDriver}
|
|
29
|
+
*/
|
|
30
|
+
export function mobileIsBiometricEnrolled(this: import("../driver").XCUITestDriver): Promise<boolean>;
|
|
31
|
+
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
32
|
+
//# sourceMappingURL=biometric.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"biometric.d.ts","sourceRoot":"","sources":["../../../lib/commands/biometric.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,4FALW,OAAO,iBASjB;AAED;;;;;;;;;;GAUG;AACH,0FANW,OAAO,SAAS,EAAE,gBAAgB,UAClC,OAAO,iBASjB;AAED;;;;;;;GAOG;AACH,qFALa,OAAO,CAAC,OAAO,CAAC,CAS5B;6BAGY,OAAO,WAAW,EAAE,cAAc"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.mobileEnrollBiometric = mobileEnrollBiometric;
|
|
7
|
+
exports.mobileSendBiometricMatch = mobileSendBiometricMatch;
|
|
8
|
+
exports.mobileIsBiometricEnrolled = mobileIsBiometricEnrolled;
|
|
9
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
10
|
+
const utils_1 = require("../utils");
|
|
11
|
+
const assertSimulator = lodash_1.default.partial(utils_1.assertSimulator, 'Biometric enrollment');
|
|
12
|
+
/**
|
|
13
|
+
* Enrolls biometric authentication on a simulated device.
|
|
14
|
+
*
|
|
15
|
+
* @param {boolean} isEnabled - Whether to enable/disable biometric enrollment.
|
|
16
|
+
* @throws {Error} If enrollment fails or the device is not a Simulator.
|
|
17
|
+
* @group Simulator Only
|
|
18
|
+
* @this {XCUITestDriver}
|
|
19
|
+
*/
|
|
20
|
+
async function mobileEnrollBiometric(isEnabled = true) {
|
|
21
|
+
assertSimulator(this);
|
|
22
|
+
await /** @type {import('../driver').Simulator} */ (this.device).enrollBiometric(isEnabled);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Emulates biometric match or non-match event on a simulated device.
|
|
26
|
+
*
|
|
27
|
+
* The biometric feature is expected to be already enrolled via {@linkcode mobileEnrollBiometric|mobile: enrollBiometric} before executing this.
|
|
28
|
+
*
|
|
29
|
+
* @param {import('./types').BiometricFeature} type - The biometric feature name.
|
|
30
|
+
* @param {boolean} match - If `true`, simulate biometic match. If `false`, simulate biometric non-match.
|
|
31
|
+
* @throws {Error} If matching fails or the device is not a Simulator.
|
|
32
|
+
* @group Simulator Only
|
|
33
|
+
* @this {XCUITestDriver}
|
|
34
|
+
*/
|
|
35
|
+
async function mobileSendBiometricMatch(type = 'touchId', match = true) {
|
|
36
|
+
assertSimulator(this);
|
|
37
|
+
await /** @type {import('../driver').Simulator} */ (this.device).sendBiometricMatch(match, type);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Checks whether the biometric feature is currently enrolled on a simulated device.
|
|
41
|
+
*
|
|
42
|
+
* @returns {Promise<boolean>} `true` if biometric is enrolled.
|
|
43
|
+
* @throws {Error} If the detection fails or the device is not a Simulator.
|
|
44
|
+
* @group Simulator Only
|
|
45
|
+
* @this {XCUITestDriver}
|
|
46
|
+
*/
|
|
47
|
+
async function mobileIsBiometricEnrolled() {
|
|
48
|
+
assertSimulator(this);
|
|
49
|
+
return await /** @type {import('../driver').Simulator} */ (this.device).isBiometricEnrolled();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
53
|
+
*/
|
|
54
|
+
//# sourceMappingURL=biometric.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"biometric.js","sourceRoot":"","sources":["../../../lib/commands/biometric.js"],"names":[],"mappings":";;;;;AAaA,sDAIC;AAaD,4DAIC;AAUD,8DAIC;AAhDD,oDAAuB;AACvB,oCAA6D;AAE7D,MAAM,eAAe,GAAG,gBAAC,CAAC,OAAO,CAAC,uBAAgB,EAAE,sBAAsB,CAAC,CAAC;AAE5E;;;;;;;GAOG;AACI,KAAK,UAAU,qBAAqB,CAAC,SAAS,GAAG,IAAI;IAC1D,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;AAC9F,CAAC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,wBAAwB,CAAC,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,IAAI;IAC3E,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACnG,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB;IAC7C,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,OAAO,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,mBAAmB,EAAE,CAAC;AAChG,CAAC;AAED;;GAEG"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses the common name of the certificate from the given string.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} stringCertificate
|
|
5
|
+
* @returns {string} The common name of the certificate
|
|
6
|
+
*/
|
|
7
|
+
export function parseCommonName(stringCertificate: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Installs a custom certificate onto the device.
|
|
10
|
+
*
|
|
11
|
+
* Since Xcode SDK 11.4, Apple has added a dedicated `simctl` subcommand to quickly handle
|
|
12
|
+
* certificates on Simulator over CLI.
|
|
13
|
+
*
|
|
14
|
+
* On real devices (or simulators before Xcode SDK 11.4), Apple provides no "official" way to do this via the command line. In such a case (and also as a fallback if CLI setup fails), this method tries to wrap the certificate into `.mobileconfig` format, then deploys the wrapped file to the internal HTTP server so that it can be opened via mobile Safari. This command then goes through the profile installation procedure by clicking the necessary buttons using WebDriverAgent.
|
|
15
|
+
* @param {string} content - Base64-encoded content of the public certificate in [PEM](https://knowledge.digicert.com/quovadis/ssl-certificates/ssl-general-topics/what-is-pem-format.html) format
|
|
16
|
+
* @param {string} [commonName] - Common name of the certificate. If this is not set, the command will try to parse it from the provided `content`.
|
|
17
|
+
* @param {boolean} isRoot - Defines where the certificate should be installed; either the Trusted Root Store (`true`) or the Keychain (`false`). On environments other than Xcode 11.4+ Simulator, this option is ignored.
|
|
18
|
+
* @returns {Promise<string|void>} The content of the generated `.mobileconfig` file as
|
|
19
|
+
* a base64-encoded string. This config might be useful for debugging purposes. If the certificate has been successfully set via CLI, then nothing is returned.
|
|
20
|
+
* @this {XCUITestDriver}
|
|
21
|
+
*/
|
|
22
|
+
export function mobileInstallCertificate(this: import("../driver").XCUITestDriver, content: string, commonName?: string, isRoot?: boolean): Promise<string | void>;
|
|
23
|
+
/**
|
|
24
|
+
* Removes installed certificates.
|
|
25
|
+
*
|
|
26
|
+
* This only works _if and only if_ `py-ios-device` is installed on the same machine Appium is running on.
|
|
27
|
+
*
|
|
28
|
+
* @see https://github.com/YueChen-C/py-ios-device
|
|
29
|
+
* @since 4.19.2
|
|
30
|
+
* @param {string} name - Name of the profile
|
|
31
|
+
* @returns {Promise<string>} Returns status acknowledgment status if
|
|
32
|
+
* tht certificate is successfully removed or 'None' (basically just
|
|
33
|
+
* forwards the original pyidevice output)
|
|
34
|
+
* @throws {Error} If attempting to remove certificates for a simulated device or if `py-ios-device` is not installed
|
|
35
|
+
* @group Real Device Only
|
|
36
|
+
*/
|
|
37
|
+
export function mobileRemoveCertificate(name: string): Promise<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns map of certificates installed on the real device.
|
|
40
|
+
*
|
|
41
|
+
* This only works _if and only if_ `py-ios-device` is installed on the same machine Appium is running on.
|
|
42
|
+
* @since 4.10.0
|
|
43
|
+
* @see https://github.com/YueChen-C/py-ios-device
|
|
44
|
+
* @returns {Promise<import('./types').CertificateList>} An object describing the certificates installed on the real device.
|
|
45
|
+
* @throws {Error} If attempting to list certificates for a simulated device or if `py-ios-device` is not installed
|
|
46
|
+
* @this {XCUITestDriver}
|
|
47
|
+
*/
|
|
48
|
+
export function mobileListCertificates(this: import("../driver").XCUITestDriver): Promise<import("./types").CertificateList>;
|
|
49
|
+
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
50
|
+
//# sourceMappingURL=certificate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"certificate.d.ts","sourceRoot":"","sources":["../../../lib/commands/certificate.js"],"names":[],"mappings":"AA8DA;;;;;GAKG;AACH,mDAHW,MAAM,GACJ,MAAM,CAclB;AAED;;;;;;;;;;;;;GAaG;AACH,4FAPW,MAAM,eACN,MAAM,WACN,OAAO,GACL,OAAO,CAAC,MAAM,GAAC,IAAI,CAAC,CAwIhC;AAED;;;;;;;;;;;;;GAaG;AACH,8CAPW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAgB3B;AAED;;;;;;;;;GASG;AACH,kFAJa,OAAO,CAAC,OAAO,SAAS,EAAE,eAAe,CAAC,CActD;6BA2NY,OAAO,WAAW,EAAE,cAAc"}
|