appium-xcuitest-driver 4.25.4 → 4.27.0
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 +14 -0
- package/build/lib/desired-caps.d.ts +92 -84
- package/build/lib/desired-caps.d.ts.map +1 -1
- package/build/lib/desired-caps.js +6 -0
- package/build/lib/desired-caps.js.map +1 -1
- package/build/lib/driver.d.ts +32 -2
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +53 -6
- package/build/lib/driver.js.map +1 -1
- package/lib/desired-caps.js +6 -0
- package/lib/driver.js +70 -9
- package/npm-shrinkwrap.json +170 -139
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [4.27.0](https://github.com/appium/appium-xcuitest-driver/compare/v4.26.0...v4.27.0) (2023-05-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* install prebuilt WDA as prebuiltWDAPath capability ([#1672](https://github.com/appium/appium-xcuitest-driver/issues/1672)) ([2226123](https://github.com/appium/appium-xcuitest-driver/commit/22261233114788663750713c1cbea65d25d2b525))
|
|
7
|
+
|
|
8
|
+
## [4.26.0](https://github.com/appium/appium-xcuitest-driver/compare/v4.25.4...v4.26.0) (2023-05-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* launch preinstalled WDA process without xcodebuild for a real device with usePreinstalledWDA ([#1609](https://github.com/appium/appium-xcuitest-driver/issues/1609)) ([3c72b58](https://github.com/appium/appium-xcuitest-driver/commit/3c72b58e12eea6d331b3b4e86cd3546954f5111f))
|
|
14
|
+
|
|
1
15
|
## [4.25.4](https://github.com/appium/appium-xcuitest-driver/compare/v4.25.3...v4.25.4) (2023-05-06)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -168,22 +168,30 @@ export namespace desiredCapConstraints {
|
|
|
168
168
|
const isBoolean_17: true;
|
|
169
169
|
export { isBoolean_17 as isBoolean };
|
|
170
170
|
}
|
|
171
|
-
namespace
|
|
171
|
+
namespace prebuiltWDAPath {
|
|
172
172
|
const isString_20: true;
|
|
173
173
|
export { isString_20 as isString };
|
|
174
174
|
}
|
|
175
|
-
namespace
|
|
175
|
+
namespace usePreinstalledWDA {
|
|
176
|
+
const isBoolean_18: true;
|
|
177
|
+
export { isBoolean_18 as isBoolean };
|
|
178
|
+
}
|
|
179
|
+
namespace webDriverAgentUrl {
|
|
176
180
|
const isString_21: true;
|
|
177
181
|
export { isString_21 as isString };
|
|
178
182
|
}
|
|
179
|
-
namespace
|
|
180
|
-
const
|
|
181
|
-
export {
|
|
183
|
+
namespace derivedDataPath {
|
|
184
|
+
const isString_22: true;
|
|
185
|
+
export { isString_22 as isString };
|
|
182
186
|
}
|
|
183
|
-
namespace
|
|
187
|
+
namespace launchWithIDB {
|
|
184
188
|
const isBoolean_19: true;
|
|
185
189
|
export { isBoolean_19 as isBoolean };
|
|
186
190
|
}
|
|
191
|
+
namespace useNewWDA {
|
|
192
|
+
const isBoolean_20: true;
|
|
193
|
+
export { isBoolean_20 as isBoolean };
|
|
194
|
+
}
|
|
187
195
|
namespace wdaLaunchTimeout {
|
|
188
196
|
const isNumber_4: true;
|
|
189
197
|
export { isNumber_4 as isNumber };
|
|
@@ -193,12 +201,12 @@ export namespace desiredCapConstraints {
|
|
|
193
201
|
export { isNumber_5 as isNumber };
|
|
194
202
|
}
|
|
195
203
|
namespace updatedWDABundleId {
|
|
196
|
-
const
|
|
197
|
-
export {
|
|
204
|
+
const isString_23: true;
|
|
205
|
+
export { isString_23 as isString };
|
|
198
206
|
}
|
|
199
207
|
namespace resetOnSessionStartOnly {
|
|
200
|
-
const
|
|
201
|
-
export {
|
|
208
|
+
const isBoolean_21: true;
|
|
209
|
+
export { isBoolean_21 as isBoolean };
|
|
202
210
|
}
|
|
203
211
|
const commandTimeouts: {};
|
|
204
212
|
namespace wdaStartupRetries {
|
|
@@ -210,116 +218,116 @@ export namespace desiredCapConstraints {
|
|
|
210
218
|
export { isNumber_7 as isNumber };
|
|
211
219
|
}
|
|
212
220
|
namespace prebuildWDA {
|
|
213
|
-
const isBoolean_21: true;
|
|
214
|
-
export { isBoolean_21 as isBoolean };
|
|
215
|
-
}
|
|
216
|
-
namespace connectHardwareKeyboard {
|
|
217
221
|
const isBoolean_22: true;
|
|
218
222
|
export { isBoolean_22 as isBoolean };
|
|
219
223
|
}
|
|
220
|
-
namespace
|
|
224
|
+
namespace connectHardwareKeyboard {
|
|
221
225
|
const isBoolean_23: true;
|
|
222
226
|
export { isBoolean_23 as isBoolean };
|
|
223
227
|
}
|
|
224
|
-
namespace
|
|
225
|
-
const
|
|
226
|
-
export {
|
|
228
|
+
namespace forceTurnOnSoftwareKeyboardSimulator {
|
|
229
|
+
const isBoolean_24: true;
|
|
230
|
+
export { isBoolean_24 as isBoolean };
|
|
227
231
|
}
|
|
228
|
-
namespace
|
|
232
|
+
namespace simulatorPasteboardAutomaticSync {
|
|
229
233
|
const isString_24: true;
|
|
230
234
|
export { isString_24 as isString };
|
|
231
235
|
}
|
|
232
|
-
namespace
|
|
233
|
-
const
|
|
234
|
-
export {
|
|
236
|
+
namespace simulatorDevicesSetPath {
|
|
237
|
+
const isString_25: true;
|
|
238
|
+
export { isString_25 as isString };
|
|
235
239
|
}
|
|
236
|
-
namespace
|
|
240
|
+
namespace calendarAccessAuthorized {
|
|
237
241
|
const isBoolean_25: true;
|
|
238
242
|
export { isBoolean_25 as isBoolean };
|
|
239
243
|
}
|
|
240
|
-
namespace
|
|
244
|
+
namespace useSimpleBuildTest {
|
|
241
245
|
const isBoolean_26: true;
|
|
242
246
|
export { isBoolean_26 as isBoolean };
|
|
243
247
|
}
|
|
248
|
+
namespace waitForQuiescence {
|
|
249
|
+
const isBoolean_27: true;
|
|
250
|
+
export { isBoolean_27 as isBoolean };
|
|
251
|
+
}
|
|
244
252
|
namespace maxTypingFrequency {
|
|
245
253
|
const isNumber_8: true;
|
|
246
254
|
export { isNumber_8 as isNumber };
|
|
247
255
|
}
|
|
248
256
|
namespace nativeTyping {
|
|
249
|
-
const isBoolean_27: true;
|
|
250
|
-
export { isBoolean_27 as isBoolean };
|
|
251
|
-
}
|
|
252
|
-
namespace simpleIsVisibleCheck {
|
|
253
257
|
const isBoolean_28: true;
|
|
254
258
|
export { isBoolean_28 as isBoolean };
|
|
255
259
|
}
|
|
256
|
-
namespace
|
|
260
|
+
namespace simpleIsVisibleCheck {
|
|
257
261
|
const isBoolean_29: true;
|
|
258
262
|
export { isBoolean_29 as isBoolean };
|
|
259
263
|
}
|
|
260
|
-
namespace
|
|
264
|
+
namespace shouldUseSingletonTestManager {
|
|
261
265
|
const isBoolean_30: true;
|
|
262
266
|
export { isBoolean_30 as isBoolean };
|
|
263
267
|
}
|
|
264
|
-
namespace
|
|
268
|
+
namespace isHeadless {
|
|
265
269
|
const isBoolean_31: true;
|
|
266
270
|
export { isBoolean_31 as isBoolean };
|
|
267
271
|
}
|
|
268
|
-
namespace
|
|
272
|
+
namespace useXctestrunFile {
|
|
269
273
|
const isBoolean_32: true;
|
|
270
274
|
export { isBoolean_32 as isBoolean };
|
|
271
275
|
}
|
|
276
|
+
namespace absoluteWebLocations {
|
|
277
|
+
const isBoolean_33: true;
|
|
278
|
+
export { isBoolean_33 as isBoolean };
|
|
279
|
+
}
|
|
272
280
|
namespace simulatorWindowCenter {
|
|
273
|
-
const
|
|
274
|
-
export {
|
|
281
|
+
const isString_26: true;
|
|
282
|
+
export { isString_26 as isString };
|
|
275
283
|
}
|
|
276
284
|
namespace simulatorStartupTimeout {
|
|
277
285
|
const isNumber_9: true;
|
|
278
286
|
export { isNumber_9 as isNumber };
|
|
279
287
|
}
|
|
280
288
|
namespace simulatorTracePointer {
|
|
281
|
-
const isBoolean_33: true;
|
|
282
|
-
export { isBoolean_33 as isBoolean };
|
|
283
|
-
}
|
|
284
|
-
namespace useJSONSource {
|
|
285
289
|
const isBoolean_34: true;
|
|
286
290
|
export { isBoolean_34 as isBoolean };
|
|
287
291
|
}
|
|
288
|
-
namespace
|
|
292
|
+
namespace useJSONSource {
|
|
289
293
|
const isBoolean_35: true;
|
|
290
294
|
export { isBoolean_35 as isBoolean };
|
|
291
295
|
}
|
|
292
|
-
namespace
|
|
296
|
+
namespace enforceFreshSimulatorCreation {
|
|
293
297
|
const isBoolean_36: true;
|
|
294
298
|
export { isBoolean_36 as isBoolean };
|
|
295
299
|
}
|
|
296
|
-
namespace
|
|
297
|
-
const isString_26: true;
|
|
298
|
-
export { isString_26 as isString };
|
|
299
|
-
}
|
|
300
|
-
namespace showSafariConsoleLog {
|
|
300
|
+
namespace shutdownOtherSimulators {
|
|
301
301
|
const isBoolean_37: true;
|
|
302
302
|
export { isBoolean_37 as isBoolean };
|
|
303
303
|
}
|
|
304
|
-
namespace
|
|
304
|
+
namespace keychainsExcludePatterns {
|
|
305
|
+
const isString_27: true;
|
|
306
|
+
export { isString_27 as isString };
|
|
307
|
+
}
|
|
308
|
+
namespace showSafariConsoleLog {
|
|
305
309
|
const isBoolean_38: true;
|
|
306
310
|
export { isBoolean_38 as isBoolean };
|
|
307
311
|
}
|
|
308
|
-
namespace
|
|
312
|
+
namespace showSafariNetworkLog {
|
|
309
313
|
const isBoolean_39: true;
|
|
310
314
|
export { isBoolean_39 as isBoolean };
|
|
311
315
|
}
|
|
316
|
+
namespace safariGarbageCollect {
|
|
317
|
+
const isBoolean_40: true;
|
|
318
|
+
export { isBoolean_40 as isBoolean };
|
|
319
|
+
}
|
|
312
320
|
namespace safariGlobalPreferences {
|
|
313
321
|
const isObject: true;
|
|
314
322
|
}
|
|
315
323
|
namespace safariLogAllCommunication {
|
|
316
|
-
const isBoolean_40: true;
|
|
317
|
-
export { isBoolean_40 as isBoolean };
|
|
318
|
-
}
|
|
319
|
-
namespace safariLogAllCommunicationHexDump {
|
|
320
324
|
const isBoolean_41: true;
|
|
321
325
|
export { isBoolean_41 as isBoolean };
|
|
322
326
|
}
|
|
327
|
+
namespace safariLogAllCommunicationHexDump {
|
|
328
|
+
const isBoolean_42: true;
|
|
329
|
+
export { isBoolean_42 as isBoolean };
|
|
330
|
+
}
|
|
323
331
|
namespace safariSocketChunkSize {
|
|
324
332
|
const isNumber_10: true;
|
|
325
333
|
export { isNumber_10 as isNumber };
|
|
@@ -329,21 +337,21 @@ export namespace desiredCapConstraints {
|
|
|
329
337
|
export { isNumber_11 as isNumber };
|
|
330
338
|
}
|
|
331
339
|
namespace reduceMotion {
|
|
332
|
-
const isBoolean_42: true;
|
|
333
|
-
export { isBoolean_42 as isBoolean };
|
|
334
|
-
}
|
|
335
|
-
namespace reduceTransparency {
|
|
336
340
|
const isBoolean_43: true;
|
|
337
341
|
export { isBoolean_43 as isBoolean };
|
|
338
342
|
}
|
|
339
|
-
namespace
|
|
340
|
-
const
|
|
341
|
-
export {
|
|
343
|
+
namespace reduceTransparency {
|
|
344
|
+
const isBoolean_44: true;
|
|
345
|
+
export { isBoolean_44 as isBoolean };
|
|
342
346
|
}
|
|
343
|
-
namespace
|
|
347
|
+
namespace mjpegScreenshotUrl {
|
|
344
348
|
const isString_28: true;
|
|
345
349
|
export { isString_28 as isString };
|
|
346
350
|
}
|
|
351
|
+
namespace permissions {
|
|
352
|
+
const isString_29: true;
|
|
353
|
+
export { isString_29 as isString };
|
|
354
|
+
}
|
|
347
355
|
namespace screenshotQuality {
|
|
348
356
|
const isNumber_12: true;
|
|
349
357
|
export { isNumber_12 as isNumber };
|
|
@@ -353,12 +361,12 @@ export namespace desiredCapConstraints {
|
|
|
353
361
|
export { isNumber_13 as isNumber };
|
|
354
362
|
}
|
|
355
363
|
namespace otherApps {
|
|
356
|
-
const
|
|
357
|
-
export {
|
|
364
|
+
const isString_30: true;
|
|
365
|
+
export { isString_30 as isString };
|
|
358
366
|
}
|
|
359
367
|
namespace includeSafariInWebviews {
|
|
360
|
-
const
|
|
361
|
-
export {
|
|
368
|
+
const isBoolean_45: true;
|
|
369
|
+
export { isBoolean_45 as isBoolean };
|
|
362
370
|
}
|
|
363
371
|
const additionalWebviewBundleIds: {};
|
|
364
372
|
namespace webviewConnectTimeout {
|
|
@@ -366,70 +374,70 @@ export namespace desiredCapConstraints {
|
|
|
366
374
|
export { isNumber_14 as isNumber };
|
|
367
375
|
}
|
|
368
376
|
namespace iosSimulatorLogsPredicate {
|
|
369
|
-
const
|
|
370
|
-
export {
|
|
377
|
+
const isString_31: true;
|
|
378
|
+
export { isString_31 as isString };
|
|
371
379
|
}
|
|
372
380
|
namespace appPushTimeout {
|
|
373
381
|
const isNumber_15: true;
|
|
374
382
|
export { isNumber_15 as isNumber };
|
|
375
383
|
}
|
|
376
384
|
namespace nativeWebTapStrict {
|
|
377
|
-
const
|
|
378
|
-
export {
|
|
385
|
+
const isBoolean_46: true;
|
|
386
|
+
export { isBoolean_46 as isBoolean };
|
|
379
387
|
}
|
|
380
388
|
namespace safariWebInspectorMaxFrameLength {
|
|
381
389
|
const isNumber_16: true;
|
|
382
390
|
export { isNumber_16 as isNumber };
|
|
383
391
|
}
|
|
384
392
|
namespace allowProvisioningDeviceRegistration {
|
|
385
|
-
const
|
|
386
|
-
export {
|
|
393
|
+
const isBoolean_47: true;
|
|
394
|
+
export { isBoolean_47 as isBoolean };
|
|
387
395
|
}
|
|
388
396
|
namespace waitForIdleTimeout {
|
|
389
397
|
const isNumber_17: true;
|
|
390
398
|
export { isNumber_17 as isNumber };
|
|
391
399
|
}
|
|
392
400
|
namespace resultBundlePath {
|
|
393
|
-
const
|
|
394
|
-
export {
|
|
401
|
+
const isString_32: true;
|
|
402
|
+
export { isString_32 as isString };
|
|
395
403
|
}
|
|
396
404
|
namespace resultBundleVersion {
|
|
397
405
|
const isNumber_18: true;
|
|
398
406
|
export { isNumber_18 as isNumber };
|
|
399
407
|
}
|
|
400
408
|
namespace safariIgnoreWebHostnames {
|
|
401
|
-
const
|
|
402
|
-
export {
|
|
409
|
+
const isString_33: true;
|
|
410
|
+
export { isString_33 as isString };
|
|
403
411
|
}
|
|
404
412
|
namespace includeDeviceCapsToSessionInfo {
|
|
405
|
-
const isBoolean_47: true;
|
|
406
|
-
export { isBoolean_47 as isBoolean };
|
|
407
|
-
}
|
|
408
|
-
namespace disableAutomaticScreenshots {
|
|
409
413
|
const isBoolean_48: true;
|
|
410
414
|
export { isBoolean_48 as isBoolean };
|
|
411
415
|
}
|
|
412
|
-
namespace
|
|
416
|
+
namespace disableAutomaticScreenshots {
|
|
413
417
|
const isBoolean_49: true;
|
|
414
418
|
export { isBoolean_49 as isBoolean };
|
|
415
419
|
}
|
|
416
|
-
namespace
|
|
420
|
+
namespace shouldTerminateApp {
|
|
417
421
|
const isBoolean_50: true;
|
|
418
422
|
export { isBoolean_50 as isBoolean };
|
|
419
423
|
}
|
|
420
|
-
namespace
|
|
424
|
+
namespace forceAppLaunch {
|
|
421
425
|
const isBoolean_51: true;
|
|
422
426
|
export { isBoolean_51 as isBoolean };
|
|
423
427
|
}
|
|
428
|
+
namespace useNativeCachingStrategy {
|
|
429
|
+
const isBoolean_52: true;
|
|
430
|
+
export { isBoolean_52 as isBoolean };
|
|
431
|
+
}
|
|
424
432
|
namespace appInstallStrategy {
|
|
425
|
-
const
|
|
426
|
-
export {
|
|
433
|
+
const isString_34: true;
|
|
434
|
+
export { isString_34 as isString };
|
|
427
435
|
const inclusionCaseInsensitive_1: readonly ["serial", "parallel", "ios-deploy"];
|
|
428
436
|
export { inclusionCaseInsensitive_1 as inclusionCaseInsensitive };
|
|
429
437
|
}
|
|
430
438
|
namespace enforceAppInstall {
|
|
431
|
-
const
|
|
432
|
-
export {
|
|
439
|
+
const isBoolean_53: true;
|
|
440
|
+
export { isBoolean_53 as isBoolean };
|
|
433
441
|
}
|
|
434
442
|
}
|
|
435
443
|
export const PLATFORM_NAME_IOS: "iOS";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"desired-caps.d.ts","sourceRoot":"","sources":["../../lib/desired-caps.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"desired-caps.d.ts","sourceRoot":"","sources":["../../lib/desired-caps.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sCAAgC;AAChC,wCAAkC"}
|
|
@@ -139,6 +139,12 @@ const desiredCapConstraints = /** @type {const} */ ({
|
|
|
139
139
|
usePrebuiltWDA: {
|
|
140
140
|
isBoolean: true
|
|
141
141
|
},
|
|
142
|
+
prebuiltWDAPath: {
|
|
143
|
+
isString: true,
|
|
144
|
+
},
|
|
145
|
+
usePreinstalledWDA: {
|
|
146
|
+
isBoolean: true,
|
|
147
|
+
},
|
|
142
148
|
webDriverAgentUrl: {
|
|
143
149
|
isString: true
|
|
144
150
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"desired-caps.js","sourceRoot":"","sources":["../../lib/desired-caps.js"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,MAAM,iBAAiB,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"desired-caps.js","sourceRoot":"","sources":["../../lib/desired-caps.js"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,MAAM,iBAAiB,GAAG,KAAK,CAAC;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f;IACD,kBAAkB,EAAE;QAClB,SAAS,EAAE,IAAI;KAChB;IACD,gCAAgC,EAAE;QAChC,QAAQ,EAAE,IAAI;KACf;IACD,mCAAmC,EAAE;QACnC,SAAS,EAAE,IAAI;KAChB;IACD,kBAAkB,EAAE;QAClB,QAAQ,EAAE,IAAI;KACf;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,IAAI;KACf;IACD,mBAAmB,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf;IACD,wBAAwB,EAAE;QACxB,QAAQ,EAAE,IAAI;KACf;IACD,8BAA8B,EAAE;QAC9B,SAAS,EAAE,IAAI;KAChB;IACD,2BAA2B,EAAE;QAC3B,SAAS,EAAE,IAAI;KAChB;IACD,kBAAkB,EAAE;QAClB,SAAS,EAAE,IAAI;KAChB;IACD,cAAc,EAAE;QACd,SAAS,EAAE,IAAI;KAChB;IACD,wBAAwB,EAAE;QACxB,SAAS,EAAE,IAAI;KAChB;IACD,kBAAkB,EAAE;QAClB,QAAQ,EAAE,IAAI;QACd,wBAAwB,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,YAAY,CAAC;KAC/D;IACD,iBAAiB,EAAE;QACjB,SAAS,EAAE,IAAI;KAChB;CACF,CAAC,CAAC;AAEM,sDAAqB;AAC9B,kBAAe,qBAAqB,CAAC"}
|
package/build/lib/driver.d.ts
CHANGED
|
@@ -139,6 +139,12 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
139
139
|
readonly usePrebuiltWDA: {
|
|
140
140
|
readonly isBoolean: true;
|
|
141
141
|
};
|
|
142
|
+
readonly prebuiltWDAPath: {
|
|
143
|
+
readonly isString: true;
|
|
144
|
+
};
|
|
145
|
+
readonly usePreinstalledWDA: {
|
|
146
|
+
readonly isBoolean: true;
|
|
147
|
+
};
|
|
142
148
|
readonly webDriverAgentUrl: {
|
|
143
149
|
readonly isString: true;
|
|
144
150
|
};
|
|
@@ -185,6 +191,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
185
191
|
readonly simulatorDevicesSetPath: {
|
|
186
192
|
readonly isString: true;
|
|
187
193
|
};
|
|
194
|
+
/** @type {import('@appium/types').RouteMatcher[]} */
|
|
188
195
|
readonly calendarAccessAuthorized: {
|
|
189
196
|
readonly isBoolean: true;
|
|
190
197
|
};
|
|
@@ -295,7 +302,12 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
295
302
|
readonly isNumber: true;
|
|
296
303
|
};
|
|
297
304
|
readonly nativeWebTapStrict: {
|
|
298
|
-
readonly isBoolean: true;
|
|
305
|
+
readonly isBoolean: true; /**
|
|
306
|
+
* @implements {ExternalDriver<XCUITestDriverConstraints, FullContext|string>}
|
|
307
|
+
* @extends {BaseDriver<XCUITestDriverConstraints>}
|
|
308
|
+
* @privateRemarks **This class should be considered "final"**. It cannot be extended
|
|
309
|
+
* 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.
|
|
310
|
+
*/
|
|
299
311
|
};
|
|
300
312
|
readonly safariWebInspectorMaxFrameLength: {
|
|
301
313
|
readonly isNumber: true;
|
|
@@ -334,6 +346,9 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
334
346
|
readonly isString: true;
|
|
335
347
|
readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
|
|
336
348
|
};
|
|
349
|
+
/**
|
|
350
|
+
* @type {import('@appium/types').Position|null}
|
|
351
|
+
*/
|
|
337
352
|
readonly enforceAppInstall: {
|
|
338
353
|
readonly isBoolean: true;
|
|
339
354
|
};
|
|
@@ -1250,6 +1265,12 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1250
1265
|
readonly usePrebuiltWDA: {
|
|
1251
1266
|
readonly isBoolean: true;
|
|
1252
1267
|
};
|
|
1268
|
+
readonly prebuiltWDAPath: {
|
|
1269
|
+
readonly isString: true;
|
|
1270
|
+
};
|
|
1271
|
+
readonly usePreinstalledWDA: {
|
|
1272
|
+
readonly isBoolean: true;
|
|
1273
|
+
};
|
|
1253
1274
|
readonly webDriverAgentUrl: {
|
|
1254
1275
|
readonly isString: true;
|
|
1255
1276
|
};
|
|
@@ -1296,6 +1317,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1296
1317
|
readonly simulatorDevicesSetPath: {
|
|
1297
1318
|
readonly isString: true;
|
|
1298
1319
|
};
|
|
1320
|
+
/** @type {import('@appium/types').RouteMatcher[]} */
|
|
1299
1321
|
readonly calendarAccessAuthorized: {
|
|
1300
1322
|
readonly isBoolean: true;
|
|
1301
1323
|
};
|
|
@@ -1406,7 +1428,12 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1406
1428
|
readonly isNumber: true;
|
|
1407
1429
|
};
|
|
1408
1430
|
readonly nativeWebTapStrict: {
|
|
1409
|
-
readonly isBoolean: true;
|
|
1431
|
+
readonly isBoolean: true; /**
|
|
1432
|
+
* @implements {ExternalDriver<XCUITestDriverConstraints, FullContext|string>}
|
|
1433
|
+
* @extends {BaseDriver<XCUITestDriverConstraints>}
|
|
1434
|
+
* @privateRemarks **This class should be considered "final"**. It cannot be extended
|
|
1435
|
+
* 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.
|
|
1436
|
+
*/
|
|
1410
1437
|
};
|
|
1411
1438
|
readonly safariWebInspectorMaxFrameLength: {
|
|
1412
1439
|
readonly isNumber: true;
|
|
@@ -1445,6 +1472,9 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1445
1472
|
readonly isString: true;
|
|
1446
1473
|
readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
|
|
1447
1474
|
};
|
|
1475
|
+
/**
|
|
1476
|
+
* @type {import('@appium/types').Position|null}
|
|
1477
|
+
*/
|
|
1448
1478
|
readonly enforceAppInstall: {
|
|
1449
1479
|
readonly isBoolean: true;
|
|
1450
1480
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/dri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ACnD,uDAAqD;IACrD,mEAAqD;IACrD,wDAAyD;IACzD,+DAA2D;IAC3D,iHAAiD;IACjD,iGAA2D;IAC3D,wJAAyD;IACzD,0FAAyE;IACzE,oCAAmD;IACnD,mFAAmD;IACnD,oHAA2E;IAC3E,wDAAuD;IACvD,8DAA6D;IAC7D;;;OAAiE;IACjE,+DAA+D;IAC/D,qGAA2F;IAC3F,4GAA+E;IAC/E,+DAAmD;IACnD;;;mBAA+D;IAC/D,0DAAqD;IACrD,2EAAiD;IACjD,uEAAmD;IACnD,yFAAqF;IACrF,kEAAiD;IAKjD,uQAA4D;IAC5D,sFAAgF;IAChF,qEAA4E;IAC5E,2FAAwF;CACzF"}
|
package/build/lib/driver.js
CHANGED
|
@@ -895,13 +895,24 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
895
895
|
this.log.debug(`Consider setting a unique 'derivedDataPath' capability value for each parallel driver instance ` +
|
|
896
896
|
`to avoid conflicts and speed up the building process`);
|
|
897
897
|
}
|
|
898
|
+
if (this.opts.usePreinstalledWDA) {
|
|
899
|
+
if (!this.isRealDevice()) {
|
|
900
|
+
throw new Error(`'usePreinstalledWDA' capability is only supported for real devices. ` +
|
|
901
|
+
`'useXctestrunFile' or 'usePrebuiltWDA' may help to get similar errort on Simulators.`);
|
|
902
|
+
}
|
|
903
|
+
// below will be only for real devices if the caps has "this.opts.usePreinstalledWDA"
|
|
904
|
+
if (this.opts.prebuiltWDAPath && !(await support_1.fs.exists(this.opts.prebuiltWDAPath))) {
|
|
905
|
+
throw new Error(`'${this.opts.prebuiltWDAPath}' provided as 'prebuiltWDAPath' capability did not exist. ` +
|
|
906
|
+
`Please make sure if the path exits.`);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
898
909
|
return await SHARED_RESOURCES_GUARD.acquire(synchronizationKey, async () => {
|
|
899
910
|
if (this.opts.useNewWDA) {
|
|
900
911
|
this.log.debug(`Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding`);
|
|
901
912
|
await this.wda.quitAndUninstall();
|
|
902
913
|
this.logEvent('wdaUninstalled');
|
|
903
914
|
}
|
|
904
|
-
else if (!support_1.util.hasValue(this.wda.webDriverAgentUrl)) {
|
|
915
|
+
else if (!support_1.util.hasValue(this.wda.webDriverAgentUrl) || !this.opts.usePreinstalledWDA) {
|
|
905
916
|
await this.wda.setupCaching();
|
|
906
917
|
}
|
|
907
918
|
// local helper for the two places we need to uninstall wda and re-start it
|
|
@@ -911,6 +922,10 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
911
922
|
this.log.debug('Not quitting/uninstalling WebDriverAgent since webDriverAgentUrl capability is provided');
|
|
912
923
|
throw new Error(msg);
|
|
913
924
|
}
|
|
925
|
+
else if (this.opts.usePreinstalledWDA) {
|
|
926
|
+
this.log.debug('Not uninstalling WebDriverAgent since this.opts.usePreinstalledWDA capability is provided');
|
|
927
|
+
throw new Error(msg);
|
|
928
|
+
}
|
|
914
929
|
this.log.warn('Quitting and uninstalling WebDriverAgent');
|
|
915
930
|
await this.wda.quitAndUninstall();
|
|
916
931
|
throw new Error(msg);
|
|
@@ -934,11 +949,28 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
934
949
|
this.log.info(`Retrying WDA startup (${retryCount + 1} of ${startupRetries})`);
|
|
935
950
|
}
|
|
936
951
|
try {
|
|
937
|
-
|
|
952
|
+
if (this.opts.usePreinstalledWDA) {
|
|
953
|
+
// Stop the existing process before starting a new one to start a fresh WDA process every session.
|
|
954
|
+
await this.mobileKillApp(this.wda.bundleIdForXctest);
|
|
955
|
+
if (this.opts.prebuiltWDAPath) {
|
|
956
|
+
const candidateBundleId = await app_utils_1.extractBundleId.bind(this)(this.opts.prebuiltWDAPath);
|
|
957
|
+
this.wda.updatedWDABundleId = candidateBundleId.replace('.xctrunner', '');
|
|
958
|
+
this.log.info(`Installing prebuilt WDA ${this.opts.prebuiltWDAPath}`);
|
|
959
|
+
// Note: The CFBundleVersion in the test bundle was always 1.
|
|
960
|
+
// It may not be able to compare with the installed versio.
|
|
961
|
+
await (0, real_device_management_1.installToRealDevice)(
|
|
962
|
+
// @ts-expect-error - do not assign arbitrary properties to `this.opts`
|
|
963
|
+
this.opts.device, this.opts.prebuiltWDAPath, candidateBundleId, {
|
|
964
|
+
skipUninstall: true,
|
|
965
|
+
timeout: this.opts.appPushTimeout,
|
|
966
|
+
strategy: this.opts.appInstallStrategy,
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
// Over Xcode 10 will often try to access the app from its staging
|
|
938
971
|
// directory before fully moving it there, and fail. Retrying once
|
|
939
972
|
// immediately helps
|
|
940
|
-
|
|
941
|
-
this.cachedWdaStatus = await (0, asyncbox_1.retry)(retries, this.wda.launch.bind(this.wda), sessionId, realDevice);
|
|
973
|
+
this.cachedWdaStatus = await (0, asyncbox_1.retry)(2, this.wda.launch.bind(this.wda), sessionId, realDevice);
|
|
942
974
|
}
|
|
943
975
|
catch (err) {
|
|
944
976
|
this.logEvent('wdaStartFailed');
|
|
@@ -950,7 +982,19 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
950
982
|
`Try to remove the WebDriverAgentRunner application from the device if it is installed ` +
|
|
951
983
|
`and reboot the device.`;
|
|
952
984
|
}
|
|
953
|
-
|
|
985
|
+
if (this.opts.usePreinstalledWDA) {
|
|
986
|
+
// In case the bundle id process start got failed because of
|
|
987
|
+
// auth popup in the device. Then, the bundle id process itself started. It is safe to stop it here.
|
|
988
|
+
await this.mobileKillApp(this.wda.bundleIdForXctest);
|
|
989
|
+
// Mostly it failed to start the WDA process as no the bundle id
|
|
990
|
+
// e.g. '<bundle id of WDA> not found on device <udid>'
|
|
991
|
+
throw new Error(`Unable to launch WebDriverAgent because of failure: ${err.message}. ` +
|
|
992
|
+
`Please make sure if the ${this.wda.bundleIdForXctest} exists and it is launchable. ` +
|
|
993
|
+
`${WDA_REAL_DEV_TUTORIAL_URL} may help to complete the preparation.`);
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
await quitAndUninstall(errorMsg);
|
|
997
|
+
}
|
|
954
998
|
}
|
|
955
999
|
this.proxyReqRes = this.wda.proxyReqRes.bind(this.wda);
|
|
956
1000
|
this.jwpProxyActive = true;
|
|
@@ -1096,7 +1140,10 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1096
1140
|
this.log.debug(`Unable to DELETE session on WDA: '${err.message}'. Continuing shutdown.`);
|
|
1097
1141
|
}
|
|
1098
1142
|
}
|
|
1099
|
-
|
|
1143
|
+
// The former could cache the xcodebuild, so should not quit the process.
|
|
1144
|
+
// If the session skiped the xcodebuild (this.wda.canSkipXcodebuild), the this.wda instance
|
|
1145
|
+
// should quit properly.
|
|
1146
|
+
if ((!this.wda.webDriverAgentUrl && this.opts.useNewWDA) || this.wda.canSkipXcodebuild) {
|
|
1100
1147
|
await this.wda.quit();
|
|
1101
1148
|
}
|
|
1102
1149
|
}
|