@limrun/appium-xcuitest-driver 10.4.3-lim.1 → 10.10.1-lim.2

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.
Files changed (205) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/build/lib/app-utils.d.ts +2 -2
  3. package/build/lib/app-utils.d.ts.map +1 -1
  4. package/build/lib/app-utils.js +4 -1
  5. package/build/lib/app-utils.js.map +1 -1
  6. package/build/lib/commands/app-management.js +2 -2
  7. package/build/lib/commands/app-management.js.map +1 -1
  8. package/build/lib/commands/appearance.js +2 -2
  9. package/build/lib/commands/appearance.js.map +1 -1
  10. package/build/lib/commands/bidi/models.d.ts.map +1 -1
  11. package/build/lib/commands/bidi/models.js +1 -0
  12. package/build/lib/commands/bidi/models.js.map +1 -1
  13. package/build/lib/commands/bidi/types.d.ts +1 -0
  14. package/build/lib/commands/bidi/types.d.ts.map +1 -1
  15. package/build/lib/commands/biometric.js +3 -3
  16. package/build/lib/commands/biometric.js.map +1 -1
  17. package/build/lib/commands/certificate.d.ts.map +1 -1
  18. package/build/lib/commands/certificate.js +9 -3
  19. package/build/lib/commands/certificate.js.map +1 -1
  20. package/build/lib/commands/condition.d.ts +2 -0
  21. package/build/lib/commands/condition.d.ts.map +1 -1
  22. package/build/lib/commands/condition.js +75 -2
  23. package/build/lib/commands/condition.js.map +1 -1
  24. package/build/lib/commands/context.d.ts +5 -5
  25. package/build/lib/commands/context.d.ts.map +1 -1
  26. package/build/lib/commands/context.js +6 -6
  27. package/build/lib/commands/context.js.map +1 -1
  28. package/build/lib/commands/file-movement.d.ts.map +1 -1
  29. package/build/lib/commands/file-movement.js +7 -7
  30. package/build/lib/commands/file-movement.js.map +1 -1
  31. package/build/lib/commands/general.js +1 -1
  32. package/build/lib/commands/general.js.map +1 -1
  33. package/build/lib/commands/gesture.js +1 -1
  34. package/build/lib/commands/gesture.js.map +1 -1
  35. package/build/lib/commands/keychains.js +1 -1
  36. package/build/lib/commands/keychains.js.map +1 -1
  37. package/build/lib/commands/localization.js +1 -1
  38. package/build/lib/commands/localization.js.map +1 -1
  39. package/build/lib/commands/location.d.ts +3 -2
  40. package/build/lib/commands/location.d.ts.map +1 -1
  41. package/build/lib/commands/location.js +10 -4
  42. package/build/lib/commands/location.js.map +1 -1
  43. package/build/lib/commands/log.js +9 -9
  44. package/build/lib/commands/log.js.map +1 -1
  45. package/build/lib/commands/memory.js +1 -1
  46. package/build/lib/commands/memory.js.map +1 -1
  47. package/build/lib/commands/notifications.js +1 -1
  48. package/build/lib/commands/notifications.js.map +1 -1
  49. package/build/lib/commands/pasteboard.js +2 -2
  50. package/build/lib/commands/pasteboard.js.map +1 -1
  51. package/build/lib/commands/pcap.js +1 -1
  52. package/build/lib/commands/pcap.js.map +1 -1
  53. package/build/lib/commands/performance.d.ts.map +1 -1
  54. package/build/lib/commands/performance.js +13 -4
  55. package/build/lib/commands/performance.js.map +1 -1
  56. package/build/lib/commands/permissions.js +2 -2
  57. package/build/lib/commands/permissions.js.map +1 -1
  58. package/build/lib/commands/proxy-helper.d.ts.map +1 -1
  59. package/build/lib/commands/proxy-helper.js +0 -3
  60. package/build/lib/commands/proxy-helper.js.map +1 -1
  61. package/build/lib/commands/screenshots.js +1 -1
  62. package/build/lib/commands/screenshots.js.map +1 -1
  63. package/build/lib/commands/simctl.d.ts +1 -1
  64. package/build/lib/commands/simctl.d.ts.map +1 -1
  65. package/build/lib/commands/simctl.js +1 -1
  66. package/build/lib/commands/simctl.js.map +1 -1
  67. package/build/lib/commands/web.js +1 -1
  68. package/build/lib/commands/web.js.map +1 -1
  69. package/build/lib/commands/xctest-record-screen.js +2 -2
  70. package/build/lib/commands/xctest-record-screen.js.map +1 -1
  71. package/build/lib/desired-caps.d.ts +392 -505
  72. package/build/lib/desired-caps.d.ts.map +1 -1
  73. package/build/lib/desired-caps.js +19 -10
  74. package/build/lib/desired-caps.js.map +1 -1
  75. package/build/lib/device/clients/base-device-client.d.ts +22 -0
  76. package/build/lib/device/clients/base-device-client.d.ts.map +1 -0
  77. package/build/lib/device/clients/base-device-client.js +14 -0
  78. package/build/lib/device/clients/base-device-client.js.map +1 -0
  79. package/build/lib/device/clients/py-ios-device-client.d.ts +21 -0
  80. package/build/lib/device/clients/py-ios-device-client.d.ts.map +1 -0
  81. package/build/lib/device/clients/py-ios-device-client.js +125 -0
  82. package/build/lib/device/clients/py-ios-device-client.js.map +1 -0
  83. package/build/lib/device/device-connections-factory.d.ts +18 -0
  84. package/build/lib/device/device-connections-factory.d.ts.map +1 -0
  85. package/build/lib/device/device-connections-factory.js +260 -0
  86. package/build/lib/device/device-connections-factory.js.map +1 -0
  87. package/build/lib/device/log/helpers.d.ts +10 -0
  88. package/build/lib/device/log/helpers.d.ts.map +1 -0
  89. package/build/lib/device/log/helpers.js +37 -0
  90. package/build/lib/device/log/helpers.js.map +1 -0
  91. package/build/lib/device/log/ios-crash-log.d.ts +34 -0
  92. package/build/lib/device/log/ios-crash-log.d.ts.map +1 -0
  93. package/build/lib/device/log/ios-crash-log.js +141 -0
  94. package/build/lib/device/log/ios-crash-log.js.map +1 -0
  95. package/build/lib/device/log/ios-device-log.d.ts +19 -0
  96. package/build/lib/device/log/ios-device-log.d.ts.map +1 -0
  97. package/build/lib/device/log/ios-device-log.js +42 -0
  98. package/build/lib/device/log/ios-device-log.js.map +1 -0
  99. package/build/lib/device/log/ios-log.d.ts +24 -0
  100. package/build/lib/device/log/ios-log.d.ts.map +1 -0
  101. package/build/lib/device/log/ios-log.js +50 -0
  102. package/build/lib/device/log/ios-log.js.map +1 -0
  103. package/build/lib/device/log/ios-performance-log.d.ts +18 -0
  104. package/build/lib/device/log/ios-performance-log.d.ts.map +1 -0
  105. package/build/lib/device/log/ios-performance-log.js +43 -0
  106. package/build/lib/device/log/ios-performance-log.js.map +1 -0
  107. package/build/lib/device/log/ios-simulator-log.d.ts +38 -0
  108. package/build/lib/device/log/ios-simulator-log.d.ts.map +1 -0
  109. package/build/lib/device/log/ios-simulator-log.js +184 -0
  110. package/build/lib/device/log/ios-simulator-log.js.map +1 -0
  111. package/build/lib/device/log/line-consuming-log.d.ts +9 -0
  112. package/build/lib/device/log/line-consuming-log.d.ts.map +1 -0
  113. package/build/lib/device/log/line-consuming-log.js +16 -0
  114. package/build/lib/device/log/line-consuming-log.js.map +1 -0
  115. package/build/lib/device/log/safari-console-log.d.ts +67 -0
  116. package/build/lib/device/log/safari-console-log.d.ts.map +1 -0
  117. package/build/lib/device/log/safari-console-log.js +81 -0
  118. package/build/lib/device/log/safari-console-log.js.map +1 -0
  119. package/build/lib/device/log/safari-network-log.d.ts +75 -0
  120. package/build/lib/device/log/safari-network-log.d.ts.map +1 -0
  121. package/build/lib/device/log/safari-network-log.js +47 -0
  122. package/build/lib/device/log/safari-network-log.js.map +1 -0
  123. package/build/lib/device/real-device-management.d.ts +146 -0
  124. package/build/lib/device/real-device-management.d.ts.map +1 -0
  125. package/build/lib/device/real-device-management.js +740 -0
  126. package/build/lib/device/real-device-management.js.map +1 -0
  127. package/build/lib/device/simulator-management.d.ts +65 -0
  128. package/build/lib/device/simulator-management.d.ts.map +1 -0
  129. package/build/lib/device/simulator-management.js +261 -0
  130. package/build/lib/device/simulator-management.js.map +1 -0
  131. package/build/lib/device-log/ios-crash-log.d.ts +1 -1
  132. package/build/lib/device-log/ios-crash-log.d.ts.map +1 -1
  133. package/build/lib/device-log/ios-simulator-log.d.ts +1 -1
  134. package/build/lib/device-log/ios-simulator-log.d.ts.map +1 -1
  135. package/build/lib/doctor/required-checks.js +1 -1
  136. package/build/lib/doctor/required-checks.js.map +1 -1
  137. package/build/lib/driver.d.ts +129 -1377
  138. package/build/lib/driver.d.ts.map +1 -1
  139. package/build/lib/driver.js +461 -573
  140. package/build/lib/driver.js.map +1 -1
  141. package/build/lib/method-map.d.ts +1 -1
  142. package/build/lib/method-map.d.ts.map +1 -1
  143. package/build/lib/method-map.js +2 -2
  144. package/build/lib/method-map.js.map +1 -1
  145. package/build/lib/simulator-management.d.ts +10 -0
  146. package/build/lib/simulator-management.d.ts.map +1 -1
  147. package/build/lib/simulator-management.js +9 -5
  148. package/build/lib/simulator-management.js.map +1 -1
  149. package/build/lib/utils.d.ts +2 -9
  150. package/build/lib/utils.d.ts.map +1 -1
  151. package/build/lib/utils.js +3 -47
  152. package/build/lib/utils.js.map +1 -1
  153. package/lib/app-utils.js +5 -1
  154. package/lib/commands/app-management.js +2 -2
  155. package/lib/commands/appearance.js +2 -2
  156. package/lib/commands/bidi/models.ts +1 -0
  157. package/lib/commands/bidi/types.ts +1 -0
  158. package/lib/commands/biometric.js +3 -3
  159. package/lib/commands/certificate.js +9 -3
  160. package/lib/commands/condition.js +85 -2
  161. package/lib/commands/context.js +6 -6
  162. package/lib/commands/file-movement.js +11 -7
  163. package/lib/commands/general.js +1 -1
  164. package/lib/commands/gesture.js +1 -1
  165. package/lib/commands/keychains.js +1 -1
  166. package/lib/commands/localization.js +1 -1
  167. package/lib/commands/location.js +11 -4
  168. package/lib/commands/log.js +9 -9
  169. package/lib/commands/memory.js +1 -1
  170. package/lib/commands/notifications.js +1 -1
  171. package/lib/commands/pasteboard.js +2 -2
  172. package/lib/commands/pcap.js +1 -1
  173. package/lib/commands/performance.js +12 -1
  174. package/lib/commands/permissions.js +2 -2
  175. package/lib/commands/proxy-helper.js +0 -3
  176. package/lib/commands/screenshots.js +1 -1
  177. package/lib/commands/simctl.js +1 -1
  178. package/lib/commands/web.js +1 -1
  179. package/lib/commands/xctest-record-screen.js +2 -2
  180. package/lib/{desired-caps.js → desired-caps.ts} +20 -6
  181. package/lib/{real-device-clients → device/clients}/py-ios-device-client.ts +1 -1
  182. package/lib/{device-connections-factory.js → device/device-connections-factory.ts} +96 -60
  183. package/lib/{device-log → device/log}/helpers.ts +1 -1
  184. package/lib/{device-log → device/log}/ios-crash-log.ts +4 -4
  185. package/lib/{device-log → device/log}/ios-log.ts +1 -1
  186. package/lib/{device-log → device/log}/ios-simulator-log.ts +1 -1
  187. package/lib/{device-log → device/log}/line-consuming-log.ts +1 -1
  188. package/lib/{device-log → device/log}/safari-console-log.ts +1 -1
  189. package/lib/device/real-device-management.ts +831 -0
  190. package/lib/{simulator-management.js → device/simulator-management.ts} +75 -64
  191. package/lib/doctor/required-checks.ts +1 -1
  192. package/lib/{driver.js → driver.ts} +623 -707
  193. package/lib/{method-map.js → method-map.ts} +5 -2
  194. package/lib/utils.js +3 -54
  195. package/package.json +17 -19
  196. package/scripts/build-wda.js +3 -3
  197. package/lib/ios-fs-helpers.js +0 -355
  198. package/lib/ios-generic-simulators.js +0 -11
  199. package/lib/real-device-management.js +0 -133
  200. package/lib/real-device.js +0 -347
  201. package/lib/xcrun.js +0 -16
  202. /package/lib/{real-device-clients → device/clients}/base-device-client.ts +0 -0
  203. /package/lib/{device-log → device/log}/ios-device-log.ts +0 -0
  204. /package/lib/{device-log → device/log}/ios-performance-log.ts +0 -0
  205. /package/lib/{device-log → device/log}/safari-network-log.ts +0 -0
@@ -1,766 +1,74 @@
1
- /**
2
- * @implements {ExternalDriver<XCUITestDriverConstraints, FullContext|string>}
3
- * @extends {BaseDriver<XCUITestDriverConstraints>}
4
- * @privateRemarks **This class should be considered "final"**. It cannot be extended
5
- * due to use of public class field assignments. If extending this class becomes a hard requirement, refer to the implementation of `BaseDriver` on how to do so.
6
- */
7
- export class XCUITestDriver extends BaseDriver<{
8
- readonly platformName: {
9
- readonly presence: true;
10
- readonly isString: true;
11
- readonly inclusionCaseInsensitive: readonly ["iOS", "tvOS"];
12
- };
13
- readonly browserName: {
14
- readonly isString: true;
15
- };
16
- readonly app: {
17
- readonly isString: true;
18
- };
19
- readonly calendarFormat: {
20
- readonly isString: true;
21
- };
22
- readonly bundleId: {
23
- readonly isString: true;
24
- };
25
- readonly udid: {
26
- readonly isString: true;
27
- };
28
- readonly autoAcceptAlerts: {
29
- readonly isBoolean: true;
30
- };
31
- readonly autoDismissAlerts: {
32
- readonly isBoolean: true;
33
- };
34
- readonly nativeWebTap: {
35
- readonly isBoolean: true;
36
- };
37
- readonly safariInitialUrl: {
38
- readonly isString: true;
39
- };
40
- readonly initialDeeplinkUrl: {
41
- readonly isString: true;
42
- };
43
- readonly safariAllowPopups: {
44
- readonly isBoolean: true;
45
- };
46
- readonly safariIgnoreFraudWarning: {
47
- readonly isBoolean: true;
48
- };
49
- readonly safariOpenLinksInBackground: {
50
- readonly isBoolean: true;
51
- };
52
- readonly safariShowFullResponse: {
53
- readonly isBoolean: true;
54
- };
55
- readonly keepKeyChains: {
56
- readonly isBoolean: true;
57
- };
58
- readonly resetLocationService: {
59
- readonly isBoolean: true;
60
- };
61
- readonly localizableStringsDir: {
62
- readonly isString: true;
63
- };
64
- readonly processArguments: {};
65
- readonly webviewConnectRetries: {
66
- readonly isNumber: true;
67
- };
68
- readonly clearSystemFiles: {
69
- readonly isBoolean: true;
70
- };
71
- readonly customSSLCert: {
72
- readonly isString: true;
73
- };
74
- readonly remoteDebugProxy: {
75
- readonly isString: true;
76
- };
77
- readonly enablePerformanceLogging: {
78
- readonly isBoolean: true;
79
- };
80
- readonly enableAsyncExecuteFromHttps: {
81
- readonly isBoolean: true;
82
- };
83
- readonly fullContextList: {
84
- readonly isBoolean: true;
85
- };
86
- readonly ignoreAboutBlankUrl: {
87
- readonly isBoolean: true;
88
- };
89
- readonly skipLogCapture: {
90
- readonly isBoolean: true;
91
- };
92
- readonly deviceName: {
93
- readonly isString: true;
94
- };
95
- readonly showXcodeLog: {
96
- readonly isBoolean: true;
97
- };
98
- readonly wdaLocalPort: {
99
- readonly isNumber: true;
100
- };
101
- readonly wdaRemotePort: {
102
- readonly isNumber: true;
103
- };
104
- readonly wdaBindingIP: {
105
- readonly isString: true;
106
- };
107
- readonly wdaBaseUrl: {
108
- readonly isString: true;
109
- };
110
- readonly iosInstallPause: {
111
- readonly isNumber: true;
112
- };
113
- readonly xcodeConfigFile: {
114
- readonly isString: true;
115
- };
116
- readonly xcodeOrgId: {
117
- readonly isString: true;
118
- };
119
- readonly xcodeSigningId: {
120
- readonly isString: true;
121
- };
122
- readonly keychainPath: {
123
- readonly isString: true;
124
- };
125
- readonly keychainPassword: {
126
- readonly isString: true;
127
- };
128
- readonly bootstrapPath: {
129
- readonly isString: true;
130
- };
131
- readonly agentPath: {
132
- readonly isString: true;
133
- };
134
- readonly scaleFactor: {
135
- readonly isString: true;
136
- };
137
- readonly usePrebuiltWDA: {
138
- readonly isBoolean: true;
139
- };
140
- readonly prebuiltWDAPath: {
141
- readonly isString: true;
142
- };
143
- readonly usePreinstalledWDA: {
144
- readonly isBoolean: true;
145
- };
146
- readonly updatedWDABundleIdSuffix: {
147
- readonly isString: true;
148
- };
149
- readonly webDriverAgentUrl: {
150
- readonly isString: true;
151
- };
152
- readonly derivedDataPath: {
153
- readonly isString: true;
154
- };
155
- readonly launchWithIDB: {
156
- readonly isBoolean: true;
157
- };
158
- readonly useNewWDA: {
159
- readonly isBoolean: true;
160
- };
161
- readonly wdaLaunchTimeout: {
162
- readonly isNumber: true;
163
- };
164
- readonly wdaConnectionTimeout: {
165
- readonly isNumber: true;
166
- };
167
- readonly updatedWDABundleId: {
168
- readonly isString: true;
169
- };
170
- readonly resetOnSessionStartOnly: {
171
- readonly isBoolean: true;
172
- };
173
- readonly commandTimeouts: {};
174
- readonly wdaStartupRetries: {
175
- readonly isNumber: true;
176
- };
177
- readonly wdaStartupRetryInterval: {
178
- readonly isNumber: true;
179
- };
180
- readonly prebuildWDA: {
181
- readonly isBoolean: true;
182
- };
183
- readonly connectHardwareKeyboard: {
184
- readonly isBoolean: true;
185
- };
186
- readonly forceTurnOnSoftwareKeyboardSimulator: {
187
- readonly isBoolean: true;
188
- };
189
- readonly simulatorPasteboardAutomaticSync: {
190
- readonly isString: true;
191
- };
192
- readonly simulatorDevicesSetPath: {
193
- readonly isString: true;
194
- };
195
- readonly calendarAccessAuthorized: {
196
- readonly isBoolean: true;
197
- readonly deprecated: true;
198
- };
199
- readonly useSimpleBuildTest: {
200
- readonly isBoolean: true;
201
- readonly deprecated: true;
202
- };
203
- readonly waitForQuiescence: {
204
- readonly isBoolean: true;
205
- readonly deprecated: true;
206
- };
207
- readonly maxTypingFrequency: {
208
- readonly isNumber: true;
209
- };
210
- readonly nativeTyping: {
211
- readonly isBoolean: true;
212
- };
213
- readonly simpleIsVisibleCheck: {
214
- readonly isBoolean: true;
215
- };
216
- readonly shouldUseSingletonTestManager: {
217
- readonly isBoolean: true;
218
- };
219
- readonly isHeadless: {
220
- readonly isBoolean: true;
221
- };
222
- readonly useXctestrunFile: {
223
- readonly isBoolean: true;
224
- };
225
- readonly absoluteWebLocations: {
226
- readonly isBoolean: true;
227
- };
228
- readonly simulatorWindowCenter: {
229
- readonly isString: true;
230
- };
231
- readonly simulatorStartupTimeout: {
232
- readonly isNumber: true;
233
- };
234
- readonly simulatorTracePointer: {
235
- readonly isBoolean: true;
236
- };
237
- readonly useJSONSource: {
238
- readonly isBoolean: true;
239
- };
240
- readonly enforceFreshSimulatorCreation: {
241
- readonly isBoolean: true;
242
- };
243
- readonly shutdownOtherSimulators: {
244
- readonly isBoolean: true;
245
- };
246
- readonly keychainsExcludePatterns: {
247
- readonly isString: true;
248
- };
249
- readonly showSafariConsoleLog: {
250
- readonly isBoolean: true;
251
- };
252
- readonly showSafariNetworkLog: {
253
- readonly isBoolean: true;
254
- };
255
- readonly safariGarbageCollect: {
256
- readonly isBoolean: true;
257
- };
258
- readonly safariGlobalPreferences: {
259
- readonly isObject: true;
260
- };
261
- readonly safariLogAllCommunication: {
262
- readonly isBoolean: true;
263
- };
264
- readonly safariLogAllCommunicationHexDump: {
265
- readonly isBoolean: true;
266
- };
267
- readonly safariSocketChunkSize: {
268
- readonly isNumber: true;
269
- };
270
- readonly mjpegServerPort: {
271
- readonly isNumber: true;
272
- };
273
- readonly reduceMotion: {
274
- readonly isBoolean: true;
275
- };
276
- readonly reduceTransparency: {
277
- readonly isBoolean: true;
278
- };
279
- readonly autoFillPasswords: {
280
- readonly isBoolean: true;
281
- };
282
- readonly mjpegScreenshotUrl: {
283
- readonly isString: true;
284
- };
285
- readonly permissions: {
286
- readonly isString: true;
287
- };
288
- readonly screenshotQuality: {
289
- readonly isNumber: true;
290
- };
291
- readonly wdaEventloopIdleDelay: {
292
- readonly isNumber: true;
293
- };
294
- readonly otherApps: {
295
- readonly isString: true;
296
- };
297
- readonly includeSafariInWebviews: {
298
- readonly isBoolean: true;
299
- };
300
- readonly additionalWebviewBundleIds: {};
301
- readonly webviewConnectTimeout: {
302
- readonly isNumber: true;
303
- };
304
- readonly webviewAtomWaitTimeout: {
305
- readonly isNumber: true;
306
- };
307
- readonly showIOSLog: {
308
- readonly isBoolean: true;
309
- };
310
- readonly iosSimulatorLogsPredicate: {
311
- readonly isString: true;
312
- };
313
- readonly iosSyslogFile: {
314
- readonly isString: true;
315
- };
316
- readonly simulatorLogLevel: {
317
- readonly isString: true;
318
- };
319
- readonly appPushTimeout: {
320
- readonly isNumber: true;
321
- };
322
- readonly nativeWebTapStrict: {
323
- readonly isBoolean: true;
324
- };
325
- readonly safariWebInspectorMaxFrameLength: {
326
- readonly isNumber: true;
327
- };
328
- readonly allowProvisioningDeviceRegistration: {
329
- readonly isBoolean: true;
330
- };
331
- readonly waitForIdleTimeout: {
332
- readonly isNumber: true;
333
- };
334
- readonly resultBundlePath: {
335
- readonly isString: true;
336
- };
337
- readonly resultBundleVersion: {
338
- readonly isNumber: true;
339
- };
340
- readonly safariIgnoreWebHostnames: {
341
- readonly isString: true;
342
- };
343
- readonly disableAutomaticScreenshots: {
344
- readonly isBoolean: true;
345
- };
346
- readonly shouldTerminateApp: {
347
- readonly isBoolean: true;
348
- };
349
- readonly forceAppLaunch: {
350
- readonly isBoolean: true;
351
- };
352
- readonly useNativeCachingStrategy: {
353
- readonly isBoolean: true;
354
- };
355
- readonly appInstallStrategy: {
356
- readonly deprecated: true;
357
- readonly isString: true;
358
- readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
359
- };
360
- readonly enforceAppInstall: {
361
- readonly isBoolean: true;
362
- };
363
- readonly skipTriggerInputEventAfterSendkeys: {
364
- readonly isBoolean: true;
365
- };
366
- readonly sendKeyStrategy: {
367
- readonly isString: true;
368
- };
369
- readonly skipSyncUiDialogTranslation: {
370
- readonly isBoolean: true;
371
- };
372
- readonly forceSimulatorSoftwareKeyboardPresence: {
373
- readonly isBoolean: true;
374
- };
375
- readonly appLaunchStateTimeoutSec: {
376
- readonly isNumber: true;
377
- };
378
- readonly appTimeZone: {
379
- readonly isString: true;
380
- };
381
- readonly pageLoadStrategy: {
382
- readonly isString: true;
383
- readonly inclusionCaseInsensitive: readonly ["none", "eager", "normal"];
384
- };
385
- }, import("@appium/types").StringRecord, import("@appium/types").StringRecord, import("@appium/types").DefaultCreateSessionResult<{
386
- readonly platformName: {
387
- readonly presence: true;
388
- readonly isString: true;
389
- readonly inclusionCaseInsensitive: readonly ["iOS", "tvOS"];
390
- };
391
- readonly browserName: {
392
- readonly isString: true;
393
- };
394
- readonly app: {
395
- readonly isString: true;
396
- };
397
- readonly calendarFormat: {
398
- readonly isString: true;
399
- };
400
- readonly bundleId: {
401
- readonly isString: true;
402
- };
403
- readonly udid: {
404
- readonly isString: true;
405
- };
406
- readonly autoAcceptAlerts: {
407
- readonly isBoolean: true;
408
- };
409
- readonly autoDismissAlerts: {
410
- readonly isBoolean: true;
411
- };
412
- readonly nativeWebTap: {
413
- readonly isBoolean: true;
414
- };
415
- readonly safariInitialUrl: {
416
- readonly isString: true;
417
- };
418
- readonly initialDeeplinkUrl: {
419
- readonly isString: true;
420
- };
421
- readonly safariAllowPopups: {
422
- readonly isBoolean: true;
423
- };
424
- readonly safariIgnoreFraudWarning: {
425
- readonly isBoolean: true;
426
- };
427
- readonly safariOpenLinksInBackground: {
428
- readonly isBoolean: true;
429
- };
430
- readonly safariShowFullResponse: {
431
- readonly isBoolean: true;
432
- };
433
- readonly keepKeyChains: {
434
- readonly isBoolean: true;
435
- };
436
- readonly resetLocationService: {
437
- readonly isBoolean: true;
438
- };
439
- readonly localizableStringsDir: {
440
- readonly isString: true;
441
- };
442
- readonly processArguments: {};
443
- readonly webviewConnectRetries: {
444
- readonly isNumber: true;
445
- };
446
- readonly clearSystemFiles: {
447
- readonly isBoolean: true;
448
- };
449
- readonly customSSLCert: {
450
- readonly isString: true;
451
- };
452
- readonly remoteDebugProxy: {
453
- readonly isString: true;
454
- };
455
- readonly enablePerformanceLogging: {
456
- readonly isBoolean: true;
457
- };
458
- readonly enableAsyncExecuteFromHttps: {
459
- readonly isBoolean: true;
460
- };
461
- readonly fullContextList: {
462
- readonly isBoolean: true;
463
- };
464
- readonly ignoreAboutBlankUrl: {
465
- readonly isBoolean: true;
466
- };
467
- readonly skipLogCapture: {
468
- readonly isBoolean: true;
469
- };
470
- readonly deviceName: {
471
- readonly isString: true;
472
- };
473
- readonly showXcodeLog: {
474
- readonly isBoolean: true;
475
- };
476
- readonly wdaLocalPort: {
477
- readonly isNumber: true;
478
- };
479
- readonly wdaRemotePort: {
480
- readonly isNumber: true;
481
- };
482
- readonly wdaBindingIP: {
483
- readonly isString: true;
484
- };
485
- readonly wdaBaseUrl: {
486
- readonly isString: true;
487
- };
488
- readonly iosInstallPause: {
489
- readonly isNumber: true;
490
- };
491
- readonly xcodeConfigFile: {
492
- readonly isString: true;
493
- };
494
- readonly xcodeOrgId: {
495
- readonly isString: true;
496
- };
497
- readonly xcodeSigningId: {
498
- readonly isString: true;
499
- };
500
- readonly keychainPath: {
501
- readonly isString: true;
502
- };
503
- readonly keychainPassword: {
504
- readonly isString: true;
505
- };
506
- readonly bootstrapPath: {
507
- readonly isString: true;
508
- };
509
- readonly agentPath: {
510
- readonly isString: true;
511
- };
512
- readonly scaleFactor: {
513
- readonly isString: true;
514
- };
515
- readonly usePrebuiltWDA: {
516
- readonly isBoolean: true;
517
- };
518
- readonly prebuiltWDAPath: {
519
- readonly isString: true;
520
- };
521
- readonly usePreinstalledWDA: {
522
- readonly isBoolean: true;
523
- };
524
- readonly updatedWDABundleIdSuffix: {
525
- readonly isString: true;
526
- };
527
- readonly webDriverAgentUrl: {
528
- readonly isString: true;
529
- };
530
- readonly derivedDataPath: {
531
- readonly isString: true;
532
- };
533
- readonly launchWithIDB: {
534
- readonly isBoolean: true;
535
- };
536
- readonly useNewWDA: {
537
- readonly isBoolean: true;
538
- };
539
- readonly wdaLaunchTimeout: {
540
- readonly isNumber: true;
541
- };
542
- readonly wdaConnectionTimeout: {
543
- readonly isNumber: true;
544
- };
545
- readonly updatedWDABundleId: {
546
- readonly isString: true;
547
- };
548
- readonly resetOnSessionStartOnly: {
549
- readonly isBoolean: true;
550
- };
551
- readonly commandTimeouts: {};
552
- readonly wdaStartupRetries: {
553
- readonly isNumber: true;
554
- };
555
- readonly wdaStartupRetryInterval: {
556
- readonly isNumber: true;
557
- };
558
- readonly prebuildWDA: {
559
- readonly isBoolean: true;
560
- };
561
- readonly connectHardwareKeyboard: {
562
- readonly isBoolean: true;
563
- };
564
- readonly forceTurnOnSoftwareKeyboardSimulator: {
565
- readonly isBoolean: true;
566
- };
567
- readonly simulatorPasteboardAutomaticSync: {
568
- readonly isString: true;
569
- };
570
- readonly simulatorDevicesSetPath: {
571
- readonly isString: true;
572
- };
573
- readonly calendarAccessAuthorized: {
574
- readonly isBoolean: true;
575
- readonly deprecated: true;
576
- };
577
- readonly useSimpleBuildTest: {
578
- readonly isBoolean: true;
579
- readonly deprecated: true;
580
- };
581
- readonly waitForQuiescence: {
582
- readonly isBoolean: true;
583
- readonly deprecated: true;
584
- };
585
- readonly maxTypingFrequency: {
586
- readonly isNumber: true;
587
- };
588
- readonly nativeTyping: {
589
- readonly isBoolean: true;
590
- };
591
- readonly simpleIsVisibleCheck: {
592
- readonly isBoolean: true;
593
- };
594
- readonly shouldUseSingletonTestManager: {
595
- readonly isBoolean: true;
596
- };
597
- readonly isHeadless: {
598
- readonly isBoolean: true;
599
- };
600
- readonly useXctestrunFile: {
601
- readonly isBoolean: true;
602
- };
603
- readonly absoluteWebLocations: {
604
- readonly isBoolean: true;
605
- };
606
- readonly simulatorWindowCenter: {
607
- readonly isString: true;
608
- };
609
- readonly simulatorStartupTimeout: {
610
- readonly isNumber: true;
611
- };
612
- readonly simulatorTracePointer: {
613
- readonly isBoolean: true;
614
- };
615
- readonly useJSONSource: {
616
- readonly isBoolean: true;
617
- };
618
- readonly enforceFreshSimulatorCreation: {
619
- readonly isBoolean: true;
620
- };
621
- readonly shutdownOtherSimulators: {
622
- readonly isBoolean: true;
623
- };
624
- readonly keychainsExcludePatterns: {
625
- readonly isString: true;
626
- };
627
- readonly showSafariConsoleLog: {
628
- readonly isBoolean: true;
629
- };
630
- readonly showSafariNetworkLog: {
631
- readonly isBoolean: true;
632
- };
633
- readonly safariGarbageCollect: {
634
- readonly isBoolean: true;
635
- };
636
- readonly safariGlobalPreferences: {
637
- readonly isObject: true;
638
- };
639
- readonly safariLogAllCommunication: {
640
- readonly isBoolean: true;
641
- };
642
- readonly safariLogAllCommunicationHexDump: {
643
- readonly isBoolean: true;
644
- };
645
- readonly safariSocketChunkSize: {
646
- readonly isNumber: true;
647
- };
648
- readonly mjpegServerPort: {
649
- readonly isNumber: true;
650
- };
651
- readonly reduceMotion: {
652
- readonly isBoolean: true;
653
- };
654
- readonly reduceTransparency: {
655
- readonly isBoolean: true;
656
- };
657
- readonly autoFillPasswords: {
658
- readonly isBoolean: true;
659
- };
660
- readonly mjpegScreenshotUrl: {
661
- readonly isString: true;
662
- };
663
- readonly permissions: {
664
- readonly isString: true;
665
- };
666
- readonly screenshotQuality: {
667
- readonly isNumber: true;
668
- };
669
- readonly wdaEventloopIdleDelay: {
670
- readonly isNumber: true;
671
- };
672
- readonly otherApps: {
673
- readonly isString: true;
674
- };
675
- readonly includeSafariInWebviews: {
676
- readonly isBoolean: true;
677
- };
678
- readonly additionalWebviewBundleIds: {};
679
- readonly webviewConnectTimeout: {
680
- readonly isNumber: true;
681
- };
682
- readonly webviewAtomWaitTimeout: {
683
- readonly isNumber: true;
684
- };
685
- readonly showIOSLog: {
686
- readonly isBoolean: true;
687
- };
688
- readonly iosSimulatorLogsPredicate: {
689
- readonly isString: true;
690
- };
691
- readonly iosSyslogFile: {
692
- readonly isString: true;
693
- };
694
- readonly simulatorLogLevel: {
695
- readonly isString: true;
696
- };
697
- readonly appPushTimeout: {
698
- readonly isNumber: true;
699
- };
700
- readonly nativeWebTapStrict: {
701
- readonly isBoolean: true;
702
- };
703
- readonly safariWebInspectorMaxFrameLength: {
704
- readonly isNumber: true;
705
- };
706
- readonly allowProvisioningDeviceRegistration: {
707
- readonly isBoolean: true;
708
- };
709
- readonly waitForIdleTimeout: {
710
- readonly isNumber: true;
711
- };
712
- readonly resultBundlePath: {
713
- readonly isString: true;
714
- };
715
- readonly resultBundleVersion: {
716
- readonly isNumber: true;
717
- };
718
- readonly safariIgnoreWebHostnames: {
719
- readonly isString: true;
720
- };
721
- readonly disableAutomaticScreenshots: {
722
- readonly isBoolean: true;
723
- };
724
- readonly shouldTerminateApp: {
725
- readonly isBoolean: true;
726
- };
727
- readonly forceAppLaunch: {
728
- readonly isBoolean: true;
729
- };
730
- readonly useNativeCachingStrategy: {
731
- readonly isBoolean: true;
732
- };
733
- readonly appInstallStrategy: {
734
- readonly deprecated: true;
735
- readonly isString: true;
736
- readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
737
- };
738
- readonly enforceAppInstall: {
739
- readonly isBoolean: true;
740
- };
741
- readonly skipTriggerInputEventAfterSendkeys: {
742
- readonly isBoolean: true;
743
- };
744
- readonly sendKeyStrategy: {
745
- readonly isString: true;
746
- };
747
- readonly skipSyncUiDialogTranslation: {
748
- readonly isBoolean: true;
749
- };
750
- readonly forceSimulatorSoftwareKeyboardPresence: {
751
- readonly isBoolean: true;
752
- };
753
- readonly appLaunchStateTimeoutSec: {
754
- readonly isNumber: true;
755
- };
756
- readonly appTimeZone: {
757
- readonly isString: true;
758
- };
759
- readonly pageLoadStrategy: {
760
- readonly isString: true;
761
- readonly inclusionCaseInsensitive: readonly ["none", "eager", "normal"];
762
- };
763
- }>, void, import("@appium/types").StringRecord> implements ExternalDriver<XCUITestDriverConstraints, FullContext | string> {
1
+ import { WebDriverAgent } from 'appium-webdriveragent';
2
+ import { BaseDriver } from 'appium/driver';
3
+ import { mjpeg } from 'appium/support';
4
+ import type { RouteMatcher, DefaultCreateSessionResult, DriverData, StringRecord, ExternalDriver, W3CDriverCaps, DriverCaps, DriverOpts } from '@appium/types';
5
+ import { LRUCache } from 'lru-cache';
6
+ import * as activeAppInfoCommands from './commands/active-app-info';
7
+ import * as alertCommands from './commands/alert';
8
+ import * as appManagementCommands from './commands/app-management';
9
+ import * as appearanceCommands from './commands/appearance';
10
+ import * as appStringsCommands from './commands/app-strings';
11
+ import * as auditCommands from './commands/audit';
12
+ import * as batteryCommands from './commands/battery';
13
+ import * as biometricCommands from './commands/biometric';
14
+ import * as certificateCommands from './commands/certificate';
15
+ import * as clipboardCommands from './commands/clipboard';
16
+ import * as conditionCommands from './commands/condition';
17
+ import * as contentSizeCommands from './commands/content-size';
18
+ import * as contextCommands from './commands/context';
19
+ import * as deviceInfoCommands from './commands/deviceInfo';
20
+ import * as elementCommands from './commands/element';
21
+ import * as executeCommands from './commands/execute';
22
+ import * as fileMovementCommands from './commands/file-movement';
23
+ import * as findCommands from './commands/find';
24
+ import * as generalCommands from './commands/general';
25
+ import * as geolocationCommands from './commands/geolocation';
26
+ import * as gestureCommands from './commands/gesture';
27
+ import * as iohidCommands from './commands/iohid';
28
+ import * as keychainsCommands from './commands/keychains';
29
+ import * as keyboardCommands from './commands/keyboard';
30
+ import * as localizationCommands from './commands/localization';
31
+ import * as locationCommands from './commands/location';
32
+ import * as lockCommands from './commands/lock';
33
+ import * as logCommands from './commands/log';
34
+ import * as memoryCommands from './commands/memory';
35
+ import * as navigationCommands from './commands/navigation';
36
+ import * as notificationsCommands from './commands/notifications';
37
+ import * as pasteboardCommands from './commands/pasteboard';
38
+ import * as pcapCommands from './commands/pcap';
39
+ import * as performanceCommands from './commands/performance';
40
+ import * as permissionsCommands from './commands/permissions';
41
+ import * as proxyHelperCommands from './commands/proxy-helper';
42
+ import * as recordAudioCommands from './commands/record-audio';
43
+ import * as recordScreenCommands from './commands/recordscreen';
44
+ import * as screenshotCommands from './commands/screenshots';
45
+ import * as sourceCommands from './commands/source';
46
+ import * as simctlCommands from './commands/simctl';
47
+ import * as timeoutCommands from './commands/timeouts';
48
+ import * as webCommands from './commands/web';
49
+ import * as xctestCommands from './commands/xctest';
50
+ import * as xctestRecordScreenCommands from './commands/xctest-record-screen';
51
+ import * as increaseContrastCommands from './commands/increase-contrast';
52
+ import { type XCUITestDriverConstraints } from './desired-caps';
53
+ import { RealDevice } from './device/real-device-management';
54
+ import { AppInfosCache } from './app-infos-cache';
55
+ import type { CalibrationData, AsyncPromise, LifecycleData } from './types';
56
+ import type { WaitingAtoms, LogListener, FullContext } from './commands/types';
57
+ import type { PerfRecorder } from './commands/performance';
58
+ import type { AudioRecorder } from './commands/record-audio';
59
+ import type { TrafficCapture } from './commands/pcap';
60
+ import type { ScreenRecorder } from './commands/recordscreen';
61
+ import type { DVTServiceWithConnection } from './commands/condition.js';
62
+ import type { IOSDeviceLog } from './device/log/ios-device-log';
63
+ import type { IOSSimulatorLog } from './device/log/ios-simulator-log';
64
+ import type { IOSCrashLog } from './device/log/ios-crash-log';
65
+ import type { SafariConsoleLog } from './device/log/safari-console-log';
66
+ import type { SafariNetworkLog } from './device/log/safari-network-log';
67
+ import type { IOSPerformanceLog } from './device/log/ios-performance-log';
68
+ import type { RemoteDebugger } from 'appium-remote-debugger';
69
+ import type { XcodeVersion } from 'appium-xcode';
70
+ import type { Simulator } from 'appium-ios-simulator';
71
+ export declare class XCUITestDriver extends BaseDriver<XCUITestDriverConstraints, StringRecord> implements ExternalDriver<XCUITestDriverConstraints, FullContext | string, StringRecord> {
764
72
  static newMethodMap: {
765
73
  readonly '/session/:sessionId/timeouts/async_script': {
766
74
  readonly POST: {
@@ -1540,581 +848,89 @@ export class XCUITestDriver extends BaseDriver<{
1540
848
  };
1541
849
  };
1542
850
  };
1543
- /**
1544
- *
1545
- * @param {XCUITestDriverOpts} opts
1546
- * @param {boolean} shouldValidateCaps
1547
- */
1548
- constructor(opts?: XCUITestDriverOpts, shouldValidateCaps?: boolean);
1549
- /** @type {string|null|undefined} */
1550
851
  curWindowHandle: string | null | undefined;
1551
- /**
1552
- * @type {boolean|undefined}
1553
- */
1554
852
  selectingNewPage: boolean | undefined;
1555
- /** @type {string[]} */
1556
853
  contexts: string[];
1557
- /** @type {string|null} */
1558
854
  curContext: string | null;
1559
- /** @type {string[]} */
1560
855
  curWebFrames: string[];
1561
- /** @type {import('./types').CalibrationData|null} */
1562
- webviewCalibrationResult: import("./types").CalibrationData | null;
1563
- /** @type {import('./types').AsyncPromise|undefined} */
1564
- asyncPromise: import("./types").AsyncPromise | undefined;
1565
- /** @type {number|undefined} */
856
+ webviewCalibrationResult: CalibrationData | null;
857
+ asyncPromise: AsyncPromise | undefined;
1566
858
  asyncWaitMs: number | undefined;
1567
- /** @type {((logRecord: {message: string}) => void)|null} */
1568
859
  _syslogWebsocketListener: ((logRecord: {
1569
860
  message: string;
1570
861
  }) => void) | null;
1571
- /** @type {import('./commands/performance').PerfRecorder[]} */
1572
- _perfRecorders: import("./commands/performance").PerfRecorder[];
1573
- /** @type {LRUCache} */
1574
- webElementsCache: LRUCache<any, any, any>;
1575
- /**
1576
- * @type {any|null}
1577
- * @privateRemarks needs types
1578
- **/
862
+ _perfRecorders: PerfRecorder[];
863
+ webElementsCache: LRUCache<any, any>;
1579
864
  _conditionInducerService: any | null;
1580
- /** @type {boolean|undefined} */
865
+ _remoteXPCConditionInducerConnection: DVTServiceWithConnection | null;
1581
866
  _isSafariIphone: boolean | undefined;
1582
- /** @type {boolean|undefined} */
1583
867
  _isSafariNotched: boolean | undefined;
1584
- /** @type {import('./commands/types').WaitingAtoms} */
1585
- _waitingAtoms: import("./commands/types").WaitingAtoms;
1586
- /** @type {import('./types').LifecycleData} */
1587
- lifecycleData: import("./types").LifecycleData;
1588
- /** @type {import('./commands/record-audio').AudioRecorder|null} */
1589
- _audioRecorder: import("./commands/record-audio").AudioRecorder | null;
1590
- /** @type {XcodeVersion|undefined} */
868
+ _waitingAtoms: WaitingAtoms;
869
+ lifecycleData: LifecycleData;
870
+ _audioRecorder: AudioRecorder | null;
1591
871
  xcodeVersion: XcodeVersion | undefined;
1592
- /** @type {import('./commands/pcap').TrafficCapture|null} */
1593
- _trafficCapture: import("./commands/pcap").TrafficCapture | null;
1594
- /** @type {import('./commands/recordscreen').ScreenRecorder|null} */
1595
- _recentScreenRecorder: import("./commands/recordscreen").ScreenRecorder | null;
1596
- /** @type {Simulator|RealDevice} */
872
+ _trafficCapture: TrafficCapture | null;
873
+ _recentScreenRecorder: ScreenRecorder | null;
1597
874
  _device: Simulator | RealDevice;
1598
- /** @type {string|null} */
1599
875
  _iosSdkVersion: string | null;
1600
- /** @type {WebDriverAgent} */
1601
- wda: WebDriverAgent;
1602
- /** @type {import('appium-remote-debugger').RemoteDebugger|null} */
1603
- remote: import("appium-remote-debugger").RemoteDebugger | null;
1604
- /** @type {DriverLogs} */
876
+ _wda: WebDriverAgent | null;
877
+ remote: RemoteDebugger | null;
1605
878
  logs: DriverLogs;
1606
- /** @type {import('./commands/types').LogListener|undefined} */
1607
- _bidiServerLogListener: import("./commands/types").LogListener | undefined;
1608
- settings: DeviceSettings<{
1609
- nativeWebTap: boolean;
1610
- nativeWebTapStrict: boolean;
1611
- useJSONSource: boolean;
1612
- webScreenshotMode: string;
1613
- shouldUseCompactResponses: boolean;
1614
- elementResponseAttributes: string;
1615
- mjpegServerScreenshotQuality: number;
1616
- mjpegServerFramerate: number;
1617
- screenshotQuality: number;
1618
- mjpegScalingFactor: number;
1619
- reduceMotion: null;
1620
- pageSourceExcludedAttributes: string;
1621
- }>;
879
+ _bidiServerLogListener: LogListener | undefined;
1622
880
  appInfosCache: AppInfosCache;
1623
881
  doesSupportBidi: boolean;
1624
- onSettingsUpdate(key: any, value: any): Promise<unknown>;
1625
- resetIos(): void;
1626
- jwpProxyActive: boolean | undefined;
1627
- proxyReqRes: any;
1628
- safari: boolean | undefined;
882
+ jwpProxyActive: boolean;
883
+ proxyReqRes: ((...args: any[]) => any) | null;
884
+ safari: boolean;
1629
885
  cachedWdaStatus: any;
1630
- _currentUrl: any;
1631
- pageLoadMs: number | undefined;
1632
- landscapeWebCoordsOffset: number | undefined;
1633
- getStatus(): Promise<{
1634
- ready: boolean;
1635
- message: string;
1636
- build: {
1637
- built: string;
1638
- version: any;
1639
- };
1640
- }>;
1641
- mergeCliArgsToOpts(): boolean;
1642
- /**
1643
- * @returns {Simulator|RealDevice}
1644
- */
886
+ _currentUrl: string | null;
887
+ pageLoadMs: number;
888
+ landscapeWebCoordsOffset: number;
889
+ mjpegStream?: mjpeg.MJpegStream;
890
+ constructor(opts: XCUITestDriverOpts, shouldValidateCaps?: boolean);
891
+ createSession(w3cCaps1: W3CXCUITestDriverCaps, w3cCaps2?: W3CXCUITestDriverCaps, w3cCaps3?: W3CXCUITestDriverCaps, driverData?: DriverData[]): Promise<DefaultCreateSessionResult<XCUITestDriverConstraints>>;
892
+ deleteSession(sessionId?: string): Promise<void>;
893
+ executeCommand(cmd: string, ...args: any[]): Promise<any>;
894
+ proxyActive(): boolean;
895
+ getProxyAvoidList(): RouteMatcher[];
896
+ canProxy(): boolean;
897
+ validateLocatorStrategy(strategy: string): void;
898
+ validateDesiredCaps(caps: any): caps is DriverCaps<XCUITestDriverConstraints>;
899
+ get wda(): WebDriverAgent;
900
+ get driverData(): Record<string, any>;
1645
901
  get device(): Simulator | RealDevice;
902
+ isSafari(): boolean;
903
+ isRealDevice(): boolean;
904
+ isSimulator(): boolean;
1646
905
  isXcodebuildNeeded(): boolean;
1647
- createSession(w3cCaps1: any, w3cCaps2: any, w3cCaps3: any, driverData: any): Promise<[string, import("@appium/types").DriverCaps<{
1648
- readonly platformName: {
1649
- readonly presence: true;
1650
- readonly isString: true;
1651
- readonly inclusionCaseInsensitive: readonly ["iOS", "tvOS"];
1652
- };
1653
- readonly browserName: {
1654
- readonly isString: true;
1655
- };
1656
- readonly app: {
1657
- readonly isString: true;
1658
- };
1659
- readonly calendarFormat: {
1660
- readonly isString: true;
1661
- };
1662
- readonly bundleId: {
1663
- readonly isString: true;
1664
- };
1665
- readonly udid: {
1666
- readonly isString: true;
1667
- };
1668
- readonly autoAcceptAlerts: {
1669
- readonly isBoolean: true;
1670
- };
1671
- readonly autoDismissAlerts: {
1672
- readonly isBoolean: true;
1673
- };
1674
- readonly nativeWebTap: {
1675
- readonly isBoolean: true;
1676
- };
1677
- readonly safariInitialUrl: {
1678
- readonly isString: true;
1679
- };
1680
- readonly initialDeeplinkUrl: {
1681
- readonly isString: true;
1682
- };
1683
- readonly safariAllowPopups: {
1684
- readonly isBoolean: true;
1685
- };
1686
- readonly safariIgnoreFraudWarning: {
1687
- readonly isBoolean: true;
1688
- };
1689
- readonly safariOpenLinksInBackground: {
1690
- readonly isBoolean: true;
1691
- };
1692
- readonly safariShowFullResponse: {
1693
- readonly isBoolean: true;
1694
- };
1695
- readonly keepKeyChains: {
1696
- readonly isBoolean: true;
1697
- };
1698
- readonly resetLocationService: {
1699
- readonly isBoolean: true;
1700
- };
1701
- readonly localizableStringsDir: {
1702
- readonly isString: true;
1703
- };
1704
- readonly processArguments: {};
1705
- readonly webviewConnectRetries: {
1706
- readonly isNumber: true;
1707
- };
1708
- readonly clearSystemFiles: {
1709
- readonly isBoolean: true;
1710
- };
1711
- readonly customSSLCert: {
1712
- readonly isString: true;
1713
- };
1714
- readonly remoteDebugProxy: {
1715
- readonly isString: true;
1716
- };
1717
- readonly enablePerformanceLogging: {
1718
- readonly isBoolean: true;
1719
- };
1720
- readonly enableAsyncExecuteFromHttps: {
1721
- readonly isBoolean: true;
1722
- };
1723
- readonly fullContextList: {
1724
- readonly isBoolean: true;
1725
- };
1726
- readonly ignoreAboutBlankUrl: {
1727
- readonly isBoolean: true;
1728
- };
1729
- readonly skipLogCapture: {
1730
- readonly isBoolean: true;
1731
- };
1732
- readonly deviceName: {
1733
- readonly isString: true;
1734
- };
1735
- readonly showXcodeLog: {
1736
- readonly isBoolean: true;
1737
- };
1738
- readonly wdaLocalPort: {
1739
- readonly isNumber: true;
1740
- };
1741
- readonly wdaRemotePort: {
1742
- readonly isNumber: true;
1743
- };
1744
- readonly wdaBindingIP: {
1745
- readonly isString: true;
1746
- };
1747
- readonly wdaBaseUrl: {
1748
- readonly isString: true;
1749
- };
1750
- readonly iosInstallPause: {
1751
- readonly isNumber: true;
1752
- };
1753
- readonly xcodeConfigFile: {
1754
- readonly isString: true;
1755
- };
1756
- readonly xcodeOrgId: {
1757
- readonly isString: true;
1758
- };
1759
- readonly xcodeSigningId: {
1760
- readonly isString: true;
1761
- };
1762
- readonly keychainPath: {
1763
- readonly isString: true;
1764
- };
1765
- readonly keychainPassword: {
1766
- readonly isString: true;
1767
- };
1768
- readonly bootstrapPath: {
1769
- readonly isString: true;
1770
- };
1771
- readonly agentPath: {
1772
- readonly isString: true;
1773
- };
1774
- readonly scaleFactor: {
1775
- readonly isString: true;
1776
- };
1777
- readonly usePrebuiltWDA: {
1778
- readonly isBoolean: true;
1779
- };
1780
- readonly prebuiltWDAPath: {
1781
- readonly isString: true;
1782
- };
1783
- readonly usePreinstalledWDA: {
1784
- readonly isBoolean: true;
1785
- };
1786
- readonly updatedWDABundleIdSuffix: {
1787
- readonly isString: true;
1788
- };
1789
- readonly webDriverAgentUrl: {
1790
- readonly isString: true;
1791
- };
1792
- readonly derivedDataPath: {
1793
- readonly isString: true;
1794
- };
1795
- readonly launchWithIDB: {
1796
- readonly isBoolean: true;
1797
- };
1798
- readonly useNewWDA: {
1799
- readonly isBoolean: true;
1800
- };
1801
- readonly wdaLaunchTimeout: {
1802
- readonly isNumber: true;
1803
- };
1804
- readonly wdaConnectionTimeout: {
1805
- readonly isNumber: true;
1806
- };
1807
- readonly updatedWDABundleId: {
1808
- readonly isString: true;
1809
- };
1810
- readonly resetOnSessionStartOnly: {
1811
- readonly isBoolean: true;
1812
- };
1813
- readonly commandTimeouts: {};
1814
- readonly wdaStartupRetries: {
1815
- readonly isNumber: true;
1816
- };
1817
- readonly wdaStartupRetryInterval: {
1818
- readonly isNumber: true;
1819
- };
1820
- readonly prebuildWDA: {
1821
- readonly isBoolean: true;
1822
- };
1823
- readonly connectHardwareKeyboard: {
1824
- readonly isBoolean: true;
1825
- };
1826
- readonly forceTurnOnSoftwareKeyboardSimulator: {
1827
- readonly isBoolean: true;
1828
- };
1829
- readonly simulatorPasteboardAutomaticSync: {
1830
- readonly isString: true;
1831
- };
1832
- readonly simulatorDevicesSetPath: {
1833
- readonly isString: true;
1834
- };
1835
- readonly calendarAccessAuthorized: {
1836
- readonly isBoolean: true;
1837
- readonly deprecated: true;
1838
- };
1839
- readonly useSimpleBuildTest: {
1840
- readonly isBoolean: true;
1841
- readonly deprecated: true;
1842
- };
1843
- readonly waitForQuiescence: {
1844
- readonly isBoolean: true;
1845
- readonly deprecated: true;
1846
- };
1847
- readonly maxTypingFrequency: {
1848
- readonly isNumber: true;
1849
- };
1850
- readonly nativeTyping: {
1851
- readonly isBoolean: true;
1852
- };
1853
- readonly simpleIsVisibleCheck: {
1854
- readonly isBoolean: true;
1855
- };
1856
- readonly shouldUseSingletonTestManager: {
1857
- readonly isBoolean: true;
1858
- };
1859
- readonly isHeadless: {
1860
- readonly isBoolean: true;
1861
- };
1862
- readonly useXctestrunFile: {
1863
- readonly isBoolean: true;
1864
- };
1865
- readonly absoluteWebLocations: {
1866
- readonly isBoolean: true;
1867
- };
1868
- readonly simulatorWindowCenter: {
1869
- readonly isString: true;
1870
- };
1871
- readonly simulatorStartupTimeout: {
1872
- readonly isNumber: true;
1873
- };
1874
- readonly simulatorTracePointer: {
1875
- readonly isBoolean: true;
1876
- };
1877
- readonly useJSONSource: {
1878
- readonly isBoolean: true;
1879
- };
1880
- readonly enforceFreshSimulatorCreation: {
1881
- readonly isBoolean: true;
1882
- };
1883
- readonly shutdownOtherSimulators: {
1884
- readonly isBoolean: true;
1885
- };
1886
- readonly keychainsExcludePatterns: {
1887
- readonly isString: true;
1888
- };
1889
- readonly showSafariConsoleLog: {
1890
- readonly isBoolean: true;
1891
- };
1892
- readonly showSafariNetworkLog: {
1893
- readonly isBoolean: true;
1894
- };
1895
- readonly safariGarbageCollect: {
1896
- readonly isBoolean: true;
1897
- };
1898
- readonly safariGlobalPreferences: {
1899
- readonly isObject: true;
1900
- };
1901
- readonly safariLogAllCommunication: {
1902
- readonly isBoolean: true;
1903
- };
1904
- readonly safariLogAllCommunicationHexDump: {
1905
- readonly isBoolean: true;
1906
- };
1907
- readonly safariSocketChunkSize: {
1908
- readonly isNumber: true;
1909
- };
1910
- readonly mjpegServerPort: {
1911
- readonly isNumber: true;
1912
- };
1913
- readonly reduceMotion: {
1914
- readonly isBoolean: true;
1915
- };
1916
- readonly reduceTransparency: {
1917
- readonly isBoolean: true;
1918
- };
1919
- readonly autoFillPasswords: {
1920
- readonly isBoolean: true;
1921
- };
1922
- readonly mjpegScreenshotUrl: {
1923
- readonly isString: true;
1924
- };
1925
- readonly permissions: {
1926
- readonly isString: true;
1927
- };
1928
- readonly screenshotQuality: {
1929
- readonly isNumber: true;
1930
- };
1931
- readonly wdaEventloopIdleDelay: {
1932
- readonly isNumber: true;
1933
- };
1934
- readonly otherApps: {
1935
- readonly isString: true;
1936
- };
1937
- readonly includeSafariInWebviews: {
1938
- readonly isBoolean: true;
1939
- };
1940
- readonly additionalWebviewBundleIds: {};
1941
- readonly webviewConnectTimeout: {
1942
- readonly isNumber: true;
1943
- };
1944
- readonly webviewAtomWaitTimeout: {
1945
- readonly isNumber: true;
1946
- };
1947
- readonly showIOSLog: {
1948
- readonly isBoolean: true;
1949
- };
1950
- readonly iosSimulatorLogsPredicate: {
1951
- readonly isString: true;
1952
- };
1953
- readonly iosSyslogFile: {
1954
- readonly isString: true;
1955
- };
1956
- readonly simulatorLogLevel: {
1957
- readonly isString: true;
1958
- };
1959
- readonly appPushTimeout: {
1960
- readonly isNumber: true;
1961
- };
1962
- readonly nativeWebTapStrict: {
1963
- readonly isBoolean: true;
1964
- };
1965
- readonly safariWebInspectorMaxFrameLength: {
1966
- readonly isNumber: true;
1967
- };
1968
- readonly allowProvisioningDeviceRegistration: {
1969
- readonly isBoolean: true;
1970
- };
1971
- readonly waitForIdleTimeout: {
1972
- readonly isNumber: true;
1973
- };
1974
- readonly resultBundlePath: {
1975
- readonly isString: true;
1976
- };
1977
- readonly resultBundleVersion: {
1978
- readonly isNumber: true;
1979
- };
1980
- readonly safariIgnoreWebHostnames: {
1981
- readonly isString: true;
1982
- };
1983
- readonly disableAutomaticScreenshots: {
1984
- readonly isBoolean: true;
1985
- };
1986
- readonly shouldTerminateApp: {
1987
- readonly isBoolean: true;
1988
- };
1989
- readonly forceAppLaunch: {
1990
- readonly isBoolean: true;
1991
- };
1992
- readonly useNativeCachingStrategy: {
1993
- readonly isBoolean: true;
1994
- };
1995
- readonly appInstallStrategy: {
1996
- readonly deprecated: true;
1997
- readonly isString: true;
1998
- readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
1999
- };
2000
- readonly enforceAppInstall: {
2001
- readonly isBoolean: true;
2002
- };
2003
- readonly skipTriggerInputEventAfterSendkeys: {
2004
- readonly isBoolean: true;
2005
- };
2006
- readonly sendKeyStrategy: {
2007
- readonly isString: true;
2008
- };
2009
- readonly skipSyncUiDialogTranslation: {
2010
- readonly isBoolean: true;
2011
- };
2012
- readonly forceSimulatorSoftwareKeyboardPresence: {
2013
- readonly isBoolean: true;
2014
- };
2015
- readonly appLaunchStateTimeoutSec: {
2016
- readonly isNumber: true;
2017
- };
2018
- readonly appTimeZone: {
2019
- readonly isString: true;
2020
- };
2021
- readonly pageLoadStrategy: {
2022
- readonly isString: true;
2023
- readonly inclusionCaseInsensitive: readonly ["none", "eager", "normal"];
2024
- };
2025
- }>]>;
2026
- /**
2027
- * Handles MJPEG server-related capabilities
2028
- * @returns {Promise<void>}
2029
- */
906
+ onSettingsUpdate(key: string, value: any): Promise<any>;
907
+ getStatus(): Promise<Record<string, any>>;
908
+ mergeCliArgsToOpts(): boolean;
2030
909
  handleMjpegOptions(): Promise<void>;
2031
- mjpegStream: mjpeg.MJpegStream | undefined;
2032
- /**
2033
- * Allocates and configures port forwarding for the MJPEG server
2034
- * @returns {Promise<void>}
2035
- * @throws {Error} If port forwarding fails and mjpegServerPort capability value is provided explicitly
2036
- */
2037
910
  allocateMjpegServerPort(): Promise<void>;
2038
- /**
2039
- * Returns the default URL for Safari browser
2040
- * @returns {string} The default URL
2041
- */
2042
911
  getDefaultUrl(): string;
2043
912
  start(): Promise<void>;
2044
- /**
2045
- * Start the simulator and initialize based on capabilities
2046
- */
2047
- initSimulator(): Promise<void>;
2048
- /**
2049
- * Start WebDriverAgentRunner
2050
- */
2051
- startWda(): Promise<any>;
2052
- /**
2053
- *
2054
- * @param {boolean} [enforceSimulatorShutdown=false]
2055
- */
2056
913
  runReset(enforceSimulatorShutdown?: boolean): Promise<void>;
2057
- deleteSession(sessionId: any): Promise<void>;
2058
914
  stop(): Promise<void>;
2059
- /**
2060
- *
2061
- * @param {string} cmd
2062
- * @param {...any} args
2063
- * @returns {Promise<any>}
2064
- */
2065
- executeCommand(cmd: string, ...args: any[]): Promise<any>;
915
+ initSimulator(): Promise<void>;
916
+ startWda(): Promise<void>;
2066
917
  configureApp(): Promise<void>;
2067
918
  determineDevice(): Promise<{
2068
- device: any;
919
+ device: Simulator | RealDevice;
2069
920
  realDevice: boolean;
2070
- udid: any;
921
+ udid: string;
2071
922
  }>;
2072
923
  startSim(): Promise<void>;
2073
- createSim(): Promise<any>;
2074
- startWdaSession(bundleId: any, processArguments: any): Promise<void>;
2075
- proxyActive(): boolean;
2076
- getProxyAvoidList(): import("@appium/types").RouteMatcher[];
2077
- canProxy(): boolean;
2078
- /**
2079
- * @returns {boolean}
2080
- */
2081
- isSafari(): boolean;
2082
- /**
2083
- * @returns {boolean}
2084
- */
2085
- isRealDevice(): boolean;
2086
- /**
2087
- * @returns {boolean}
2088
- */
2089
- isSimulator(): boolean;
2090
- /**
2091
- * @param {string} strategy
2092
- */
2093
- validateLocatorStrategy(strategy: string): void;
2094
- /**
2095
- * Check if the given app can be installed, or should uninstall before installing it.
2096
- *
2097
- * @param {AutInstallationStateOptions} [opts]
2098
- * @returns {Promise<AutInstallationState>}
2099
- */
924
+ createSim(): Promise<Simulator>;
925
+ startWdaSession(bundleId?: string, processArguments?: any): Promise<void>;
2100
926
  checkAutInstallationState(opts?: AutInstallationStateOptions): Promise<AutInstallationState>;
2101
927
  installAUT(): Promise<void>;
2102
- /**
2103
- * @param {string|string[]} otherApps
2104
- * @returns {Promise<void>}
2105
- */
2106
928
  installOtherApps(otherApps: string | string[]): Promise<void>;
2107
- /**
2108
- * @param {string} orientation
2109
- * @returns {Promise<void>}
2110
- */
2111
929
  setInitialOrientation(orientation: string): Promise<void>;
2112
- /**
2113
- * @param {string} [cmdName]
2114
- * @returns {number|undefined}
2115
- */
2116
- _getCommandTimeout(cmdName?: string): number | undefined;
930
+ reset(): Promise<never>;
2117
931
  preparePreinstalledWda(): Promise<void>;
932
+ resetIos(): void;
933
+ _getCommandTimeout(cmdName?: string): number | undefined;
2118
934
  mobileGetActiveAppInfo: typeof activeAppInfoCommands.mobileGetActiveAppInfo;
2119
935
  getAlertText: typeof alertCommands.getAlertText;
2120
936
  setAlertText: typeof alertCommands.setAlertText;
@@ -2348,82 +1164,18 @@ export class XCUITestDriver extends BaseDriver<{
2348
1164
  mobileStopXctestScreenRecording: typeof xctestRecordScreenCommands.mobileStopXctestScreenRecording;
2349
1165
  }
2350
1166
  export default XCUITestDriver;
2351
- export type ExternalDriver<C extends import("@appium/types").Constraints, Ctx = string> = import("@appium/types").ExternalDriver<C, Ctx>;
2352
- export type AutInstallationStateOptions = Pick<XCUITestDriverOpts, "enforceAppInstall" | "fullReset" | "noReset" | "bundleId" | "app">;
2353
- export type AutInstallationState = {
2354
- /**
2355
- * - If the given app should install, or not need to install.
2356
- */
1167
+ export type AutInstallationStateOptions = Pick<XCUITestDriverOpts, 'enforceAppInstall' | 'fullReset' | 'noReset' | 'bundleId' | 'app'>;
1168
+ export interface AutInstallationState {
2357
1169
  install: boolean;
2358
- /**
2359
- * - If the installed app should be uninstalled, or not.
2360
- */
2361
1170
  skipUninstall: boolean;
2362
- };
2363
- export type XCUITestDriverConstraints = typeof desiredCapConstraints;
2364
- export type XCUITestDriverOpts = import("@appium/types").DriverOpts<XCUITestDriverConstraints>;
2365
- export type FullContext = import("./commands/types").FullContext;
2366
- export type XcodeVersion = import("@limrun/appium-xcode").XcodeVersion;
2367
- export type Simulator = import("@limrun/appium-ios-simulator").Simulator;
2368
- export type DriverLogs = {
2369
- syslog?: import("./device-log/ios-simulator-log").IOSSimulatorLog | import("./device-log/ios-device-log").IOSDeviceLog | undefined;
2370
- crashlog?: import("./device-log/ios-crash-log").IOSCrashLog | undefined;
2371
- safariConsole?: import("./device-log/safari-console-log").SafariConsoleLog | undefined;
2372
- safariNetwork?: import("./device-log/safari-network-log").SafariNetworkLog | undefined;
2373
- performance?: import("./device-log/ios-performance-log").IOSPerformanceLog | undefined;
2374
- };
2375
- import { BaseDriver } from 'appium/driver';
2376
- import { LRUCache } from 'lru-cache';
2377
- import { RealDevice } from './real-device';
2378
- import { WebDriverAgent } from 'appium-webdriveragent';
2379
- import { DeviceSettings } from 'appium/driver';
2380
- import { AppInfosCache } from './app-infos-cache';
2381
- import { mjpeg } from 'appium/support';
2382
- import * as activeAppInfoCommands from './commands/active-app-info';
2383
- import * as alertCommands from './commands/alert';
2384
- import * as appManagementCommands from './commands/app-management';
2385
- import * as appearanceCommands from './commands/appearance';
2386
- import * as increaseContrastCommands from './commands/increase-contrast';
2387
- import * as contentSizeCommands from './commands/content-size';
2388
- import * as auditCommands from './commands/audit';
2389
- import * as batteryCommands from './commands/battery';
2390
- import * as biometricCommands from './commands/biometric';
2391
- import * as certificateCommands from './commands/certificate';
2392
- import * as clipboardCommands from './commands/clipboard';
2393
- import * as conditionCommands from './commands/condition';
2394
- import * as contextCommands from './commands/context';
2395
- import * as deviceInfoCommands from './commands/deviceInfo';
2396
- import * as elementCommands from './commands/element';
2397
- import * as executeCommands from './commands/execute';
2398
- import * as simctlCommands from './commands/simctl';
2399
- import * as fileMovementCommands from './commands/file-movement';
2400
- import * as memoryCommands from './commands/memory';
2401
- import * as findCommands from './commands/find';
2402
- import * as generalCommands from './commands/general';
2403
- import * as appStringsCommands from './commands/app-strings';
2404
- import * as geolocationCommands from './commands/geolocation';
2405
- import * as gestureCommands from './commands/gesture';
2406
- import * as iohidCommands from './commands/iohid';
2407
- import * as keychainsCommands from './commands/keychains';
2408
- import * as keyboardCommands from './commands/keyboard';
2409
- import * as localizationCommands from './commands/localization';
2410
- import * as locationCommands from './commands/location';
2411
- import * as lockCommands from './commands/lock';
2412
- import * as logCommands from './commands/log';
2413
- import * as navigationCommands from './commands/navigation';
2414
- import * as notificationsCommands from './commands/notifications';
2415
- import * as pasteboardCommands from './commands/pasteboard';
2416
- import * as pcapCommands from './commands/pcap';
2417
- import * as performanceCommands from './commands/performance';
2418
- import * as permissionsCommands from './commands/permissions';
2419
- import * as proxyHelperCommands from './commands/proxy-helper';
2420
- import * as recordAudioCommands from './commands/record-audio';
2421
- import * as recordScreenCommands from './commands/recordscreen';
2422
- import * as screenshotCommands from './commands/screenshots';
2423
- import * as sourceCommands from './commands/source';
2424
- import * as timeoutCommands from './commands/timeouts';
2425
- import * as webCommands from './commands/web';
2426
- import * as xctestCommands from './commands/xctest';
2427
- import * as xctestRecordScreenCommands from './commands/xctest-record-screen';
2428
- import { desiredCapConstraints } from './desired-caps';
1171
+ }
1172
+ export type XCUITestDriverOpts = DriverOpts<XCUITestDriverConstraints>;
1173
+ export type W3CXCUITestDriverCaps = W3CDriverCaps<XCUITestDriverConstraints>;
1174
+ export interface DriverLogs {
1175
+ syslog?: IOSDeviceLog | IOSSimulatorLog;
1176
+ crashlog?: IOSCrashLog;
1177
+ safariConsole?: SafariConsoleLog;
1178
+ safariNetwork?: SafariNetworkLog;
1179
+ performance?: IOSPerformanceLog;
1180
+ }
2429
1181
  //# sourceMappingURL=driver.d.ts.map