@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,146 @@
|
|
|
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.listConditionInducers = listConditionInducers;
|
|
7
|
+
exports.enableConditionInducer = enableConditionInducer;
|
|
8
|
+
exports.disableConditionInducer = disableConditionInducer;
|
|
9
|
+
const appium_ios_device_1 = require("appium-ios-device");
|
|
10
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
11
|
+
/**
|
|
12
|
+
* Get all available ConditionInducer configuration information, which can be used with
|
|
13
|
+
* {@linkcode XCUITestDriver.enableConditionInducer}
|
|
14
|
+
* @returns {Promise<Condition[]>}
|
|
15
|
+
* @since 4.9.0
|
|
16
|
+
* @see {@link https://help.apple.com/xcode/mac/current/#/dev308429d42}
|
|
17
|
+
* @this {XCUITestDriver}
|
|
18
|
+
*/
|
|
19
|
+
async function listConditionInducers() {
|
|
20
|
+
requireConditionInducerCompatibleDevice.bind(this);
|
|
21
|
+
const conditionInducerService = await appium_ios_device_1.services.startInstrumentService(this.device.udid);
|
|
22
|
+
try {
|
|
23
|
+
const ret = await conditionInducerService.callChannel(appium_ios_device_1.INSTRUMENT_CHANNEL.CONDITION_INDUCER, 'availableConditionInducers');
|
|
24
|
+
return ret.selector;
|
|
25
|
+
}
|
|
26
|
+
finally {
|
|
27
|
+
conditionInducerService.close();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Enable a "condition inducer". You can create a condition on a connected device to test your app under adverse conditions,
|
|
32
|
+
* such as poor network connectivity or thermal constraints. When you start a device condition,
|
|
33
|
+
* the operating system on the device behaves as if its environment has changed. The device
|
|
34
|
+
* condition remains active until you stop the device condition or disconnect the device. For
|
|
35
|
+
* example, you can start a device condition, run your app, monitor your app's energy usage, and
|
|
36
|
+
* then stop the condition.
|
|
37
|
+
*
|
|
38
|
+
* (Note: the socket needs to remain connected during operation)
|
|
39
|
+
* (Note: Device conditions are available only for real devices running iOS 13.0 and later.)
|
|
40
|
+
*
|
|
41
|
+
* @param {string} conditionID - Determine which condition IDs are available with the {@linkcode XCUITestDriver.listConditionInducers} command
|
|
42
|
+
* @param {string} profileID - Determine which profile IDs are available with the {@linkcode XCUITestDriver.listConditionInducers} command
|
|
43
|
+
* @returns {Promise<boolean>} `true` if enabling the condition succeeded
|
|
44
|
+
* @throws {Error} If you try to start another Condition and the previous Condition has not stopped
|
|
45
|
+
* @since 4.9.0
|
|
46
|
+
* @see {@link https://help.apple.com/xcode/mac/current/#/dev308429d42}
|
|
47
|
+
* @this {XCUITestDriver}
|
|
48
|
+
*/
|
|
49
|
+
async function enableConditionInducer(conditionID, profileID) {
|
|
50
|
+
requireConditionInducerCompatibleDevice.bind(this);
|
|
51
|
+
if (this._conditionInducerService && !this._conditionInducerService._socketClient.destroyed) {
|
|
52
|
+
throw this.log.errorWithException(`Condition inducer has been started. A condition is already active.`);
|
|
53
|
+
}
|
|
54
|
+
this._conditionInducerService = await appium_ios_device_1.services.startInstrumentService(this.device.udid);
|
|
55
|
+
const ret = await this._conditionInducerService.callChannel(appium_ios_device_1.INSTRUMENT_CHANNEL.CONDITION_INDUCER, 'enableConditionWithIdentifier:profileIdentifier:', conditionID, profileID);
|
|
56
|
+
if (!lodash_1.default.isBoolean(ret.selector)) {
|
|
57
|
+
this._conditionInducerService.close();
|
|
58
|
+
this._conditionInducerService = null;
|
|
59
|
+
throw this.log.errorWithException(`Enable condition inducer error: '${JSON.stringify(ret.selector)}'`);
|
|
60
|
+
}
|
|
61
|
+
return ret.selector;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Disable a condition inducer enabled with {@linkcode XCUITestDriver.enableConditionInducer} Usually
|
|
65
|
+
* a persistent connection is maintained after the condition inducer is enabled, and this method
|
|
66
|
+
* is only valid for the currently enabled connection. If the connection is disconnected, the
|
|
67
|
+
* condition inducer will be automatically disabled
|
|
68
|
+
*
|
|
69
|
+
* (Note: this is also automatically called upon session cleanup)
|
|
70
|
+
* @returns {Promise<boolean>} `true` if disable the condition succeeded
|
|
71
|
+
* @since 4.9.0
|
|
72
|
+
* @see {@link https://help.apple.com/xcode/mac/current/#/dev308429d42}
|
|
73
|
+
* @this {XCUITestDriver}
|
|
74
|
+
*/
|
|
75
|
+
async function disableConditionInducer() {
|
|
76
|
+
if (!this._conditionInducerService) {
|
|
77
|
+
this.log.warn('Condition inducer server is not started');
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
const ret = await this._conditionInducerService.callChannel(appium_ios_device_1.INSTRUMENT_CHANNEL.CONDITION_INDUCER, 'disableActiveCondition');
|
|
82
|
+
if (!lodash_1.default.isBoolean(ret.selector)) {
|
|
83
|
+
this.log.warn(`Disable condition inducer error: '${JSON.stringify(ret.selector)}'`);
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return ret.selector;
|
|
87
|
+
}
|
|
88
|
+
finally {
|
|
89
|
+
if (this._conditionInducerService) {
|
|
90
|
+
this._conditionInducerService.close();
|
|
91
|
+
this._conditionInducerService = null;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @this {XCUITestDriver}
|
|
97
|
+
* @returns {void}
|
|
98
|
+
*/
|
|
99
|
+
function requireConditionInducerCompatibleDevice() {
|
|
100
|
+
if (this.isSimulator()) {
|
|
101
|
+
throw this.log.errorWithException('Condition inducer only works on real devices');
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @typedef {Object} Profile
|
|
106
|
+
* @property {string} name
|
|
107
|
+
* @property {string} identifier the property is profileID used in {@linkcode XCUITestDriver.enableConditionInducer}
|
|
108
|
+
* @property {string} description Configuration details
|
|
109
|
+
*/
|
|
110
|
+
/**
|
|
111
|
+
* We can use the returned data to determine whether the Condition is enabled and the currently enabled configuration information
|
|
112
|
+
* @typedef {Object} Condition
|
|
113
|
+
* @property {Profile[]} profiles
|
|
114
|
+
* @property {string} identifier the property is conditionID used in {@linkcode XCUITestDriver.enableConditionInducer}
|
|
115
|
+
* @property {boolean} profilesSorted
|
|
116
|
+
* @property {boolean} isDestructive
|
|
117
|
+
* @property {boolean} isInternal
|
|
118
|
+
* @property {boolean} isActive `true` if this condition identifier is enabled
|
|
119
|
+
* @property {string} activeProfile enabled profiles identifier
|
|
120
|
+
* @example {
|
|
121
|
+
* "profiles": [
|
|
122
|
+
* {
|
|
123
|
+
* "name": "100% packet loss",
|
|
124
|
+
* "identifier": "SlowNetwork100PctLoss", // MobileEnableConditionInducer profileID
|
|
125
|
+
* "description": "Name: 100% Loss Scenario\n
|
|
126
|
+
* Downlink Bandwidth: 0 Mbps\n
|
|
127
|
+
* Downlink Latency:0 ms\n
|
|
128
|
+
* Downlink Packet Loss Ratio: 100%\n
|
|
129
|
+
* Uplink Bandwidth: 0 Mbps\n
|
|
130
|
+
* Uplink Latency: 0 ms\n
|
|
131
|
+
* Uplink Packet Loss Ratio: 100%"
|
|
132
|
+
* }
|
|
133
|
+
* ],
|
|
134
|
+
* "profilesSorted": true,
|
|
135
|
+
* "identifier": "SlowNetworkCondition", // MobileEnableConditionInducer conditionID
|
|
136
|
+
* "isDestructive": false,
|
|
137
|
+
* "isInternal": false,
|
|
138
|
+
* "activeProfile": "",
|
|
139
|
+
* "name": "Network Link",
|
|
140
|
+
* "isActive": false
|
|
141
|
+
* }
|
|
142
|
+
*/
|
|
143
|
+
/**
|
|
144
|
+
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
145
|
+
*/
|
|
146
|
+
//# sourceMappingURL=condition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"condition.js","sourceRoot":"","sources":["../../../lib/commands/condition.js"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets content size for the given simulator.
|
|
3
|
+
*
|
|
4
|
+
* @since Xcode 15 (but lower xcode could have this command)
|
|
5
|
+
* @param {ContentSizeAction} size - The content size action to set. Acceptable value is
|
|
6
|
+
* extra-small, small, medium, large, extra-large, extra-extra-large,
|
|
7
|
+
* extra-extra-extra-large, accessibility-medium, accessibility-large,
|
|
8
|
+
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
9
|
+
* accessibility-extra-extra-extra-large with Xcode 16.2.
|
|
10
|
+
* @throws {Error} if the current platform does not support content size appearance changes
|
|
11
|
+
* @this {XCUITestDriver}
|
|
12
|
+
*/
|
|
13
|
+
export function mobileSetContentSize(this: import("../driver").XCUITestDriver, size: ContentSizeAction): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the current content size value from the given simulator.
|
|
16
|
+
*
|
|
17
|
+
* @since Xcode 15 (but lower xcode could have this command)
|
|
18
|
+
* @returns {Promise<ContentSizeResult>} the content size value. Possible return value is
|
|
19
|
+
* extra-small, small, medium, large, extra-large, extra-extra-large,
|
|
20
|
+
* extra-extra-extra-large, accessibility-medium, accessibility-large,
|
|
21
|
+
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
22
|
+
* accessibility-extra-extra-extra-large,
|
|
23
|
+
* unknown or unsupported with Xcode 16.2.
|
|
24
|
+
* @this {XCUITestDriver}
|
|
25
|
+
*/
|
|
26
|
+
export function mobileGetContentSize(this: import("../driver").XCUITestDriver): Promise<ContentSizeResult>;
|
|
27
|
+
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
28
|
+
export type ContentSizeAction = import("./types").ContentSizeAction;
|
|
29
|
+
export type ContentSizeResult = import("./types").ContentSizeResult;
|
|
30
|
+
//# sourceMappingURL=content-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-size.d.ts","sourceRoot":"","sources":["../../../lib/commands/content-size.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;GAWG;AACH,qFARW,iBAAiB,iBAkB3B;AAED;;;;;;;;;;;GAWG;AACH,gFARa,OAAO,CAAC,iBAAiB,CAAC,CAUtC;6BAGY,OAAO,WAAW,EAAE,cAAc;gCAClC,OAAO,SAAS,EAAE,iBAAiB;gCACnC,OAAO,SAAS,EAAE,iBAAiB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.mobileSetContentSize = mobileSetContentSize;
|
|
7
|
+
exports.mobileGetContentSize = mobileGetContentSize;
|
|
8
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
9
|
+
const utils_1 = require("../utils");
|
|
10
|
+
const driver_1 = require("appium/driver");
|
|
11
|
+
const assertSimulator = lodash_1.default.partial(utils_1.assertSimulator, 'Content size ui command');
|
|
12
|
+
const CONTENT_SIZE = [
|
|
13
|
+
'extra-small',
|
|
14
|
+
'small',
|
|
15
|
+
'medium',
|
|
16
|
+
'large',
|
|
17
|
+
'extra-large',
|
|
18
|
+
'extra-extra-large',
|
|
19
|
+
'extra-extra-extra-large',
|
|
20
|
+
'accessibility-medium',
|
|
21
|
+
'accessibility-large',
|
|
22
|
+
'accessibility-extra-large',
|
|
23
|
+
'accessibility-extra-extra-large',
|
|
24
|
+
'accessibility-extra-extra-extra-large',
|
|
25
|
+
'increment',
|
|
26
|
+
'decrement'
|
|
27
|
+
];
|
|
28
|
+
/**
|
|
29
|
+
* Sets content size for the given simulator.
|
|
30
|
+
*
|
|
31
|
+
* @since Xcode 15 (but lower xcode could have this command)
|
|
32
|
+
* @param {ContentSizeAction} size - The content size action to set. Acceptable value is
|
|
33
|
+
* extra-small, small, medium, large, extra-large, extra-extra-large,
|
|
34
|
+
* extra-extra-extra-large, accessibility-medium, accessibility-large,
|
|
35
|
+
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
36
|
+
* accessibility-extra-extra-extra-large with Xcode 16.2.
|
|
37
|
+
* @throws {Error} if the current platform does not support content size appearance changes
|
|
38
|
+
* @this {XCUITestDriver}
|
|
39
|
+
*/
|
|
40
|
+
async function mobileSetContentSize(size) {
|
|
41
|
+
const simulator = assertSimulator(this);
|
|
42
|
+
if (!CONTENT_SIZE.includes(lodash_1.default.lowerCase(size))) {
|
|
43
|
+
throw new driver_1.errors.InvalidArgumentError(`The 'size' value is expected to be one of ${CONTENT_SIZE.join(',')}`);
|
|
44
|
+
}
|
|
45
|
+
await simulator.setContentSize(size);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves the current content size value from the given simulator.
|
|
49
|
+
*
|
|
50
|
+
* @since Xcode 15 (but lower xcode could have this command)
|
|
51
|
+
* @returns {Promise<ContentSizeResult>} the content size value. Possible return value is
|
|
52
|
+
* extra-small, small, medium, large, extra-large, extra-extra-large,
|
|
53
|
+
* extra-extra-extra-large, accessibility-medium, accessibility-large,
|
|
54
|
+
* accessibility-extra-large, accessibility-extra-extra-large,
|
|
55
|
+
* accessibility-extra-extra-extra-large,
|
|
56
|
+
* unknown or unsupported with Xcode 16.2.
|
|
57
|
+
* @this {XCUITestDriver}
|
|
58
|
+
*/
|
|
59
|
+
async function mobileGetContentSize() {
|
|
60
|
+
return /** @type {ContentSizeResult} */ (await assertSimulator(this).getContentSize());
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
64
|
+
* @typedef {import('./types').ContentSizeAction} ContentSizeAction
|
|
65
|
+
* @typedef {import('./types').ContentSizeResult} ContentSizeResult
|
|
66
|
+
*/
|
|
67
|
+
//# sourceMappingURL=content-size.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-size.js","sourceRoot":"","sources":["../../../lib/commands/content-size.js"],"names":[],"mappings":";;;;;AAmCA,oDAUC;AAcD,oDAEC;AA7DD,oDAAuB;AACvB,oCAA6D;AAC7D,0CAAuC;AAEvC,MAAM,eAAe,GAAG,gBAAC,CAAC,OAAO,CAAC,uBAAgB,EAAE,yBAAyB,CAAC,CAAC;AAE/E,MAAM,YAAY,GAAG;IACjB,aAAa;IACb,OAAO;IACP,QAAQ;IACR,OAAO;IACP,aAAa;IACb,mBAAmB;IACnB,yBAAyB;IACzB,sBAAsB;IACtB,qBAAqB;IACrB,2BAA2B;IAC3B,iCAAiC;IACjC,uCAAuC;IACvC,WAAW;IACX,WAAW;CACd,CAAC;AAEF;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,oBAAoB,CAAC,IAAI;IAC7C,MAAM,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAExC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,gBAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,6CAA6C,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CACtE,CAAC;IACJ,CAAC;IAED,MAAM,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,oBAAoB;IACxC,OAAO,gCAAgC,CAAC,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC;AACzF,CAAC;AAED;;;;GAIG"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @this {XCUITestDriver}
|
|
3
|
+
* @param {boolean} [useUrl=false]
|
|
4
|
+
* @returns {Promise<import('./types').ViewContext[]>}
|
|
5
|
+
*/
|
|
6
|
+
export function getContextsAndViews(this: import("../driver").XCUITestDriver, useUrl?: boolean): Promise<import("./types").ViewContext[]>;
|
|
7
|
+
export class getContextsAndViews {
|
|
8
|
+
/**
|
|
9
|
+
* @this {XCUITestDriver}
|
|
10
|
+
* @param {boolean} [useUrl=false]
|
|
11
|
+
* @returns {Promise<import('./types').ViewContext[]>}
|
|
12
|
+
*/
|
|
13
|
+
constructor(this: import("../driver").XCUITestDriver, useUrl?: boolean);
|
|
14
|
+
contexts: string[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated this method is not used anywhere and will be removed in the future
|
|
18
|
+
* @this {XCUITestDriver}
|
|
19
|
+
* @returns {boolean}
|
|
20
|
+
*/
|
|
21
|
+
export function useNewSafari(this: import("../driver").XCUITestDriver): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @this {XCUITestDriver}
|
|
24
|
+
* @returns {Promise<void>}
|
|
25
|
+
*/
|
|
26
|
+
export function activateRecentWebview(this: import("../driver").XCUITestDriver): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* @this {XCUITestDriver}
|
|
29
|
+
* @returns {Promise<import('../types').Page[]>}
|
|
30
|
+
*/
|
|
31
|
+
export function listWebFrames(this: import("../driver").XCUITestDriver, useUrl?: boolean): Promise<import("../types").Page[]>;
|
|
32
|
+
/**
|
|
33
|
+
* @this {XCUITestDriver}
|
|
34
|
+
* @returns {Promise<void>}
|
|
35
|
+
*/
|
|
36
|
+
export function connectToRemoteDebugger(this: import("../driver").XCUITestDriver): Promise<void>;
|
|
37
|
+
export class connectToRemoteDebugger {
|
|
38
|
+
remote: RemoteDebugger;
|
|
39
|
+
curWebFrames: any[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves the list of available contexts.
|
|
43
|
+
*
|
|
44
|
+
* The list includes extended context information, like URLs and page names.
|
|
45
|
+
* This is different from the standard `getContexts` API, because the latter
|
|
46
|
+
* only has web view names without any additional information.
|
|
47
|
+
*
|
|
48
|
+
* @remarks In situations where multiple web views are available at once, the
|
|
49
|
+
* client code would have to connect to each of them in order to detect the
|
|
50
|
+
* one which needs to be interacted with. This extra effort is not needed with
|
|
51
|
+
* the information provided by this extension.
|
|
52
|
+
* @param {number} [waitForWebviewMs=0] - The period to poll for available webview(s) (in ms)
|
|
53
|
+
* @returns {Promise<Context[]>} The list of available context objects along with their properties.
|
|
54
|
+
* @this {XCUITestDriver}
|
|
55
|
+
*/
|
|
56
|
+
export function mobileGetContexts(this: import("../driver").XCUITestDriver, waitForWebviewMs?: number): Promise<Context[]>;
|
|
57
|
+
/**
|
|
58
|
+
* @this {XCUITestDriver}
|
|
59
|
+
* @param {import('./types').PageChangeNotification} pageChangeNotification
|
|
60
|
+
* @returns {Promise<void>}
|
|
61
|
+
*/
|
|
62
|
+
export function onPageChange(this: import("../driver").XCUITestDriver, pageChangeNotification: import("./types").PageChangeNotification): Promise<void>;
|
|
63
|
+
export class onPageChange {
|
|
64
|
+
/**
|
|
65
|
+
* @this {XCUITestDriver}
|
|
66
|
+
* @param {import('./types').PageChangeNotification} pageChangeNotification
|
|
67
|
+
* @returns {Promise<void>}
|
|
68
|
+
*/
|
|
69
|
+
constructor(this: import("../driver").XCUITestDriver, pageChangeNotification: import("./types").PageChangeNotification);
|
|
70
|
+
curContext: string | undefined;
|
|
71
|
+
selectingNewPage: boolean | undefined;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @this {XCUITestDriver}
|
|
75
|
+
* @returns {Promise<void>}
|
|
76
|
+
*/
|
|
77
|
+
export function stopRemote(this: import("../driver").XCUITestDriver, closeWindowBeforeDisconnecting?: boolean): Promise<void>;
|
|
78
|
+
export class stopRemote {
|
|
79
|
+
/**
|
|
80
|
+
* @this {XCUITestDriver}
|
|
81
|
+
* @returns {Promise<void>}
|
|
82
|
+
*/
|
|
83
|
+
constructor(this: import("../driver").XCUITestDriver, closeWindowBeforeDisconnecting?: boolean);
|
|
84
|
+
curContext: any;
|
|
85
|
+
curWebFrames: any[];
|
|
86
|
+
remote: any;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @this {XCUITestDriver}
|
|
90
|
+
* @param {string|undefined|null} url
|
|
91
|
+
*/
|
|
92
|
+
export function setCurrentUrl(this: import("../driver").XCUITestDriver, url: string | undefined | null): void;
|
|
93
|
+
export class setCurrentUrl {
|
|
94
|
+
/**
|
|
95
|
+
* @this {XCUITestDriver}
|
|
96
|
+
* @param {string|undefined|null} url
|
|
97
|
+
*/
|
|
98
|
+
constructor(this: import("../driver").XCUITestDriver, url: string | undefined | null);
|
|
99
|
+
_currentUrl: string | null | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @this {XCUITestDriver}
|
|
103
|
+
* @returns {string|undefined|null}
|
|
104
|
+
*/
|
|
105
|
+
export function getCurrentUrl(this: import("../driver").XCUITestDriver): string | undefined | null;
|
|
106
|
+
/**
|
|
107
|
+
* @param {RegExp} titleRegExp
|
|
108
|
+
* @param {RegExp} urlRegExp
|
|
109
|
+
* @this {XCUITestDriver}
|
|
110
|
+
* @returns {Promise<string|undefined>}
|
|
111
|
+
*/
|
|
112
|
+
export function getRecentWebviewContextId(this: import("../driver").XCUITestDriver, titleRegExp: RegExp, urlRegExp: RegExp): Promise<string | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* @this {XCUITestDriver}
|
|
115
|
+
* @returns {boolean}
|
|
116
|
+
*/
|
|
117
|
+
export function isWebContext(this: import("../driver").XCUITestDriver): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* @this {XCUITestDriver}
|
|
120
|
+
* @returns {boolean}
|
|
121
|
+
*/
|
|
122
|
+
export function isWebview(this: import("../driver").XCUITestDriver): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* @this {XCUITestDriver}
|
|
125
|
+
* @returns {Promise<RemoteDebugger>}
|
|
126
|
+
*/
|
|
127
|
+
export function getNewRemoteDebugger(this: import("../driver").XCUITestDriver): Promise<RemoteDebugger>;
|
|
128
|
+
/**
|
|
129
|
+
* @this {XCUITestDriver}
|
|
130
|
+
* @returns {Promise<string>}
|
|
131
|
+
*/
|
|
132
|
+
export function getCurrentContext(this: import("../driver").XCUITestDriver): Promise<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Set context
|
|
135
|
+
*
|
|
136
|
+
* @param {string|Context} name - The name of context to set. It could be 'null' as NATIVE_WIN.
|
|
137
|
+
* @param {any} [callback] The callback. (It is not called in this method)
|
|
138
|
+
* @param {boolean} [skipReadyCheck=false] - Whether it waits for the new context is ready
|
|
139
|
+
* @this {XCUITestDriver}
|
|
140
|
+
* @returns {Promise<void>}
|
|
141
|
+
*/
|
|
142
|
+
export function setContext(this: import("../driver").XCUITestDriver, name: string | Context, callback?: any, skipReadyCheck?: boolean): Promise<void>;
|
|
143
|
+
export class setContext {
|
|
144
|
+
/**
|
|
145
|
+
* Set context
|
|
146
|
+
*
|
|
147
|
+
* @param {string|Context} name - The name of context to set. It could be 'null' as NATIVE_WIN.
|
|
148
|
+
* @param {any} [callback] The callback. (It is not called in this method)
|
|
149
|
+
* @param {boolean} [skipReadyCheck=false] - Whether it waits for the new context is ready
|
|
150
|
+
* @this {XCUITestDriver}
|
|
151
|
+
* @returns {Promise<void>}
|
|
152
|
+
*/
|
|
153
|
+
constructor(this: import("../driver").XCUITestDriver, name: string | Context, callback?: any, skipReadyCheck?: boolean);
|
|
154
|
+
curContext: string | null | undefined;
|
|
155
|
+
curWindowHandle: string | undefined;
|
|
156
|
+
selectingNewPage: boolean | undefined;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @this {XCUITestDriver}
|
|
160
|
+
* @returns {Promise<string[]|FullContext[]>}
|
|
161
|
+
*/
|
|
162
|
+
export function getContexts(this: import("../driver").XCUITestDriver): Promise<string[] | FullContext[]>;
|
|
163
|
+
/**
|
|
164
|
+
* @this {XCUITestDriver}
|
|
165
|
+
* @param {string} name
|
|
166
|
+
* @param {boolean} [skipReadyCheck]
|
|
167
|
+
* @returns {Promise<void>}
|
|
168
|
+
*/
|
|
169
|
+
export function setWindow(this: import("../driver").XCUITestDriver, name: string, skipReadyCheck?: boolean): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* @this {XCUITestDriver}
|
|
172
|
+
* @returns {Promise<string>}
|
|
173
|
+
*/
|
|
174
|
+
export function getWindowHandle(this: import("../driver").XCUITestDriver): Promise<string>;
|
|
175
|
+
/**
|
|
176
|
+
* @this {XCUITestDriver}
|
|
177
|
+
* @returns {Promise<string[]>}
|
|
178
|
+
*/
|
|
179
|
+
export function getWindowHandles(this: import("../driver").XCUITestDriver): Promise<string[]>;
|
|
180
|
+
/**
|
|
181
|
+
* https://github.com/appium/appium/issues/20741
|
|
182
|
+
*
|
|
183
|
+
* @this {XCUITestDriver}
|
|
184
|
+
* @returns {Promise<void>}
|
|
185
|
+
*/
|
|
186
|
+
export function notifyBiDiContextChange(this: import("../driver").XCUITestDriver): Promise<void>;
|
|
187
|
+
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
188
|
+
export type Context = import("./types").Context;
|
|
189
|
+
export type FullContext = import("./types").FullContext;
|
|
190
|
+
import { RemoteDebugger } from 'appium-remote-debugger';
|
|
191
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../lib/commands/context.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,uFAHW,OAAO,GACL,OAAO,CAAC,OAAO,SAAS,EAAE,WAAW,EAAE,CAAC,CAepD;;IAlBD;;;;OAIG;IACH,+DAHW,OAAO,EAgBjB;IANC,mBAA4B;;AAQ9B;;;;GAIG;AACH,wEAFa,OAAO,CAInB;AAED;;;GAGG;AACH,iFAFa,OAAO,CAAC,IAAI,CAAC,CAwCzB;AAED;;;GAGG;AACH,2FAFa,OAAO,CAAC,OAAO,UAAU,EAAE,IAAI,EAAE,CAAC,CA0C9C;AAED;;;GAGG;AACH,mFAFa,OAAO,CAAC,IAAI,CAAC,CA6BzB;;IA1BC,uBAA+C;IAc7C,oBAAsB;;AAc1B;;;;;;;;;;;;;;GAcG;AACH,+FAJW,MAAM,GACJ,OAAO,CAAC,OAAO,EAAE,CAAC,CAmC9B;AAED;;;;GAIG;AACH,+FAHW,OAAO,SAAS,EAAE,sBAAsB,GACtC,OAAO,CAAC,IAAI,CAAC,CAmHzB;;IAtHD;;;;OAIG;IACH,8EAHW,OAAO,SAAS,EAAE,sBAAsB,EAoHlD;IA/BG,+BAAwC;IAkBxC,sCAA4B;;AAehC;;;GAGG;AACH,gHAFa,OAAO,CAAC,IAAI,CAAC,CAezB;;IAjBD;;;OAGG;IACH,gGAaC;IAJC,gBAAsB;IAEtB,oBAAsB;IACtB,YAAkB;;AAGpB;;;GAGG;AACH,6EAFW,MAAM,GAAC,SAAS,GAAC,IAAI,QAI/B;;IAND;;;OAGG;IACH,2DAFW,MAAM,GAAC,SAAS,GAAC,IAAI,EAI/B;IADC,uCAAsB;;AAGxB;;;GAGG;AACH,yEAFa,MAAM,GAAC,SAAS,GAAC,IAAI,CAIjC;AAED;;;;;GAKG;AACH,iGALW,MAAM,aACN,MAAM,GAEJ,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,CAuBrC;AAED;;;GAGG;AACH,wEAFa,OAAO,CAInB;AAED;;;GAGG;AACH,qEAFa,OAAO,CAInB;AAED;;;GAGG;AACH,gFAFa,OAAO,CAAC,cAAc,CAAC,CA4BnC;AAED;;;GAGG;AACH,6EAFa,OAAO,CAAC,MAAM,CAAC,CAO3B;AAED;;;;;;;;GAQG;AACH,2EANW,MAAM,GAAC,OAAO,aACd,GAAG,mBACH,OAAO,GAEL,OAAO,CAAC,IAAI,CAAC,CAqGzB;;IA5GD;;;;;;;;OAQG;IACH,4DANW,MAAM,GAAC,OAAO,aACd,GAAG,mBACH,OAAO,EAuGjB;IApEK,sCAAsB;IAwBN,oCAAgC;IAKhD,sCAA4B;;AAyClC;;;GAGG;AACH,uEAFa,OAAO,CAAC,MAAM,EAAE,GAAC,WAAW,EAAE,CAAC,CAiB3C;AAED;;;;;GAKG;AACH,0EAJW,MAAM,mBACN,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CAazB;AAED;;;GAGG;AACH,2EAFa,OAAO,CAAC,MAAM,CAAC,CAY3B;AAED;;;GAGG;AACH,4EAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAoB7B;AAmCD;;;;;GAKG;AACH,mFAFa,OAAO,CAAC,IAAI,CAAC,CAMzB;6BAIY,OAAO,WAAW,EAAE,cAAc;sBAClC,OAAO,SAAS,EAAE,OAAO;0BACzB,OAAO,SAAS,EAAE,WAAW;+BA/rBS,wBAAwB"}
|