@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,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records the given hardware audio input and saves it into an `.mp4` file.
|
|
3
|
+
*
|
|
4
|
+
* **To use this command, the `audio_record` security feature must be enabled _and_ [FFMpeg](https://ffmpeg.org/) must be installed on the Appium server.**
|
|
5
|
+
*
|
|
6
|
+
* @param {string|number} audioInput - The name of the corresponding audio input device to use for the capture. The full list of capture devices could be shown by executing `ffmpeg -f avfoundation -list_devices true -i ""`
|
|
7
|
+
* @param {string|number} timeLimit - The maximum recording time, in seconds.
|
|
8
|
+
* @param {string} audioCodec - The name of the audio codec.
|
|
9
|
+
* @param {string} audioBitrate - The bitrate of the resulting audio stream.
|
|
10
|
+
* @param {string|number} audioChannels - The count of audio channels in the resulting stream. Setting it to `1` will create a single channel (mono) audio stream.
|
|
11
|
+
* @param {string|number} audioRate - The sampling rate of the resulting audio stream (in Hz).
|
|
12
|
+
* @param {boolean} forceRestart - Whether to restart audio capture process forcefully when `mobile: startRecordingAudio` is called (`true`) or ignore the call until the current audio recording is completed (`false`).
|
|
13
|
+
* @group Real Device Only
|
|
14
|
+
* @this {XCUITestDriver}
|
|
15
|
+
* @returns {Promise<void>}
|
|
16
|
+
* @privateRemarks Using string literals for the default parameters makes better documentation.
|
|
17
|
+
*/
|
|
18
|
+
export function startAudioRecording(this: import("../driver").XCUITestDriver, audioInput: string | number, timeLimit?: string | number, audioCodec?: string, audioBitrate?: string, audioChannels?: string | number, audioRate?: string | number, forceRestart?: boolean): Promise<void>;
|
|
19
|
+
export class startAudioRecording {
|
|
20
|
+
/**
|
|
21
|
+
* Records the given hardware audio input and saves it into an `.mp4` file.
|
|
22
|
+
*
|
|
23
|
+
* **To use this command, the `audio_record` security feature must be enabled _and_ [FFMpeg](https://ffmpeg.org/) must be installed on the Appium server.**
|
|
24
|
+
*
|
|
25
|
+
* @param {string|number} audioInput - The name of the corresponding audio input device to use for the capture. The full list of capture devices could be shown by executing `ffmpeg -f avfoundation -list_devices true -i ""`
|
|
26
|
+
* @param {string|number} timeLimit - The maximum recording time, in seconds.
|
|
27
|
+
* @param {string} audioCodec - The name of the audio codec.
|
|
28
|
+
* @param {string} audioBitrate - The bitrate of the resulting audio stream.
|
|
29
|
+
* @param {string|number} audioChannels - The count of audio channels in the resulting stream. Setting it to `1` will create a single channel (mono) audio stream.
|
|
30
|
+
* @param {string|number} audioRate - The sampling rate of the resulting audio stream (in Hz).
|
|
31
|
+
* @param {boolean} forceRestart - Whether to restart audio capture process forcefully when `mobile: startRecordingAudio` is called (`true`) or ignore the call until the current audio recording is completed (`false`).
|
|
32
|
+
* @group Real Device Only
|
|
33
|
+
* @this {XCUITestDriver}
|
|
34
|
+
* @returns {Promise<void>}
|
|
35
|
+
* @privateRemarks Using string literals for the default parameters makes better documentation.
|
|
36
|
+
*/
|
|
37
|
+
constructor(this: import("../driver").XCUITestDriver, audioInput: string | number, timeLimit?: string | number, audioCodec?: string, audioBitrate?: string, audioChannels?: string | number, audioRate?: string | number, forceRestart?: boolean);
|
|
38
|
+
_audioRecorder: AudioRecorder;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Stop recording of the audio input. If no audio recording process is running then
|
|
42
|
+
* the endpoint will try to get the recently recorded file.
|
|
43
|
+
* If no previously recorded file is found and no active audio recording
|
|
44
|
+
* processes are running then the method returns an empty string.
|
|
45
|
+
*
|
|
46
|
+
* @returns {Promise<string>} Base64-encoded content of the recorded media file or an
|
|
47
|
+
* empty string if no audio recording has been started before.
|
|
48
|
+
* @throws {Error} If there was an error while getting the recorded file.
|
|
49
|
+
* @this {XCUITestDriver}
|
|
50
|
+
*/
|
|
51
|
+
export function stopAudioRecording(this: import("../driver").XCUITestDriver): Promise<string>;
|
|
52
|
+
export class stopAudioRecording {
|
|
53
|
+
_audioRecorder: any;
|
|
54
|
+
}
|
|
55
|
+
export class AudioRecorder {
|
|
56
|
+
constructor(input: any, log: any, audioPath: any, opts?: {});
|
|
57
|
+
input: any;
|
|
58
|
+
log: any;
|
|
59
|
+
audioPath: any;
|
|
60
|
+
opts: {};
|
|
61
|
+
mainProcess: any;
|
|
62
|
+
start(timeoutSeconds: any): Promise<void>;
|
|
63
|
+
isRecording(): boolean;
|
|
64
|
+
interrupt(force?: boolean): Promise<boolean>;
|
|
65
|
+
finish(): Promise<any>;
|
|
66
|
+
cleanup(): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
69
|
+
//# sourceMappingURL=record-audio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-audio.d.ts","sourceRoot":"","sources":["../../../lib/commands/record-audio.js"],"names":[],"mappings":"AAyIA;;;;;;;;;;;;;;;;GAgBG;AACH,0FAZW,MAAM,GAAC,MAAM,cACb,MAAM,GAAC,MAAM,eACb,MAAM,iBACN,MAAM,kBACN,MAAM,GAAC,MAAM,cACb,MAAM,GAAC,MAAM,iBACb,OAAO,GAGL,OAAO,CAAC,IAAI,CAAC,CA0EzB;;IAxFD;;;;;;;;;;;;;;;;OAgBG;IACH,kEAZW,MAAM,GAAC,MAAM,cACb,MAAM,GAAC,MAAM,eACb,MAAM,iBACN,MAAM,kBACN,MAAM,GAAC,MAAM,cACb,MAAM,GAAC,MAAM,iBACb,OAAO,EA6EjB;IAhCG,8BAA0B;;AAkC9B;;;;;;;;;;GAUG;AACH,8EALa,OAAO,CAAC,MAAM,CAAC,CA0B3B;;IAJG,oBAA0B;;AAjP9B;IACE,6DAMC;IALC,WAAkB;IAClB,SAAc;IACd,eAA0B;IAC1B,SAAgB;IAChB,iBAAuB;IAGzB,0CA8EC;IAED,uBAEC;IAED,6CAgBC;IAED,uBAGC;IAED,yBAIC;CACF;6BA+HY,OAAO,WAAW,EAAE,cAAc"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AudioRecorder = void 0;
|
|
4
|
+
exports.startAudioRecording = startAudioRecording;
|
|
5
|
+
exports.stopAudioRecording = stopAudioRecording;
|
|
6
|
+
const support_1 = require("appium/support");
|
|
7
|
+
const teen_process_1 = require("teen_process");
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
const asyncbox_1 = require("asyncbox");
|
|
10
|
+
const MAX_RECORDING_TIME_SEC = 43200;
|
|
11
|
+
const AUDIO_RECORD_FEAT_NAME = 'audio_record';
|
|
12
|
+
const DEFAULT_SOURCE = 'avfoundation';
|
|
13
|
+
const PROCESS_STARTUP_TIMEOUT_MS = 5000;
|
|
14
|
+
const DEFAULT_EXT = '.mp4';
|
|
15
|
+
const FFMPEG_BINARY = 'ffmpeg';
|
|
16
|
+
const ffmpegLogger = support_1.logger.getLogger(FFMPEG_BINARY);
|
|
17
|
+
class AudioRecorder {
|
|
18
|
+
constructor(input, log, audioPath, opts = {}) {
|
|
19
|
+
this.input = input;
|
|
20
|
+
this.log = log;
|
|
21
|
+
this.audioPath = audioPath;
|
|
22
|
+
this.opts = opts;
|
|
23
|
+
this.mainProcess = null;
|
|
24
|
+
}
|
|
25
|
+
async start(timeoutSeconds) {
|
|
26
|
+
try {
|
|
27
|
+
await support_1.fs.which(FFMPEG_BINARY);
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
throw new Error(`'${FFMPEG_BINARY}' binary is not found in PATH. Install it using 'brew install ffmpeg'. ` +
|
|
31
|
+
`Check https://www.ffmpeg.org/download.html for more details.`);
|
|
32
|
+
}
|
|
33
|
+
const { audioSource, audioCodec, audioBitrate, audioChannels, audioRate } = this.opts;
|
|
34
|
+
const args = [
|
|
35
|
+
'-t',
|
|
36
|
+
`${timeoutSeconds}`,
|
|
37
|
+
'-f',
|
|
38
|
+
audioSource,
|
|
39
|
+
'-i',
|
|
40
|
+
this.input,
|
|
41
|
+
'-c:a',
|
|
42
|
+
audioCodec,
|
|
43
|
+
'-b:a',
|
|
44
|
+
audioBitrate,
|
|
45
|
+
'-ac',
|
|
46
|
+
`${audioChannels}`,
|
|
47
|
+
'-ar',
|
|
48
|
+
`${audioRate}`,
|
|
49
|
+
this.audioPath,
|
|
50
|
+
];
|
|
51
|
+
this.mainProcess = new teen_process_1.SubProcess(FFMPEG_BINARY, args);
|
|
52
|
+
let isCaptureStarted = false;
|
|
53
|
+
this.mainProcess.on('output', (stdout, stderr) => {
|
|
54
|
+
if (stderr) {
|
|
55
|
+
if (stderr.trim().startsWith('size=')) {
|
|
56
|
+
if (!isCaptureStarted) {
|
|
57
|
+
isCaptureStarted = true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
ffmpegLogger.info(`${stderr}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
await this.mainProcess.start(0);
|
|
66
|
+
try {
|
|
67
|
+
await (0, asyncbox_1.waitForCondition)(() => isCaptureStarted, {
|
|
68
|
+
waitMs: PROCESS_STARTUP_TIMEOUT_MS,
|
|
69
|
+
intervalMs: 300,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
this.log.warn(`Audio recording process did not start within ${PROCESS_STARTUP_TIMEOUT_MS}ms. Continuing anyway`);
|
|
74
|
+
}
|
|
75
|
+
if (!this.mainProcess.isRunning) {
|
|
76
|
+
this.mainProcess = null;
|
|
77
|
+
throw new Error(`The audio recording process '${FFMPEG_BINARY}' died unexpectedly. ` +
|
|
78
|
+
`Check server logs for more details`);
|
|
79
|
+
}
|
|
80
|
+
this.log.info(`Starting capture on audio input '${this.input}' with command: '${support_1.util.quote([
|
|
81
|
+
FFMPEG_BINARY,
|
|
82
|
+
...args,
|
|
83
|
+
])}'. ` + `Will timeout in ${timeoutSeconds}s`);
|
|
84
|
+
this.mainProcess.once('exit', (code, signal) => {
|
|
85
|
+
// ffmpeg returns code 255 if SIGINT arrives
|
|
86
|
+
if ([0, 255].includes(code)) {
|
|
87
|
+
this.log.info(`The recording session on audio input '${this.input}' has been finished`);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this.log.debug(`The recording session on audio input '${this.input}' has exited ` +
|
|
91
|
+
`with code ${code}, signal ${signal}`);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
isRecording() {
|
|
96
|
+
return !!this.mainProcess?.isRunning;
|
|
97
|
+
}
|
|
98
|
+
async interrupt(force = false) {
|
|
99
|
+
if (this.isRecording()) {
|
|
100
|
+
const interruptPromise = this.mainProcess?.stop(force ? 'SIGTERM' : 'SIGINT');
|
|
101
|
+
this.mainProcess = null;
|
|
102
|
+
try {
|
|
103
|
+
await interruptPromise;
|
|
104
|
+
}
|
|
105
|
+
catch (e) {
|
|
106
|
+
this.log.warn(`Cannot ${force ? 'terminate' : 'interrupt'} ${FFMPEG_BINARY}. ` +
|
|
107
|
+
`Original error: ${e.message}`);
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
async finish() {
|
|
114
|
+
await this.interrupt();
|
|
115
|
+
return this.audioPath;
|
|
116
|
+
}
|
|
117
|
+
async cleanup() {
|
|
118
|
+
if (await support_1.fs.exists(this.audioPath)) {
|
|
119
|
+
await support_1.fs.rimraf(this.audioPath);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.AudioRecorder = AudioRecorder;
|
|
124
|
+
/**
|
|
125
|
+
* Records the given hardware audio input and saves it into an `.mp4` file.
|
|
126
|
+
*
|
|
127
|
+
* **To use this command, the `audio_record` security feature must be enabled _and_ [FFMpeg](https://ffmpeg.org/) must be installed on the Appium server.**
|
|
128
|
+
*
|
|
129
|
+
* @param {string|number} audioInput - The name of the corresponding audio input device to use for the capture. The full list of capture devices could be shown by executing `ffmpeg -f avfoundation -list_devices true -i ""`
|
|
130
|
+
* @param {string|number} timeLimit - The maximum recording time, in seconds.
|
|
131
|
+
* @param {string} audioCodec - The name of the audio codec.
|
|
132
|
+
* @param {string} audioBitrate - The bitrate of the resulting audio stream.
|
|
133
|
+
* @param {string|number} audioChannels - The count of audio channels in the resulting stream. Setting it to `1` will create a single channel (mono) audio stream.
|
|
134
|
+
* @param {string|number} audioRate - The sampling rate of the resulting audio stream (in Hz).
|
|
135
|
+
* @param {boolean} forceRestart - Whether to restart audio capture process forcefully when `mobile: startRecordingAudio` is called (`true`) or ignore the call until the current audio recording is completed (`false`).
|
|
136
|
+
* @group Real Device Only
|
|
137
|
+
* @this {XCUITestDriver}
|
|
138
|
+
* @returns {Promise<void>}
|
|
139
|
+
* @privateRemarks Using string literals for the default parameters makes better documentation.
|
|
140
|
+
*/
|
|
141
|
+
async function startAudioRecording(audioInput, timeLimit = 180, audioCodec = 'aac', audioBitrate = '128k', audioChannels = 2, audioRate = 44100, forceRestart = false) {
|
|
142
|
+
if (!this.isFeatureEnabled(AUDIO_RECORD_FEAT_NAME)) {
|
|
143
|
+
throw this.log.errorWithException(`Audio capture feature must be enabled on the server side. ` +
|
|
144
|
+
`Please set '--relaxed-security' or '--allow-insecure' with '${AUDIO_RECORD_FEAT_NAME}' option. ` +
|
|
145
|
+
`Read https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/security.md for more details.`);
|
|
146
|
+
}
|
|
147
|
+
if (!audioInput) {
|
|
148
|
+
throw this.log.errorWithException(`The mandatory audioInput option is not provided. Please set it ` +
|
|
149
|
+
`to a correct value (e. g. ':1'). Use 'ffmpeg -f avfoundation -list_devices true -i ""' ` +
|
|
150
|
+
`command to list available input sources`);
|
|
151
|
+
}
|
|
152
|
+
if (this._audioRecorder?.isRecording()) {
|
|
153
|
+
this.log.info(`There is an active audio recording process`);
|
|
154
|
+
if (forceRestart) {
|
|
155
|
+
this.log.info(`Stopping it because 'forceRestart' option is set to true`);
|
|
156
|
+
await this._audioRecorder.interrupt(true);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
this.log.info(`Doing nothing. ` +
|
|
160
|
+
`Set 'forceRestart' option to true if you'd like to start a new audio recording session`);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (this._audioRecorder) {
|
|
165
|
+
await this._audioRecorder.cleanup();
|
|
166
|
+
this._audioRecorder = null;
|
|
167
|
+
}
|
|
168
|
+
const audioPath = await support_1.tempDir.path({
|
|
169
|
+
prefix: `appium_${support_1.util.uuidV4().substring(0, 8)}`,
|
|
170
|
+
suffix: DEFAULT_EXT,
|
|
171
|
+
});
|
|
172
|
+
const audioRecorder = new AudioRecorder(audioInput, this.log, audioPath, {
|
|
173
|
+
audioSource: DEFAULT_SOURCE,
|
|
174
|
+
audioCodec,
|
|
175
|
+
audioBitrate,
|
|
176
|
+
audioChannels,
|
|
177
|
+
audioRate,
|
|
178
|
+
});
|
|
179
|
+
const timeoutSeconds = parseInt(String(timeLimit), 10);
|
|
180
|
+
if (isNaN(timeoutSeconds) || timeoutSeconds > MAX_RECORDING_TIME_SEC || timeoutSeconds <= 0) {
|
|
181
|
+
throw this.log.errorWithException(`The timeLimit value must be in range [1, ${MAX_RECORDING_TIME_SEC}] seconds. ` +
|
|
182
|
+
`The value of '${timeLimit}' has been passed instead.`);
|
|
183
|
+
}
|
|
184
|
+
try {
|
|
185
|
+
await audioRecorder.start(timeoutSeconds);
|
|
186
|
+
}
|
|
187
|
+
catch (e) {
|
|
188
|
+
await audioRecorder.interrupt(true);
|
|
189
|
+
await audioRecorder.cleanup();
|
|
190
|
+
throw e;
|
|
191
|
+
}
|
|
192
|
+
this._audioRecorder = audioRecorder;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Stop recording of the audio input. If no audio recording process is running then
|
|
196
|
+
* the endpoint will try to get the recently recorded file.
|
|
197
|
+
* If no previously recorded file is found and no active audio recording
|
|
198
|
+
* processes are running then the method returns an empty string.
|
|
199
|
+
*
|
|
200
|
+
* @returns {Promise<string>} Base64-encoded content of the recorded media file or an
|
|
201
|
+
* empty string if no audio recording has been started before.
|
|
202
|
+
* @throws {Error} If there was an error while getting the recorded file.
|
|
203
|
+
* @this {XCUITestDriver}
|
|
204
|
+
*/
|
|
205
|
+
async function stopAudioRecording() {
|
|
206
|
+
if (!this._audioRecorder) {
|
|
207
|
+
this.log.info('Audio recording has not been started. There is nothing to stop');
|
|
208
|
+
return '';
|
|
209
|
+
}
|
|
210
|
+
let resultPath;
|
|
211
|
+
try {
|
|
212
|
+
resultPath = await this._audioRecorder.finish();
|
|
213
|
+
if (!(await support_1.fs.exists(resultPath))) {
|
|
214
|
+
throw this.log.errorWithException(`${FFMPEG_BINARY} has failed ` + `to store the actual audio recording at '${resultPath}'`);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
catch (e) {
|
|
218
|
+
await this._audioRecorder.interrupt(true);
|
|
219
|
+
await this._audioRecorder.cleanup();
|
|
220
|
+
this._audioRecorder = null;
|
|
221
|
+
throw e;
|
|
222
|
+
}
|
|
223
|
+
return await (0, utils_1.encodeBase64OrUpload)(resultPath);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
227
|
+
*/
|
|
228
|
+
//# sourceMappingURL=record-audio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-audio.js","sourceRoot":"","sources":["../../../lib/commands/record-audio.js"],"names":[],"mappings":";;;AA0JA,kDAuEC;AAaD,gDAqBC;AAnQD,4CAAyD;AACzD,+CAAwC;AACxC,oCAA8C;AAC9C,uCAA0C;AAE1C,MAAM,sBAAsB,GAAG,KAAK,CAAC;AACrC,MAAM,sBAAsB,GAAG,cAAc,CAAC;AAC9C,MAAM,cAAc,GAAG,cAAc,CAAC;AACtC,MAAM,0BAA0B,GAAG,IAAI,CAAC;AAExC,MAAM,WAAW,GAAG,MAAM,CAAC;AAC3B,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,MAAM,YAAY,GAAG,gBAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AAErD,MAAa,aAAa;IACxB,YAAY,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,GAAG,EAAE;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,cAAc;QACxB,IAAI,CAAC;YACH,MAAM,YAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAChC,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,KAAK,CACb,IAAI,aAAa,yEAAyE;gBACxF,8DAA8D,CACjE,CAAC;QACJ,CAAC;QAED,MAAM,EAAC,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAC,GAAG,IAA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AC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACpC,MAAM,aAAa,CAAC,OAAO,EAAE,CAAC;QAC9B,MAAM,CAAC,CAAC;IACV,CAAC;IACD,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;AACtC,CAAC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,kBAAkB;IACtC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;QACzB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gEAAgE,CAAC,CAAC;QAChF,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,UAAU,CAAC;IACf,IAAI,CAAC;QACH,UAAU,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC;QAChD,IAAI,CAAC,CAAC,MAAM,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAC/B,GAAG,aAAa,cAAc,GAAG,2CAA2C,UAAU,GAAG,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC1C,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;QACpC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,MAAM,CAAC,CAAC;IACV,CAAC;IACD,OAAO,MAAM,IAAA,4BAAoB,EAAC,UAAU,CAAC,CAAC;AAChD,CAAC;AAED;;GAEG"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Direct Appium to start recording the device screen
|
|
3
|
+
*
|
|
4
|
+
* Record the display of devices running iOS Simulator since Xcode 9 or real devices since iOS 11
|
|
5
|
+
* (ffmpeg utility is required: 'brew install ffmpeg').
|
|
6
|
+
* It records screen activity to a MPEG-4 file. Audio is not recorded with the video file.
|
|
7
|
+
* If screen recording has been already started then the command will stop it forcefully and start a new one.
|
|
8
|
+
* The previously recorded video file will be deleted.
|
|
9
|
+
*
|
|
10
|
+
* @param {import('./types').StartRecordingScreenOptions} [options] - The available options.
|
|
11
|
+
* @returns {Promise<string>} Base64-encoded content of the recorded media file if
|
|
12
|
+
* any screen recording is currently running or an empty string.
|
|
13
|
+
* @throws {Error} If screen recording has failed to start.
|
|
14
|
+
* @this {XCUITestDriver}
|
|
15
|
+
*/
|
|
16
|
+
export function startRecordingScreen(this: import("../driver").XCUITestDriver, options?: import("./types").StartRecordingScreenOptions): Promise<string>;
|
|
17
|
+
export class startRecordingScreen {
|
|
18
|
+
/**
|
|
19
|
+
* Direct Appium to start recording the device screen
|
|
20
|
+
*
|
|
21
|
+
* Record the display of devices running iOS Simulator since Xcode 9 or real devices since iOS 11
|
|
22
|
+
* (ffmpeg utility is required: 'brew install ffmpeg').
|
|
23
|
+
* It records screen activity to a MPEG-4 file. Audio is not recorded with the video file.
|
|
24
|
+
* If screen recording has been already started then the command will stop it forcefully and start a new one.
|
|
25
|
+
* The previously recorded video file will be deleted.
|
|
26
|
+
*
|
|
27
|
+
* @param {import('./types').StartRecordingScreenOptions} [options] - The available options.
|
|
28
|
+
* @returns {Promise<string>} Base64-encoded content of the recorded media file if
|
|
29
|
+
* any screen recording is currently running or an empty string.
|
|
30
|
+
* @throws {Error} If screen recording has failed to start.
|
|
31
|
+
* @this {XCUITestDriver}
|
|
32
|
+
*/
|
|
33
|
+
constructor(this: import("../driver").XCUITestDriver, options?: import("./types").StartRecordingScreenOptions);
|
|
34
|
+
_recentScreenRecorder: ScreenRecorder;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Direct Appium to stop screen recording and return the video
|
|
38
|
+
*
|
|
39
|
+
* If no screen recording process is running then the endpoint will try to get
|
|
40
|
+
* the recently recorded file. If no previously recorded file is found and no
|
|
41
|
+
* active screen recording processes are running then the method returns an
|
|
42
|
+
* empty string.
|
|
43
|
+
*
|
|
44
|
+
* @param {import('./types').StopRecordingScreenOptions} options - The available
|
|
45
|
+
* options.
|
|
46
|
+
* @returns {Promise<string?>} Base64-encoded content of the recorded media
|
|
47
|
+
* file if `remotePath` parameter is empty or null or an empty string.
|
|
48
|
+
* @throws {Error} If there was an error while getting the name of a media
|
|
49
|
+
* file or the file content cannot be uploaded to the remote
|
|
50
|
+
* location.
|
|
51
|
+
* @this {XCUITestDriver}
|
|
52
|
+
*/
|
|
53
|
+
export function stopRecordingScreen(this: import("../driver").XCUITestDriver, options?: import("./types").StopRecordingScreenOptions): Promise<string | null>;
|
|
54
|
+
export class stopRecordingScreen {
|
|
55
|
+
/**
|
|
56
|
+
* Direct Appium to stop screen recording and return the video
|
|
57
|
+
*
|
|
58
|
+
* If no screen recording process is running then the endpoint will try to get
|
|
59
|
+
* the recently recorded file. If no previously recorded file is found and no
|
|
60
|
+
* active screen recording processes are running then the method returns an
|
|
61
|
+
* empty string.
|
|
62
|
+
*
|
|
63
|
+
* @param {import('./types').StopRecordingScreenOptions} options - The available
|
|
64
|
+
* options.
|
|
65
|
+
* @returns {Promise<string?>} Base64-encoded content of the recorded media
|
|
66
|
+
* file if `remotePath` parameter is empty or null or an empty string.
|
|
67
|
+
* @throws {Error} If there was an error while getting the name of a media
|
|
68
|
+
* file or the file content cannot be uploaded to the remote
|
|
69
|
+
* location.
|
|
70
|
+
* @this {XCUITestDriver}
|
|
71
|
+
*/
|
|
72
|
+
constructor(this: import("../driver").XCUITestDriver, options?: import("./types").StopRecordingScreenOptions);
|
|
73
|
+
_recentScreenRecorder: any;
|
|
74
|
+
}
|
|
75
|
+
export class ScreenRecorder {
|
|
76
|
+
constructor(udid: any, log: any, videoPath: any, opts?: {});
|
|
77
|
+
videoPath: any;
|
|
78
|
+
log: any;
|
|
79
|
+
opts: {};
|
|
80
|
+
udid: any;
|
|
81
|
+
mainProcess: any;
|
|
82
|
+
timeoutHandler: NodeJS.Timeout | null;
|
|
83
|
+
start(timeoutMs: any): Promise<void>;
|
|
84
|
+
interrupt(force?: boolean): Promise<boolean>;
|
|
85
|
+
finish(): Promise<any>;
|
|
86
|
+
cleanup(): Promise<void>;
|
|
87
|
+
}
|
|
88
|
+
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
89
|
+
//# sourceMappingURL=recordscreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordscreen.d.ts","sourceRoot":"","sources":["../../../lib/commands/recordscreen.js"],"names":[],"mappings":"AAoOA;;;;;;;;;;;;;;GAcG;AACH,yFANW,OAAO,SAAS,EAAE,2BAA2B,GAC3C,OAAO,CAAC,MAAM,CAAC,CA6G3B;;IAvHD;;;;;;;;;;;;;;OAcG;IACH,gEANW,OAAO,SAAS,EAAE,2BAA2B,EA8GvD;IA7DG,sCAAiC;;AA+DrC;;;;;;;;;;;;;;;;GAgBG;AACH,wFATW,OAAO,SAAS,EAAE,0BAA0B,GAE1C,OAAO,CAAC,MAAM,OAAC,CAAC,CA2B5B;;IArCD;;;;;;;;;;;;;;;;OAgBG;IACH,gEATW,OAAO,SAAS,EAAE,0BAA0B,EA6BtD;IAFG,2BAAiC;;AA3TrC;IACE,4DAOC;IANC,eAA0B;IAC1B,SAAc;IACd,SAAgB;IAChB,UAAgB;IAChB,iBAAuB;IACvB,sCAA0B;IAG5B,qCA8GC;IAED,6CAuBC;IAED,uBAGC;IAED,yBAIC;CACF;6BAmKY,OAAO,WAAW,EAAE,cAAc"}
|