@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,311 @@
|
|
|
1
|
+
import {createParser} from 'css-selector-parser';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import {errors} from 'appium/driver';
|
|
4
|
+
import log from './logger.js';
|
|
5
|
+
|
|
6
|
+
const CssConverter = {};
|
|
7
|
+
|
|
8
|
+
const parseCssSelector = createParser({
|
|
9
|
+
syntax: {
|
|
10
|
+
pseudoClasses: {
|
|
11
|
+
unknown: 'accept',
|
|
12
|
+
definitions: {
|
|
13
|
+
Selector: ['has'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
combinators: ['>', '+', '~'],
|
|
17
|
+
attributes: {
|
|
18
|
+
operators: ['^=', '$=', '*=', '~=', '='],
|
|
19
|
+
},
|
|
20
|
+
ids: true,
|
|
21
|
+
classNames: true,
|
|
22
|
+
tag: {
|
|
23
|
+
wildcard: true,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
substitutes: true,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const BOOLEAN_ATTRS = ['visible', 'accessible', 'accessibility-container', 'enabled'];
|
|
30
|
+
|
|
31
|
+
const NUMERIC_ATTRS = ['index'];
|
|
32
|
+
|
|
33
|
+
const STR_ATTRS = ['label', 'name', 'value', 'type'];
|
|
34
|
+
|
|
35
|
+
const ALL_ATTRS = [...BOOLEAN_ATTRS, ...NUMERIC_ATTRS, ...STR_ATTRS];
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {[string, string[]][]}
|
|
39
|
+
*/
|
|
40
|
+
const ATTRIBUTE_ALIASES = [
|
|
41
|
+
['name', ['id']],
|
|
42
|
+
['index', ['nth-child']],
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Convert hyphen separated word to camel case
|
|
47
|
+
*
|
|
48
|
+
* @param {string?} str
|
|
49
|
+
* @returns {string} The hyphen separated word translated to camel case
|
|
50
|
+
*/
|
|
51
|
+
function toCamelCase(str) {
|
|
52
|
+
if (!str) {
|
|
53
|
+
return '';
|
|
54
|
+
}
|
|
55
|
+
const tokens = str
|
|
56
|
+
.split('-')
|
|
57
|
+
.map((str) => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase());
|
|
58
|
+
const out = tokens.join('');
|
|
59
|
+
return out.charAt(0).toLowerCase() + out.slice(1);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Get the boolean from a CSS object. If empty, return true. If not true/false/empty, throw exception
|
|
64
|
+
*
|
|
65
|
+
* @param {import('css-selector-parser').AstAttribute|import('css-selector-parser').AstPseudoClass} cssAttr
|
|
66
|
+
* @returns {string} Either 'true' or 'false'. If value is empty, return 'true'
|
|
67
|
+
*/
|
|
68
|
+
function requireBoolean(cssAttr) {
|
|
69
|
+
// @ts-ignore We only support strings
|
|
70
|
+
const attrValue = cssAttr.value?.value;
|
|
71
|
+
const val = _.toLower(attrValue) || 'true'; // an omitted boolean attribute means 'true' (e.g.: input[checked] means checked is true)
|
|
72
|
+
switch (val) {
|
|
73
|
+
case '0':
|
|
74
|
+
case 'false':
|
|
75
|
+
return '0';
|
|
76
|
+
case '1':
|
|
77
|
+
case 'true':
|
|
78
|
+
return '1';
|
|
79
|
+
default:
|
|
80
|
+
throw new TypeError(
|
|
81
|
+
`'${cssAttr.name}' must be true/1 or false/0 or empty. Found '${attrValue}'`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Get the canonical form of a CSS attribute name
|
|
88
|
+
*
|
|
89
|
+
* Converts to lowercase and if an attribute name is an alias for something else, return
|
|
90
|
+
* what it is an alias for
|
|
91
|
+
*
|
|
92
|
+
* @param {import('css-selector-parser').AstAttribute|import('css-selector-parser').AstPseudoClass} cssEntity
|
|
93
|
+
* @returns {string} The canonical attribute name
|
|
94
|
+
*/
|
|
95
|
+
function requireEntityName(cssEntity) {
|
|
96
|
+
const entityName = cssEntity.name.toLowerCase();
|
|
97
|
+
|
|
98
|
+
// Check if it's supported and if it is, return it
|
|
99
|
+
if (ALL_ATTRS.includes(entityName)) {
|
|
100
|
+
return entityName.toLowerCase();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// If attrName is an alias for something else, return that
|
|
104
|
+
for (const [officialAttr, aliasAttrs] of ATTRIBUTE_ALIASES) {
|
|
105
|
+
if (aliasAttrs.includes(entityName)) {
|
|
106
|
+
return officialAttr;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
throw new Error(
|
|
110
|
+
`'${entityName}' is not a valid attribute. ` +
|
|
111
|
+
`Supported attributes are: '${ALL_ATTRS.join(', ')}'`,
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Convert a CSS attribute into a UiSelector method call
|
|
117
|
+
*
|
|
118
|
+
* @param {import('css-selector-parser').AstAttribute} cssAttr CSS attribute object
|
|
119
|
+
* @returns {string|{index: string|undefined}} CSS attribute parsed as UiSelector
|
|
120
|
+
*/
|
|
121
|
+
function parseAttr(cssAttr) {
|
|
122
|
+
// @ts-ignore We only care for strings
|
|
123
|
+
const attrValue = cssAttr.value?.value;
|
|
124
|
+
if (!_.isString(attrValue) && !_.isEmpty(attrValue)) {
|
|
125
|
+
throw new TypeError(
|
|
126
|
+
`'${cssAttr.name}=${attrValue}' is an invalid attribute. ` +
|
|
127
|
+
`Only 'string' and empty attribute types are supported. Found '${attrValue}'`,
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
const attrName = toCamelCase(requireEntityName(cssAttr));
|
|
131
|
+
|
|
132
|
+
// Validate that it's a supported attribute
|
|
133
|
+
if (!STR_ATTRS.includes(attrName) && !BOOLEAN_ATTRS.includes(attrName)) {
|
|
134
|
+
throw new Error(
|
|
135
|
+
`'${attrName}' is not supported. Supported attributes are ` +
|
|
136
|
+
`'${[...STR_ATTRS, ...BOOLEAN_ATTRS].join(', ')}'`,
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Parse index if it's an index attribute
|
|
141
|
+
if (attrName === 'index') {
|
|
142
|
+
return {index: attrValue};
|
|
143
|
+
}
|
|
144
|
+
if (BOOLEAN_ATTRS.includes(attrName)) {
|
|
145
|
+
return `${attrName} == ${requireBoolean(cssAttr)}`;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
let value = attrValue || '';
|
|
149
|
+
if (value === '') {
|
|
150
|
+
return `[${attrName} LIKE ${value}]`;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
switch (cssAttr.operator) {
|
|
154
|
+
case '=':
|
|
155
|
+
return `${attrName} == "${value}"`;
|
|
156
|
+
case '*=':
|
|
157
|
+
return `${attrName} MATCHES "${_.escapeRegExp(value)}"`;
|
|
158
|
+
case '^=':
|
|
159
|
+
return `${attrName} BEGINSWITH "${value}"`;
|
|
160
|
+
case '$=':
|
|
161
|
+
return `${attrName} ENDSWITH "${value}"`;
|
|
162
|
+
case '~=':
|
|
163
|
+
return `${attrName} CONTAINS "${value}"`;
|
|
164
|
+
default:
|
|
165
|
+
// Unreachable, but adding error in case a new CSS attribute is added.
|
|
166
|
+
throw new Error(
|
|
167
|
+
`Unsupported CSS attribute operator '${cssAttr.operator}'. ` +
|
|
168
|
+
` '=', '*=', '^=', '$=' and '~=' are supported.`,
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Convert a CSS pseudo class to a UiSelector
|
|
175
|
+
*
|
|
176
|
+
* @param {import('css-selector-parser').AstPseudoClass} cssPseudo
|
|
177
|
+
* @returns {string|{index: string|undefined}|undefined} Pseudo selector parsed as UiSelector
|
|
178
|
+
*/
|
|
179
|
+
function parsePseudo(cssPseudo) {
|
|
180
|
+
// @ts-ignore We only care for strings
|
|
181
|
+
const argValue = cssPseudo.argument?.value;
|
|
182
|
+
if (!_.isString(argValue) && !_.isEmpty(argValue)) {
|
|
183
|
+
throw new TypeError(
|
|
184
|
+
`'${cssPseudo.name}=${argValue}'. ` +
|
|
185
|
+
`Unsupported css pseudo class value: '${argValue}'. Only 'string' type or empty is supported.`,
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const pseudoName = requireEntityName(cssPseudo);
|
|
190
|
+
|
|
191
|
+
if (BOOLEAN_ATTRS.includes(pseudoName)) {
|
|
192
|
+
return `${toCamelCase(pseudoName)} == ${requireBoolean(cssPseudo)}`;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (pseudoName === 'index') {
|
|
196
|
+
return {index: argValue};
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Convert a CSS rule to a UiSelector
|
|
202
|
+
* @param {import('css-selector-parser').AstRule} cssRule CSS rule definition
|
|
203
|
+
*/
|
|
204
|
+
function parseCssRule(cssRule) {
|
|
205
|
+
if (cssRule.combinator && ![' ', '>'].includes(cssRule.combinator)) {
|
|
206
|
+
throw new Error(
|
|
207
|
+
`'${cssRule.combinator}' is not a supported combinator. ` +
|
|
208
|
+
`Only child combinator (>) and descendant combinator are supported.`,
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
let iosClassChainSelector = '';
|
|
213
|
+
const astClassNames = /** @type {import('css-selector-parser').AstClassName[]} */ (
|
|
214
|
+
cssRule.items.filter(({type}) => type === 'ClassName')
|
|
215
|
+
);
|
|
216
|
+
const classNames = astClassNames.map(({name}) => name);
|
|
217
|
+
if (classNames.length) {
|
|
218
|
+
throw new errors.InvalidSelectorError(`'${[cssRule || '', ...classNames].join('.')}'
|
|
219
|
+
is not a valid ios class. Must be a single string (e.g.: XCUIElementTypeWindow) without
|
|
220
|
+
dots separating them`);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const astTag = /** @type {import('css-selector-parser').AstTagName|undefined} */ (
|
|
224
|
+
cssRule.items.find(({type}) => type === 'TagName')
|
|
225
|
+
);
|
|
226
|
+
let tagName = astTag?.name ?? '';
|
|
227
|
+
if (tagName && tagName !== '*' && !_.startsWith(_.toLower(tagName), 'xcuielementtype')) {
|
|
228
|
+
const capitalizedTagName = tagName.charAt(0).toUpperCase() + tagName.slice(1);
|
|
229
|
+
tagName = `XCUIElementType${capitalizedTagName}`;
|
|
230
|
+
}
|
|
231
|
+
iosClassChainSelector += tagName || '*';
|
|
232
|
+
|
|
233
|
+
/** @type {(string|{index: string|undefined}|undefined)[]} */
|
|
234
|
+
const attrs = [];
|
|
235
|
+
|
|
236
|
+
const astIds = /** @type {import('css-selector-parser').AstId[]} */ (
|
|
237
|
+
cssRule.items.filter(({type}) => type === 'Id')
|
|
238
|
+
);
|
|
239
|
+
const ids = astIds.map(({name}) => name);
|
|
240
|
+
if (ids.length) {
|
|
241
|
+
attrs.push(`name == "${ids[0]}"`);
|
|
242
|
+
}
|
|
243
|
+
const attributes = /** @type {import('css-selector-parser').AstAttribute[]} */ (
|
|
244
|
+
cssRule.items.filter(({type}) => type === 'Attribute')
|
|
245
|
+
);
|
|
246
|
+
for (const attr of attributes) {
|
|
247
|
+
attrs.push(parseAttr(attr));
|
|
248
|
+
}
|
|
249
|
+
const pseudoClasses = /** @type {import('css-selector-parser').AstPseudoClass[]} */ (
|
|
250
|
+
cssRule.items.filter(({type}) => type === 'PseudoClass')
|
|
251
|
+
);
|
|
252
|
+
for (const pseudo of pseudoClasses) {
|
|
253
|
+
attrs.push(parsePseudo(pseudo));
|
|
254
|
+
}
|
|
255
|
+
const nonIndexAttrs = attrs.filter((attr) => _.isString(attr));
|
|
256
|
+
if (!_.isEmpty(nonIndexAttrs)) {
|
|
257
|
+
iosClassChainSelector += `[\`${nonIndexAttrs.join(' AND ')}\`]`;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const indexAttr = attrs.find((attr) => _.isObject(attr) && attr.index);
|
|
261
|
+
if (indexAttr) {
|
|
262
|
+
iosClassChainSelector += `[${/** @type { {index: string} } */ (indexAttr).index}]`;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
if (cssRule.nestedRule) {
|
|
266
|
+
iosClassChainSelector += `/${parseCssRule(cssRule.nestedRule)}`;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
return cssRule.combinator === '>' ? iosClassChainSelector : `**/${iosClassChainSelector}`;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Convert CSS object to iOS Class Chain selector
|
|
274
|
+
*
|
|
275
|
+
* @param {import('css-selector-parser').AstSelector} css CSS object
|
|
276
|
+
* @returns {string} The CSS object parsed as a UiSelector
|
|
277
|
+
*/
|
|
278
|
+
function parseCssObject(css) {
|
|
279
|
+
if (!_.isEmpty(css.rules)) {
|
|
280
|
+
return parseCssRule(css.rules[0]);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
throw new Error('No rules could be parsed out of the current selector');
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Convert a CSS selector to a iOS Class Chain selector
|
|
288
|
+
* @param {string} cssSelector CSS Selector
|
|
289
|
+
* @returns {string} The CSS selector converted to an iOS Class Chain
|
|
290
|
+
*/
|
|
291
|
+
CssConverter.toIosClassChainSelector = function toIosClassChainSelector(cssSelector) {
|
|
292
|
+
let cssObj;
|
|
293
|
+
try {
|
|
294
|
+
cssObj = parseCssSelector(cssSelector);
|
|
295
|
+
} catch (e) {
|
|
296
|
+
log.debug(e.stack);
|
|
297
|
+
throw new errors.InvalidSelectorError(
|
|
298
|
+
`Invalid CSS selector '${cssSelector}'. Reason: '${e.message}'`,
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
try {
|
|
302
|
+
return parseCssObject(cssObj);
|
|
303
|
+
} catch (e) {
|
|
304
|
+
log.debug(e.stack);
|
|
305
|
+
throw new errors.InvalidSelectorError(
|
|
306
|
+
`Unsupported CSS selector '${cssSelector}'. Reason: '${e.message}'`,
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
export default CssConverter;
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
// These platform names should be valid in simulator name
|
|
2
|
+
const PLATFORM_NAME_IOS = 'iOS';
|
|
3
|
+
const PLATFORM_NAME_TVOS = 'tvOS';
|
|
4
|
+
|
|
5
|
+
const desiredCapConstraints = /** @type {const} */ ({
|
|
6
|
+
platformName: {
|
|
7
|
+
// override
|
|
8
|
+
presence: true,
|
|
9
|
+
isString: true,
|
|
10
|
+
inclusionCaseInsensitive: [PLATFORM_NAME_IOS, PLATFORM_NAME_TVOS],
|
|
11
|
+
},
|
|
12
|
+
browserName: {
|
|
13
|
+
isString: true,
|
|
14
|
+
},
|
|
15
|
+
app: {
|
|
16
|
+
isString: true,
|
|
17
|
+
},
|
|
18
|
+
calendarFormat: {
|
|
19
|
+
isString: true,
|
|
20
|
+
},
|
|
21
|
+
bundleId: {
|
|
22
|
+
isString: true,
|
|
23
|
+
},
|
|
24
|
+
udid: {
|
|
25
|
+
isString: true,
|
|
26
|
+
},
|
|
27
|
+
autoAcceptAlerts: {
|
|
28
|
+
isBoolean: true,
|
|
29
|
+
},
|
|
30
|
+
autoDismissAlerts: {
|
|
31
|
+
isBoolean: true,
|
|
32
|
+
},
|
|
33
|
+
nativeWebTap: {
|
|
34
|
+
isBoolean: true,
|
|
35
|
+
},
|
|
36
|
+
safariInitialUrl: {
|
|
37
|
+
isString: true,
|
|
38
|
+
},
|
|
39
|
+
initialDeeplinkUrl: {
|
|
40
|
+
isString: true,
|
|
41
|
+
},
|
|
42
|
+
safariAllowPopups: {
|
|
43
|
+
isBoolean: true,
|
|
44
|
+
},
|
|
45
|
+
safariIgnoreFraudWarning: {
|
|
46
|
+
isBoolean: true,
|
|
47
|
+
},
|
|
48
|
+
safariOpenLinksInBackground: {
|
|
49
|
+
isBoolean: true,
|
|
50
|
+
},
|
|
51
|
+
safariShowFullResponse: {
|
|
52
|
+
isBoolean: true,
|
|
53
|
+
},
|
|
54
|
+
keepKeyChains: {
|
|
55
|
+
isBoolean: true,
|
|
56
|
+
},
|
|
57
|
+
resetLocationService: {
|
|
58
|
+
isBoolean: true,
|
|
59
|
+
},
|
|
60
|
+
localizableStringsDir: {
|
|
61
|
+
isString: true,
|
|
62
|
+
},
|
|
63
|
+
processArguments: {
|
|
64
|
+
// recognize the cap,
|
|
65
|
+
// but validate in the driver#validateDesiredCaps method
|
|
66
|
+
},
|
|
67
|
+
webviewConnectRetries: {
|
|
68
|
+
isNumber: true,
|
|
69
|
+
},
|
|
70
|
+
clearSystemFiles: {
|
|
71
|
+
isBoolean: true,
|
|
72
|
+
},
|
|
73
|
+
customSSLCert: {
|
|
74
|
+
isString: true,
|
|
75
|
+
},
|
|
76
|
+
remoteDebugProxy: {
|
|
77
|
+
isString: true,
|
|
78
|
+
},
|
|
79
|
+
enablePerformanceLogging: {
|
|
80
|
+
isBoolean: true,
|
|
81
|
+
},
|
|
82
|
+
enableAsyncExecuteFromHttps: {
|
|
83
|
+
isBoolean: true,
|
|
84
|
+
},
|
|
85
|
+
fullContextList: {
|
|
86
|
+
isBoolean: true,
|
|
87
|
+
},
|
|
88
|
+
ignoreAboutBlankUrl: {
|
|
89
|
+
isBoolean: true,
|
|
90
|
+
},
|
|
91
|
+
skipLogCapture: {
|
|
92
|
+
isBoolean: true,
|
|
93
|
+
},
|
|
94
|
+
deviceName: {
|
|
95
|
+
isString: true,
|
|
96
|
+
},
|
|
97
|
+
showXcodeLog: {
|
|
98
|
+
isBoolean: true,
|
|
99
|
+
},
|
|
100
|
+
wdaLocalPort: {
|
|
101
|
+
isNumber: true,
|
|
102
|
+
},
|
|
103
|
+
wdaRemotePort: {
|
|
104
|
+
isNumber: true,
|
|
105
|
+
},
|
|
106
|
+
wdaBindingIP: {
|
|
107
|
+
isString: true,
|
|
108
|
+
},
|
|
109
|
+
wdaBaseUrl: {
|
|
110
|
+
isString: true,
|
|
111
|
+
},
|
|
112
|
+
iosInstallPause: {
|
|
113
|
+
isNumber: true,
|
|
114
|
+
},
|
|
115
|
+
xcodeConfigFile: {
|
|
116
|
+
isString: true,
|
|
117
|
+
},
|
|
118
|
+
xcodeOrgId: {
|
|
119
|
+
isString: true,
|
|
120
|
+
},
|
|
121
|
+
xcodeSigningId: {
|
|
122
|
+
isString: true,
|
|
123
|
+
},
|
|
124
|
+
keychainPath: {
|
|
125
|
+
isString: true,
|
|
126
|
+
},
|
|
127
|
+
keychainPassword: {
|
|
128
|
+
isString: true,
|
|
129
|
+
},
|
|
130
|
+
bootstrapPath: {
|
|
131
|
+
isString: true,
|
|
132
|
+
},
|
|
133
|
+
agentPath: {
|
|
134
|
+
isString: true,
|
|
135
|
+
},
|
|
136
|
+
scaleFactor: {
|
|
137
|
+
isString: true,
|
|
138
|
+
},
|
|
139
|
+
usePrebuiltWDA: {
|
|
140
|
+
isBoolean: true,
|
|
141
|
+
},
|
|
142
|
+
prebuiltWDAPath: {
|
|
143
|
+
isString: true,
|
|
144
|
+
},
|
|
145
|
+
usePreinstalledWDA: {
|
|
146
|
+
isBoolean: true,
|
|
147
|
+
},
|
|
148
|
+
updatedWDABundleIdSuffix: {
|
|
149
|
+
isString: true,
|
|
150
|
+
},
|
|
151
|
+
webDriverAgentUrl: {
|
|
152
|
+
isString: true,
|
|
153
|
+
},
|
|
154
|
+
derivedDataPath: {
|
|
155
|
+
isString: true,
|
|
156
|
+
},
|
|
157
|
+
launchWithIDB: {
|
|
158
|
+
isBoolean: true,
|
|
159
|
+
},
|
|
160
|
+
useNewWDA: {
|
|
161
|
+
isBoolean: true,
|
|
162
|
+
},
|
|
163
|
+
wdaLaunchTimeout: {
|
|
164
|
+
isNumber: true,
|
|
165
|
+
},
|
|
166
|
+
wdaConnectionTimeout: {
|
|
167
|
+
isNumber: true,
|
|
168
|
+
},
|
|
169
|
+
updatedWDABundleId: {
|
|
170
|
+
isString: true,
|
|
171
|
+
},
|
|
172
|
+
resetOnSessionStartOnly: {
|
|
173
|
+
isBoolean: true,
|
|
174
|
+
},
|
|
175
|
+
commandTimeouts: {
|
|
176
|
+
// recognize the cap,
|
|
177
|
+
// but validate in the driver#validateDesiredCaps method
|
|
178
|
+
},
|
|
179
|
+
wdaStartupRetries: {
|
|
180
|
+
isNumber: true,
|
|
181
|
+
},
|
|
182
|
+
wdaStartupRetryInterval: {
|
|
183
|
+
isNumber: true,
|
|
184
|
+
},
|
|
185
|
+
prebuildWDA: {
|
|
186
|
+
isBoolean: true,
|
|
187
|
+
},
|
|
188
|
+
connectHardwareKeyboard: {
|
|
189
|
+
isBoolean: true,
|
|
190
|
+
},
|
|
191
|
+
forceTurnOnSoftwareKeyboardSimulator: {
|
|
192
|
+
isBoolean: true,
|
|
193
|
+
},
|
|
194
|
+
simulatorPasteboardAutomaticSync: {
|
|
195
|
+
isString: true,
|
|
196
|
+
},
|
|
197
|
+
simulatorDevicesSetPath: {
|
|
198
|
+
isString: true,
|
|
199
|
+
},
|
|
200
|
+
calendarAccessAuthorized: {
|
|
201
|
+
isBoolean: true,
|
|
202
|
+
deprecated: true
|
|
203
|
+
},
|
|
204
|
+
useSimpleBuildTest: {
|
|
205
|
+
isBoolean: true,
|
|
206
|
+
deprecated: true
|
|
207
|
+
},
|
|
208
|
+
waitForQuiescence: {
|
|
209
|
+
isBoolean: true,
|
|
210
|
+
deprecated: true
|
|
211
|
+
},
|
|
212
|
+
maxTypingFrequency: {
|
|
213
|
+
isNumber: true,
|
|
214
|
+
},
|
|
215
|
+
nativeTyping: {
|
|
216
|
+
isBoolean: true,
|
|
217
|
+
},
|
|
218
|
+
simpleIsVisibleCheck: {
|
|
219
|
+
isBoolean: true,
|
|
220
|
+
},
|
|
221
|
+
shouldUseSingletonTestManager: {
|
|
222
|
+
isBoolean: true,
|
|
223
|
+
},
|
|
224
|
+
isHeadless: {
|
|
225
|
+
isBoolean: true,
|
|
226
|
+
},
|
|
227
|
+
useXctestrunFile: {
|
|
228
|
+
isBoolean: true,
|
|
229
|
+
},
|
|
230
|
+
absoluteWebLocations: {
|
|
231
|
+
isBoolean: true,
|
|
232
|
+
},
|
|
233
|
+
simulatorWindowCenter: {
|
|
234
|
+
isString: true,
|
|
235
|
+
},
|
|
236
|
+
simulatorStartupTimeout: {
|
|
237
|
+
isNumber: true,
|
|
238
|
+
},
|
|
239
|
+
simulatorTracePointer: {
|
|
240
|
+
isBoolean: true,
|
|
241
|
+
},
|
|
242
|
+
useJSONSource: {
|
|
243
|
+
isBoolean: true,
|
|
244
|
+
},
|
|
245
|
+
enforceFreshSimulatorCreation: {
|
|
246
|
+
isBoolean: true,
|
|
247
|
+
},
|
|
248
|
+
shutdownOtherSimulators: {
|
|
249
|
+
isBoolean: true,
|
|
250
|
+
},
|
|
251
|
+
keychainsExcludePatterns: {
|
|
252
|
+
isString: true,
|
|
253
|
+
},
|
|
254
|
+
showSafariConsoleLog: {
|
|
255
|
+
isBoolean: true,
|
|
256
|
+
},
|
|
257
|
+
showSafariNetworkLog: {
|
|
258
|
+
isBoolean: true,
|
|
259
|
+
},
|
|
260
|
+
safariGarbageCollect: {
|
|
261
|
+
isBoolean: true,
|
|
262
|
+
},
|
|
263
|
+
safariGlobalPreferences: {
|
|
264
|
+
isObject: true,
|
|
265
|
+
},
|
|
266
|
+
safariLogAllCommunication: {
|
|
267
|
+
isBoolean: true,
|
|
268
|
+
},
|
|
269
|
+
safariLogAllCommunicationHexDump: {
|
|
270
|
+
isBoolean: true,
|
|
271
|
+
},
|
|
272
|
+
safariSocketChunkSize: {
|
|
273
|
+
isNumber: true,
|
|
274
|
+
},
|
|
275
|
+
mjpegServerPort: {
|
|
276
|
+
isNumber: true,
|
|
277
|
+
},
|
|
278
|
+
reduceMotion: {
|
|
279
|
+
isBoolean: true,
|
|
280
|
+
},
|
|
281
|
+
reduceTransparency: {
|
|
282
|
+
isBoolean: true,
|
|
283
|
+
},
|
|
284
|
+
autoFillPasswords: {
|
|
285
|
+
isBoolean: true,
|
|
286
|
+
},
|
|
287
|
+
mjpegScreenshotUrl: {
|
|
288
|
+
isString: true,
|
|
289
|
+
},
|
|
290
|
+
permissions: {
|
|
291
|
+
isString: true,
|
|
292
|
+
},
|
|
293
|
+
screenshotQuality: {
|
|
294
|
+
isNumber: true,
|
|
295
|
+
},
|
|
296
|
+
wdaEventloopIdleDelay: {
|
|
297
|
+
isNumber: true,
|
|
298
|
+
},
|
|
299
|
+
otherApps: {
|
|
300
|
+
isString: true,
|
|
301
|
+
},
|
|
302
|
+
includeSafariInWebviews: {
|
|
303
|
+
isBoolean: true,
|
|
304
|
+
},
|
|
305
|
+
additionalWebviewBundleIds: {
|
|
306
|
+
// recognize the capability
|
|
307
|
+
// but validate in driver#validateDesiredCaps
|
|
308
|
+
},
|
|
309
|
+
webviewConnectTimeout: {
|
|
310
|
+
isNumber: true,
|
|
311
|
+
},
|
|
312
|
+
webviewAtomWaitTimeout: {
|
|
313
|
+
isNumber: true,
|
|
314
|
+
},
|
|
315
|
+
showIOSLog: {
|
|
316
|
+
isBoolean: true,
|
|
317
|
+
},
|
|
318
|
+
iosSimulatorLogsPredicate: {
|
|
319
|
+
isString: true,
|
|
320
|
+
},
|
|
321
|
+
iosSyslogFile: {
|
|
322
|
+
isString: true,
|
|
323
|
+
},
|
|
324
|
+
simulatorLogLevel: {
|
|
325
|
+
isString: true,
|
|
326
|
+
},
|
|
327
|
+
appPushTimeout: {
|
|
328
|
+
isNumber: true,
|
|
329
|
+
},
|
|
330
|
+
nativeWebTapStrict: {
|
|
331
|
+
isBoolean: true,
|
|
332
|
+
},
|
|
333
|
+
safariWebInspectorMaxFrameLength: {
|
|
334
|
+
isNumber: true,
|
|
335
|
+
},
|
|
336
|
+
allowProvisioningDeviceRegistration: {
|
|
337
|
+
isBoolean: true,
|
|
338
|
+
},
|
|
339
|
+
waitForIdleTimeout: {
|
|
340
|
+
isNumber: true,
|
|
341
|
+
},
|
|
342
|
+
resultBundlePath: {
|
|
343
|
+
isString: true,
|
|
344
|
+
},
|
|
345
|
+
resultBundleVersion: {
|
|
346
|
+
isNumber: true,
|
|
347
|
+
},
|
|
348
|
+
safariIgnoreWebHostnames: {
|
|
349
|
+
isString: true,
|
|
350
|
+
},
|
|
351
|
+
disableAutomaticScreenshots: {
|
|
352
|
+
isBoolean: true,
|
|
353
|
+
},
|
|
354
|
+
shouldTerminateApp: {
|
|
355
|
+
isBoolean: true,
|
|
356
|
+
},
|
|
357
|
+
forceAppLaunch: {
|
|
358
|
+
isBoolean: true,
|
|
359
|
+
},
|
|
360
|
+
useNativeCachingStrategy: {
|
|
361
|
+
isBoolean: true,
|
|
362
|
+
},
|
|
363
|
+
appInstallStrategy: {
|
|
364
|
+
deprecated: true,
|
|
365
|
+
isString: true,
|
|
366
|
+
inclusionCaseInsensitive: ['serial', 'parallel', 'ios-deploy'],
|
|
367
|
+
},
|
|
368
|
+
enforceAppInstall: {
|
|
369
|
+
isBoolean: true,
|
|
370
|
+
},
|
|
371
|
+
skipTriggerInputEventAfterSendkeys: {
|
|
372
|
+
isBoolean: true,
|
|
373
|
+
},
|
|
374
|
+
sendKeyStrategy: {
|
|
375
|
+
isString: true,
|
|
376
|
+
},
|
|
377
|
+
skipSyncUiDialogTranslation: {
|
|
378
|
+
isBoolean: true,
|
|
379
|
+
},
|
|
380
|
+
forceSimulatorSoftwareKeyboardPresence: {
|
|
381
|
+
isBoolean: true,
|
|
382
|
+
},
|
|
383
|
+
appLaunchStateTimeoutSec: {
|
|
384
|
+
isNumber: true,
|
|
385
|
+
},
|
|
386
|
+
appTimeZone: {
|
|
387
|
+
isString: true,
|
|
388
|
+
},
|
|
389
|
+
pageLoadStrategy: {
|
|
390
|
+
isString: true,
|
|
391
|
+
inclusionCaseInsensitive: ['none', 'eager', 'normal']
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
export {desiredCapConstraints, PLATFORM_NAME_IOS, PLATFORM_NAME_TVOS};
|
|
396
|
+
export default desiredCapConstraints;
|