appium-xcuitest-driver 10.0.6 → 10.1.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 +13 -0
- package/build/lib/commands/context.d.ts +2 -3
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +23 -42
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/pcap.js +2 -0
- package/build/lib/commands/pcap.js.map +1 -1
- package/build/lib/commands/performance.js +2 -0
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/types.d.ts +9 -10
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/device-log/ios-crash-log.js +6 -0
- package/build/lib/device-log/ios-crash-log.js.map +1 -1
- package/build/lib/device-log/ios-device-log.js +3 -0
- package/build/lib/device-log/ios-device-log.js.map +1 -1
- package/build/lib/device-log/ios-log.js +3 -0
- package/build/lib/device-log/ios-log.js.map +1 -1
- package/build/lib/device-log/ios-performance-log.js +2 -0
- package/build/lib/device-log/ios-performance-log.js.map +1 -1
- package/build/lib/device-log/ios-simulator-log.js +7 -0
- package/build/lib/device-log/ios-simulator-log.js.map +1 -1
- package/build/lib/device-log/safari-console-log.js +1 -0
- package/build/lib/device-log/safari-console-log.js.map +1 -1
- package/build/lib/device-log/safari-network-log.js +1 -0
- package/build/lib/device-log/safari-network-log.js.map +1 -1
- package/build/lib/doctor/optional-checks.js +4 -10
- package/build/lib/doctor/optional-checks.js.map +1 -1
- package/build/lib/doctor/required-checks.js +1 -1
- package/build/lib/doctor/required-checks.js.map +1 -1
- package/build/lib/driver.d.ts +1 -5
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +426 -371
- package/build/lib/driver.js.map +1 -1
- package/build/lib/real-device-clients/base-device-client.js +1 -0
- package/build/lib/real-device-clients/base-device-client.js.map +1 -1
- package/build/lib/real-device-clients/py-ios-device-client.js +2 -0
- package/build/lib/real-device-clients/py-ios-device-client.js.map +1 -1
- package/lib/commands/context.js +21 -45
- package/lib/commands/types.ts +5 -7
- package/lib/driver.js +0 -8
- package/npm-shrinkwrap.json +153 -160
- package/package.json +3 -4
package/build/lib/driver.js
CHANGED
|
@@ -141,6 +141,63 @@ const BUNDLE_VERSION_PATTERN = /CFBundleVersion\s+=\s+"?([^(;|")]+)/;
|
|
|
141
141
|
* 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.
|
|
142
142
|
*/
|
|
143
143
|
class XCUITestDriver extends driver_1.BaseDriver {
|
|
144
|
+
static newMethodMap = method_map_1.newMethodMap;
|
|
145
|
+
static executeMethodMap = execute_method_map_1.executeMethodMap;
|
|
146
|
+
/** @type {string|null|undefined} */
|
|
147
|
+
curWindowHandle;
|
|
148
|
+
/**
|
|
149
|
+
* @type {boolean|undefined}
|
|
150
|
+
*/
|
|
151
|
+
selectingNewPage;
|
|
152
|
+
/** @type {string[]} */
|
|
153
|
+
contexts;
|
|
154
|
+
/** @type {string|null} */
|
|
155
|
+
curContext;
|
|
156
|
+
/** @type {string[]} */
|
|
157
|
+
curWebFrames;
|
|
158
|
+
/** @type {import('./types').CalibrationData|null} */
|
|
159
|
+
webviewCalibrationResult;
|
|
160
|
+
/** @type {import('./types').AsyncPromise|undefined} */
|
|
161
|
+
asyncPromise;
|
|
162
|
+
/** @type {number|undefined} */
|
|
163
|
+
asyncWaitMs;
|
|
164
|
+
/** @type {((logRecord: {message: string}) => void)|null} */
|
|
165
|
+
_syslogWebsocketListener;
|
|
166
|
+
/** @type {import('./commands/performance').PerfRecorder[]} */
|
|
167
|
+
_perfRecorders;
|
|
168
|
+
/** @type {LRUCache} */
|
|
169
|
+
webElementsCache;
|
|
170
|
+
/**
|
|
171
|
+
* @type {any|null}
|
|
172
|
+
* @privateRemarks needs types
|
|
173
|
+
**/
|
|
174
|
+
_conditionInducerService;
|
|
175
|
+
/** @type {boolean|undefined} */
|
|
176
|
+
_isSafariIphone;
|
|
177
|
+
/** @type {boolean|undefined} */
|
|
178
|
+
_isSafariNotched;
|
|
179
|
+
/** @type {import('./commands/types').WaitingAtoms} */
|
|
180
|
+
_waitingAtoms;
|
|
181
|
+
/** @type {import('./types').LifecycleData} */
|
|
182
|
+
lifecycleData;
|
|
183
|
+
/** @type {import('./commands/record-audio').AudioRecorder|null} */
|
|
184
|
+
_audioRecorder;
|
|
185
|
+
/** @type {XcodeVersion|undefined} */
|
|
186
|
+
xcodeVersion;
|
|
187
|
+
/** @type {import('./commands/pcap').TrafficCapture|null} */
|
|
188
|
+
_trafficCapture;
|
|
189
|
+
/** @type {Simulator|RealDevice} */
|
|
190
|
+
_device;
|
|
191
|
+
/** @type {string|null} */
|
|
192
|
+
_iosSdkVersion;
|
|
193
|
+
/** @type {WebDriverAgent} */
|
|
194
|
+
wda;
|
|
195
|
+
/** @type {import('appium-remote-debugger').RemoteDebugger|null} */
|
|
196
|
+
remote;
|
|
197
|
+
/** @type {DriverLogs} */
|
|
198
|
+
logs;
|
|
199
|
+
/** @type {import('./commands/types').LogListener|undefined} */
|
|
200
|
+
_bidiServerLogListener;
|
|
144
201
|
/**
|
|
145
202
|
*
|
|
146
203
|
* @param {XCUITestDriverOpts} opts
|
|
@@ -148,375 +205,6 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
148
205
|
*/
|
|
149
206
|
constructor(opts = /** @type {XCUITestDriverOpts} */ ({}), shouldValidateCaps = true) {
|
|
150
207
|
super(opts, shouldValidateCaps);
|
|
151
|
-
/*---------------+
|
|
152
|
-
| ACTIVEAPPINFO |
|
|
153
|
-
+---------------+*/
|
|
154
|
-
this.mobileGetActiveAppInfo = commands_1.default.activeAppInfoExtensions.mobileGetActiveAppInfo;
|
|
155
|
-
/*-------+
|
|
156
|
-
| ALERT |
|
|
157
|
-
+-------+*/
|
|
158
|
-
this.getAlertText = commands_1.default.alertExtensions.getAlertText;
|
|
159
|
-
this.setAlertText = commands_1.default.alertExtensions.setAlertText;
|
|
160
|
-
this.postAcceptAlert = commands_1.default.alertExtensions.postAcceptAlert;
|
|
161
|
-
this.postDismissAlert = commands_1.default.alertExtensions.postDismissAlert;
|
|
162
|
-
this.getAlertButtons = commands_1.default.alertExtensions.getAlertButtons;
|
|
163
|
-
this.mobileHandleAlert = commands_1.default.alertExtensions.mobileHandleAlert;
|
|
164
|
-
/*---------------+
|
|
165
|
-
| APPMANAGEMENT |
|
|
166
|
-
+---------------+*/
|
|
167
|
-
this.mobileInstallApp = commands_1.default.appManagementExtensions.mobileInstallApp;
|
|
168
|
-
this.mobileIsAppInstalled = commands_1.default.appManagementExtensions.mobileIsAppInstalled;
|
|
169
|
-
this.mobileRemoveApp = commands_1.default.appManagementExtensions.mobileRemoveApp;
|
|
170
|
-
this.mobileLaunchApp = commands_1.default.appManagementExtensions.mobileLaunchApp;
|
|
171
|
-
this.mobileTerminateApp = commands_1.default.appManagementExtensions.mobileTerminateApp;
|
|
172
|
-
this.mobileActivateApp = commands_1.default.appManagementExtensions.mobileActivateApp;
|
|
173
|
-
this.mobileKillApp = commands_1.default.appManagementExtensions.mobileKillApp;
|
|
174
|
-
this.mobileQueryAppState = commands_1.default.appManagementExtensions.mobileQueryAppState;
|
|
175
|
-
this.installApp = commands_1.default.appManagementExtensions.installApp;
|
|
176
|
-
this.activateApp = commands_1.default.appManagementExtensions.activateApp;
|
|
177
|
-
this.isAppInstalled = commands_1.default.appManagementExtensions.isAppInstalled;
|
|
178
|
-
// @ts-ignore it must return boolean
|
|
179
|
-
this.terminateApp = commands_1.default.appManagementExtensions.terminateApp;
|
|
180
|
-
this.queryAppState = commands_1.default.appManagementExtensions.queryAppState;
|
|
181
|
-
this.mobileListApps = commands_1.default.appManagementExtensions.mobileListApps;
|
|
182
|
-
this.mobileClearApp = commands_1.default.appManagementExtensions.mobileClearApp;
|
|
183
|
-
/*------------+
|
|
184
|
-
| APPEARANCE |
|
|
185
|
-
+------------+*/
|
|
186
|
-
this.mobileSetAppearance = commands_1.default.appearanceExtensions.mobileSetAppearance;
|
|
187
|
-
this.mobileGetAppearance = commands_1.default.appearanceExtensions.mobileGetAppearance;
|
|
188
|
-
/*------------+
|
|
189
|
-
| INCREASE CONTRAST |
|
|
190
|
-
+------------+*/
|
|
191
|
-
this.mobileSetIncreaseContrast = commands_1.default.increaseContrastExtensions.mobileSetIncreaseContrast;
|
|
192
|
-
this.mobileGetIncreaseContrast = commands_1.default.increaseContrastExtensions.mobileGetIncreaseContrast;
|
|
193
|
-
/*------------+
|
|
194
|
-
| CONTENT SIZE |
|
|
195
|
-
+------------+*/
|
|
196
|
-
this.mobileSetContentSize = commands_1.default.contentSizeExtensions.mobileSetContentSize;
|
|
197
|
-
this.mobileGetContentSize = commands_1.default.contentSizeExtensions.mobileGetContentSize;
|
|
198
|
-
/*------------+
|
|
199
|
-
| AUDIT |
|
|
200
|
-
+------------+*/
|
|
201
|
-
this.mobilePerformAccessibilityAudit = commands_1.default.auditExtensions.mobilePerformAccessibilityAudit;
|
|
202
|
-
/*---------+
|
|
203
|
-
| BATTERY |
|
|
204
|
-
+---------+*/
|
|
205
|
-
this.mobileGetBatteryInfo = commands_1.default.batteryExtensions.mobileGetBatteryInfo;
|
|
206
|
-
/*-----------+
|
|
207
|
-
| BIOMETRIC |
|
|
208
|
-
+-----------+*/
|
|
209
|
-
this.mobileEnrollBiometric = commands_1.default.biometricExtensions.mobileEnrollBiometric;
|
|
210
|
-
this.mobileSendBiometricMatch = commands_1.default.biometricExtensions.mobileSendBiometricMatch;
|
|
211
|
-
this.mobileIsBiometricEnrolled = commands_1.default.biometricExtensions.mobileIsBiometricEnrolled;
|
|
212
|
-
/*-------------+
|
|
213
|
-
| CERTIFICATE |
|
|
214
|
-
+-------------+*/
|
|
215
|
-
this.mobileInstallCertificate = commands_1.default.certificateExtensions.mobileInstallCertificate;
|
|
216
|
-
this.mobileListCertificates = commands_1.default.certificateExtensions.mobileListCertificates;
|
|
217
|
-
this.mobileRemoveCertificate = commands_1.default.certificateExtensions.mobileRemoveCertificate;
|
|
218
|
-
/*-----------+
|
|
219
|
-
| CLIPBOARD |
|
|
220
|
-
+-----------+*/
|
|
221
|
-
this.setClipboard = commands_1.default.clipboardExtensions.setClipboard;
|
|
222
|
-
this.getClipboard = commands_1.default.clipboardExtensions.getClipboard;
|
|
223
|
-
/*-----------+
|
|
224
|
-
| CONDITION |
|
|
225
|
-
+-----------+*/
|
|
226
|
-
this.listConditionInducers = commands_1.default.conditionExtensions.listConditionInducers;
|
|
227
|
-
this.enableConditionInducer = commands_1.default.conditionExtensions.enableConditionInducer;
|
|
228
|
-
this.disableConditionInducer = commands_1.default.conditionExtensions.disableConditionInducer;
|
|
229
|
-
/*---------+
|
|
230
|
-
| CONTEXT |
|
|
231
|
-
+---------+*/
|
|
232
|
-
this.getContexts = commands_1.default.contextExtensions.getContexts;
|
|
233
|
-
this.getCurrentContext = commands_1.default.contextExtensions.getCurrentContext;
|
|
234
|
-
// @ts-ignore This is OK
|
|
235
|
-
this.getWindowHandle = commands_1.default.contextExtensions.getWindowHandle;
|
|
236
|
-
this.getWindowHandles = commands_1.default.contextExtensions.getWindowHandles;
|
|
237
|
-
this.setContext = commands_1.default.contextExtensions.setContext;
|
|
238
|
-
// @ts-ignore This is OK
|
|
239
|
-
this.setWindow = commands_1.default.contextExtensions.setWindow;
|
|
240
|
-
this.activateRecentWebview = commands_1.default.contextExtensions.activateRecentWebview;
|
|
241
|
-
this.connectToRemoteDebugger = commands_1.default.contextExtensions.connectToRemoteDebugger;
|
|
242
|
-
this.getContextsAndViews = commands_1.default.contextExtensions.getContextsAndViews;
|
|
243
|
-
this.listWebFrames = commands_1.default.contextExtensions.listWebFrames;
|
|
244
|
-
this.mobileGetContexts = commands_1.default.contextExtensions.mobileGetContexts;
|
|
245
|
-
this.onPageChange = commands_1.default.contextExtensions.onPageChange;
|
|
246
|
-
this.useNewSafari = commands_1.default.contextExtensions.useNewSafari;
|
|
247
|
-
this.getCurrentUrl = commands_1.default.contextExtensions.getCurrentUrl;
|
|
248
|
-
this.getNewRemoteDebugger = commands_1.default.contextExtensions.getNewRemoteDebugger;
|
|
249
|
-
this.getRecentWebviewContextId = commands_1.default.contextExtensions.getRecentWebviewContextId;
|
|
250
|
-
this.isWebContext = commands_1.default.contextExtensions.isWebContext;
|
|
251
|
-
this.isWebview = commands_1.default.contextExtensions.isWebview;
|
|
252
|
-
this.setCurrentUrl = commands_1.default.contextExtensions.setCurrentUrl;
|
|
253
|
-
this.stopRemote = commands_1.default.contextExtensions.stopRemote;
|
|
254
|
-
/*------------+
|
|
255
|
-
| DEVICEINFO |
|
|
256
|
-
+------------+*/
|
|
257
|
-
this.mobileGetDeviceInfo = commands_1.default.deviceInfoExtensions.mobileGetDeviceInfo;
|
|
258
|
-
/*---------+
|
|
259
|
-
| ELEMENT |
|
|
260
|
-
+---------+*/
|
|
261
|
-
this.elementDisplayed = commands_1.default.elementExtensions.elementDisplayed;
|
|
262
|
-
this.elementEnabled = commands_1.default.elementExtensions.elementEnabled;
|
|
263
|
-
this.elementSelected = commands_1.default.elementExtensions.elementSelected;
|
|
264
|
-
this.getName = commands_1.default.elementExtensions.getName;
|
|
265
|
-
this.getNativeAttribute = commands_1.default.elementExtensions.getNativeAttribute;
|
|
266
|
-
this.getAttribute = commands_1.default.elementExtensions.getAttribute;
|
|
267
|
-
this.getProperty = commands_1.default.elementExtensions.getProperty;
|
|
268
|
-
this.getText = commands_1.default.elementExtensions.getText;
|
|
269
|
-
this.getElementRect = commands_1.default.elementExtensions.getElementRect;
|
|
270
|
-
this.getLocation = commands_1.default.elementExtensions.getLocation;
|
|
271
|
-
this.getLocationInView = commands_1.default.elementExtensions.getLocationInView;
|
|
272
|
-
this.getSize = commands_1.default.elementExtensions.getSize;
|
|
273
|
-
/** @deprecated */
|
|
274
|
-
this.setValueImmediate = commands_1.default.elementExtensions.setValueImmediate;
|
|
275
|
-
this.setValue = commands_1.default.elementExtensions.setValue;
|
|
276
|
-
this.setValueWithWebAtom = commands_1.default.elementExtensions.setValueWithWebAtom;
|
|
277
|
-
this.keys = commands_1.default.elementExtensions.keys;
|
|
278
|
-
this.clear = commands_1.default.elementExtensions.clear;
|
|
279
|
-
this.getContentSize = commands_1.default.elementExtensions.getContentSize;
|
|
280
|
-
this.getNativeRect = commands_1.default.elementExtensions.getNativeRect;
|
|
281
|
-
/*---------+
|
|
282
|
-
| EXECUTE |
|
|
283
|
-
+---------+*/
|
|
284
|
-
this.receiveAsyncResponse = commands_1.default.executeExtensions.receiveAsyncResponse;
|
|
285
|
-
this.execute = commands_1.default.executeExtensions.execute;
|
|
286
|
-
this.executeAsync = commands_1.default.executeExtensions.executeAsync;
|
|
287
|
-
this.executeMobile = commands_1.default.executeExtensions.executeMobile;
|
|
288
|
-
this.mobileSimctl = commands_1.default.simctl.mobileSimctl;
|
|
289
|
-
/*--------------+
|
|
290
|
-
| FILEMOVEMENT |
|
|
291
|
-
+--------------+*/
|
|
292
|
-
this.pushFile = commands_1.default.fileMovementExtensions.pushFile;
|
|
293
|
-
this.mobilePushFile = commands_1.default.fileMovementExtensions.mobilePushFile;
|
|
294
|
-
this.pullFile = commands_1.default.fileMovementExtensions.pullFile;
|
|
295
|
-
this.mobilePullFile = commands_1.default.fileMovementExtensions.mobilePullFile;
|
|
296
|
-
this.mobileDeleteFolder = commands_1.default.fileMovementExtensions.mobileDeleteFolder;
|
|
297
|
-
this.mobileDeleteFile = commands_1.default.fileMovementExtensions.mobileDeleteFile;
|
|
298
|
-
this.pullFolder = commands_1.default.fileMovementExtensions.pullFolder;
|
|
299
|
-
this.mobilePullFolder = commands_1.default.fileMovementExtensions.mobilePullFolder;
|
|
300
|
-
/*--------+
|
|
301
|
-
| MEMORY |
|
|
302
|
-
+--------+*/
|
|
303
|
-
this.mobileSendMemoryWarning = commands_1.default.memoryExtensions.mobileSendMemoryWarning;
|
|
304
|
-
/*------+
|
|
305
|
-
| FIND |
|
|
306
|
-
+------+*/
|
|
307
|
-
this.findElOrEls = commands_1.default.findExtensions.findElOrEls;
|
|
308
|
-
this.findNativeElementOrElements = commands_1.default.findExtensions.findNativeElementOrElements;
|
|
309
|
-
this.doNativeFind = commands_1.default.findExtensions.doNativeFind;
|
|
310
|
-
this.getFirstVisibleChild = commands_1.default.findExtensions.getFirstVisibleChild;
|
|
311
|
-
/*---------+
|
|
312
|
-
| GENERAL |
|
|
313
|
-
+---------+*/
|
|
314
|
-
this.active = commands_1.default.generalExtensions.active;
|
|
315
|
-
this.background = commands_1.default.appManagementExtensions.background;
|
|
316
|
-
this.touchId = commands_1.default.generalExtensions.touchId;
|
|
317
|
-
this.toggleEnrollTouchId = commands_1.default.generalExtensions.toggleEnrollTouchId;
|
|
318
|
-
this.getWindowSize = commands_1.default.generalExtensions.getWindowSize;
|
|
319
|
-
this.getDeviceTime = commands_1.default.generalExtensions.getDeviceTime;
|
|
320
|
-
this.mobileGetDeviceTime = commands_1.default.generalExtensions.mobileGetDeviceTime;
|
|
321
|
-
this.getWindowRect = commands_1.default.generalExtensions.getWindowRect;
|
|
322
|
-
this.getStrings = commands_1.default.appStringsExtensions.getStrings;
|
|
323
|
-
this.removeApp = commands_1.default.generalExtensions.removeApp;
|
|
324
|
-
this.launchApp = commands_1.default.generalExtensions.launchApp;
|
|
325
|
-
this.closeApp = commands_1.default.generalExtensions.closeApp;
|
|
326
|
-
this.setUrl = commands_1.default.generalExtensions.setUrl;
|
|
327
|
-
this.getViewportRect = commands_1.default.generalExtensions.getViewportRect;
|
|
328
|
-
this.getScreenInfo = commands_1.default.generalExtensions.getScreenInfo;
|
|
329
|
-
this.getStatusBarHeight = commands_1.default.generalExtensions.getStatusBarHeight;
|
|
330
|
-
this.getDevicePixelRatio = commands_1.default.generalExtensions.getDevicePixelRatio;
|
|
331
|
-
this.mobilePressButton = commands_1.default.generalExtensions.mobilePressButton;
|
|
332
|
-
this.mobileSiriCommand = commands_1.default.generalExtensions.mobileSiriCommand;
|
|
333
|
-
/*-------------+
|
|
334
|
-
| GEOLOCATION |
|
|
335
|
-
+-------------+*/
|
|
336
|
-
this.mobileGetSimulatedLocation = commands_1.default.geolocationExtensions.mobileGetSimulatedLocation;
|
|
337
|
-
this.mobileSetSimulatedLocation = commands_1.default.geolocationExtensions.mobileSetSimulatedLocation;
|
|
338
|
-
this.mobileResetSimulatedLocation = commands_1.default.geolocationExtensions.mobileResetSimulatedLocation;
|
|
339
|
-
/*---------+
|
|
340
|
-
| GESTURE |
|
|
341
|
-
+---------+*/
|
|
342
|
-
this.mobileShake = commands_1.default.gestureExtensions.mobileShake;
|
|
343
|
-
this.click = commands_1.default.gestureExtensions.click;
|
|
344
|
-
this.releaseActions = commands_1.default.gestureExtensions.releaseActions;
|
|
345
|
-
this.performActions = commands_1.default.gestureExtensions.performActions;
|
|
346
|
-
this.nativeClick = commands_1.default.gestureExtensions.nativeClick;
|
|
347
|
-
this.mobileScrollToElement = commands_1.default.gestureExtensions.mobileScrollToElement;
|
|
348
|
-
this.mobileScroll = commands_1.default.gestureExtensions.mobileScroll;
|
|
349
|
-
this.mobileSwipe = commands_1.default.gestureExtensions.mobileSwipe;
|
|
350
|
-
this.mobilePinch = commands_1.default.gestureExtensions.mobilePinch;
|
|
351
|
-
this.mobileDoubleTap = commands_1.default.gestureExtensions.mobileDoubleTap;
|
|
352
|
-
this.mobileTwoFingerTap = commands_1.default.gestureExtensions.mobileTwoFingerTap;
|
|
353
|
-
this.mobileTouchAndHold = commands_1.default.gestureExtensions.mobileTouchAndHold;
|
|
354
|
-
this.mobileTap = commands_1.default.gestureExtensions.mobileTap;
|
|
355
|
-
this.mobileDragFromToForDuration = commands_1.default.gestureExtensions.mobileDragFromToForDuration;
|
|
356
|
-
this.mobileDragFromToWithVelocity = commands_1.default.gestureExtensions.mobileDragFromToWithVelocity;
|
|
357
|
-
this.mobileTapWithNumberOfTaps = commands_1.default.gestureExtensions.mobileTapWithNumberOfTaps;
|
|
358
|
-
this.mobileForcePress = commands_1.default.gestureExtensions.mobileForcePress;
|
|
359
|
-
this.mobileSelectPickerWheelValue = commands_1.default.gestureExtensions.mobileSelectPickerWheelValue;
|
|
360
|
-
this.mobileRotateElement = commands_1.default.gestureExtensions.mobileRotateElement;
|
|
361
|
-
/*-------+
|
|
362
|
-
| IOHID |
|
|
363
|
-
+-------+*/
|
|
364
|
-
this.mobilePerformIoHidEvent = commands_1.default.iohidExtensions.mobilePerformIoHidEvent;
|
|
365
|
-
/*-----------+
|
|
366
|
-
| KEYCHAINS |
|
|
367
|
-
+-----------+*/
|
|
368
|
-
this.mobileClearKeychains = commands_1.default.keychainsExtensions.mobileClearKeychains;
|
|
369
|
-
/*----------+
|
|
370
|
-
| KEYBOARD |
|
|
371
|
-
+----------+*/
|
|
372
|
-
this.hideKeyboard = commands_1.default.keyboardExtensions.hideKeyboard;
|
|
373
|
-
this.mobileHideKeyboard = commands_1.default.keyboardExtensions.mobileHideKeyboard;
|
|
374
|
-
this.isKeyboardShown = commands_1.default.keyboardExtensions.isKeyboardShown;
|
|
375
|
-
this.mobileKeys = commands_1.default.keyboardExtensions.mobileKeys;
|
|
376
|
-
/*--------------+
|
|
377
|
-
| LOCALIZATION |
|
|
378
|
-
+--------------+*/
|
|
379
|
-
this.mobileConfigureLocalization = commands_1.default.localizationExtensions.mobileConfigureLocalization;
|
|
380
|
-
/*----------+
|
|
381
|
-
| LOCATION |
|
|
382
|
-
+----------+*/
|
|
383
|
-
this.getGeoLocation = commands_1.default.locationExtensions.getGeoLocation;
|
|
384
|
-
this.setGeoLocation = commands_1.default.locationExtensions.setGeoLocation;
|
|
385
|
-
this.mobileResetLocationService = commands_1.default.locationExtensions.mobileResetLocationService;
|
|
386
|
-
/*------+
|
|
387
|
-
| LOCK |
|
|
388
|
-
+------+*/
|
|
389
|
-
this.lock = commands_1.default.lockExtensions.lock;
|
|
390
|
-
this.unlock = commands_1.default.lockExtensions.unlock;
|
|
391
|
-
this.isLocked = commands_1.default.lockExtensions.isLocked;
|
|
392
|
-
/*-----+
|
|
393
|
-
| LOG |
|
|
394
|
-
+-----+*/
|
|
395
|
-
this.extractLogs = commands_1.default.logExtensions.extractLogs;
|
|
396
|
-
this.supportedLogTypes = commands_1.default.logExtensions.supportedLogTypes;
|
|
397
|
-
this.startLogCapture = commands_1.default.logExtensions.startLogCapture;
|
|
398
|
-
this.mobileStartLogsBroadcast = commands_1.default.logExtensions.mobileStartLogsBroadcast;
|
|
399
|
-
this.mobileStopLogsBroadcast = commands_1.default.logExtensions.mobileStopLogsBroadcast;
|
|
400
|
-
/*------------+
|
|
401
|
-
| NAVIGATION |
|
|
402
|
-
+------------+*/
|
|
403
|
-
this.back = commands_1.default.navigationExtensions.back;
|
|
404
|
-
this.forward = commands_1.default.navigationExtensions.forward;
|
|
405
|
-
this.closeWindow = commands_1.default.navigationExtensions.closeWindow;
|
|
406
|
-
this.nativeBack = commands_1.default.navigationExtensions.nativeBack;
|
|
407
|
-
this.mobileDeepLink = commands_1.default.navigationExtensions.mobileDeepLink;
|
|
408
|
-
/*---------------+
|
|
409
|
-
| NOTIFICATIONS |
|
|
410
|
-
+---------------+*/
|
|
411
|
-
this.mobilePushNotification = commands_1.default.notificationsExtensions.mobilePushNotification;
|
|
412
|
-
this.mobileExpectNotification = commands_1.default.notificationsExtensions.mobileExpectNotification;
|
|
413
|
-
/*------------+
|
|
414
|
-
| PASTEBOARD |
|
|
415
|
-
+------------+*/
|
|
416
|
-
this.mobileSetPasteboard = commands_1.default.pasteboardExtensions.mobileSetPasteboard;
|
|
417
|
-
this.mobileGetPasteboard = commands_1.default.pasteboardExtensions.mobileGetPasteboard;
|
|
418
|
-
/*------+
|
|
419
|
-
| PCAP |
|
|
420
|
-
+------+*/
|
|
421
|
-
this.mobileStartPcap = commands_1.default.pcapExtensions.mobileStartPcap;
|
|
422
|
-
this.mobileStopPcap = commands_1.default.pcapExtensions.mobileStopPcap;
|
|
423
|
-
/*-------------+
|
|
424
|
-
| PERFORMANCE |
|
|
425
|
-
+-------------+*/
|
|
426
|
-
this.mobileStartPerfRecord = commands_1.default.performanceExtensions.mobileStartPerfRecord;
|
|
427
|
-
this.mobileStopPerfRecord = commands_1.default.performanceExtensions.mobileStopPerfRecord;
|
|
428
|
-
/*-------------+
|
|
429
|
-
| PERMISSIONS |
|
|
430
|
-
+-------------+*/
|
|
431
|
-
this.mobileResetPermission = commands_1.default.permissionsExtensions.mobileResetPermission;
|
|
432
|
-
this.mobileGetPermission = commands_1.default.permissionsExtensions.mobileGetPermission;
|
|
433
|
-
this.mobileSetPermissions = commands_1.default.permissionsExtensions.mobileSetPermissions;
|
|
434
|
-
/*-------------+
|
|
435
|
-
| PROXYHELPER |
|
|
436
|
-
+-------------+*/
|
|
437
|
-
this.proxyCommand = commands_1.default.proxyHelperExtensions.proxyCommand;
|
|
438
|
-
/*-------------+
|
|
439
|
-
| RECORDAUDIO |
|
|
440
|
-
+-------------+*/
|
|
441
|
-
this.startAudioRecording = commands_1.default.recordAudioExtensions.startAudioRecording;
|
|
442
|
-
this.stopAudioRecording = commands_1.default.recordAudioExtensions.stopAudioRecording;
|
|
443
|
-
/*--------------+
|
|
444
|
-
| RECORDSCREEN |
|
|
445
|
-
+--------------+*/
|
|
446
|
-
this._recentScreenRecorder = commands_1.default.recordScreenExtensions._recentScreenRecorder;
|
|
447
|
-
this.startRecordingScreen = commands_1.default.recordScreenExtensions.startRecordingScreen;
|
|
448
|
-
this.stopRecordingScreen = commands_1.default.recordScreenExtensions.stopRecordingScreen;
|
|
449
|
-
/*-------------+
|
|
450
|
-
| SCREENSHOTS |
|
|
451
|
-
+-------------+*/
|
|
452
|
-
this.getScreenshot = commands_1.default.screenshotExtensions.getScreenshot;
|
|
453
|
-
this.getElementScreenshot = commands_1.default.screenshotExtensions.getElementScreenshot;
|
|
454
|
-
this.getViewportScreenshot = commands_1.default.screenshotExtensions.getViewportScreenshot;
|
|
455
|
-
/*--------+
|
|
456
|
-
| SOURCE |
|
|
457
|
-
+--------+*/
|
|
458
|
-
this.getPageSource = commands_1.default.sourceExtensions.getPageSource;
|
|
459
|
-
this.mobileGetSource = commands_1.default.sourceExtensions.mobileGetSource;
|
|
460
|
-
/*----------+
|
|
461
|
-
| TIMEOUTS |
|
|
462
|
-
+----------+*/
|
|
463
|
-
this.pageLoadTimeoutW3C = commands_1.default.timeoutExtensions.pageLoadTimeoutW3C;
|
|
464
|
-
this.pageLoadTimeoutMJSONWP = commands_1.default.timeoutExtensions.pageLoadTimeoutMJSONWP;
|
|
465
|
-
this.scriptTimeoutW3C = commands_1.default.timeoutExtensions.scriptTimeoutW3C;
|
|
466
|
-
this.scriptTimeoutMJSONWP = commands_1.default.timeoutExtensions.scriptTimeoutMJSONWP;
|
|
467
|
-
this.asyncScriptTimeout = commands_1.default.timeoutExtensions.asyncScriptTimeout;
|
|
468
|
-
this.setPageLoadTimeout = commands_1.default.timeoutExtensions.setPageLoadTimeout;
|
|
469
|
-
this.setAsyncScriptTimeout = commands_1.default.timeoutExtensions.setAsyncScriptTimeout;
|
|
470
|
-
/*-----+
|
|
471
|
-
| WEB |
|
|
472
|
-
+-----+*/
|
|
473
|
-
this.setFrame = commands_1.default.webExtensions.setFrame;
|
|
474
|
-
this.getCssProperty = commands_1.default.webExtensions.getCssProperty;
|
|
475
|
-
this.submit = commands_1.default.webExtensions.submit;
|
|
476
|
-
this.refresh = commands_1.default.webExtensions.refresh;
|
|
477
|
-
this.getUrl = commands_1.default.webExtensions.getUrl;
|
|
478
|
-
this.title = commands_1.default.webExtensions.title;
|
|
479
|
-
this.getCookies = commands_1.default.webExtensions.getCookies;
|
|
480
|
-
this.setCookie = commands_1.default.webExtensions.setCookie;
|
|
481
|
-
this.deleteCookie = commands_1.default.webExtensions.deleteCookie;
|
|
482
|
-
this.deleteCookies = commands_1.default.webExtensions.deleteCookies;
|
|
483
|
-
this._deleteCookie = commands_1.default.webExtensions._deleteCookie;
|
|
484
|
-
this.cacheWebElement = commands_1.default.webExtensions.cacheWebElement;
|
|
485
|
-
this.cacheWebElements = commands_1.default.webExtensions.cacheWebElements;
|
|
486
|
-
this.executeAtom = commands_1.default.webExtensions.executeAtom;
|
|
487
|
-
this.executeAtomAsync = commands_1.default.webExtensions.executeAtomAsync;
|
|
488
|
-
this.getAtomsElement = commands_1.default.webExtensions.getAtomsElement;
|
|
489
|
-
this.convertElementsForAtoms = commands_1.default.webExtensions.convertElementsForAtoms;
|
|
490
|
-
this.getElementId = commands_1.default.webExtensions.getElementId;
|
|
491
|
-
this.hasElementId = commands_1.default.webExtensions.hasElementId;
|
|
492
|
-
this.findWebElementOrElements = commands_1.default.webExtensions.findWebElementOrElements;
|
|
493
|
-
this.clickWebCoords = commands_1.default.webExtensions.clickWebCoords;
|
|
494
|
-
this.getSafariIsIphone = commands_1.default.webExtensions.getSafariIsIphone;
|
|
495
|
-
this.getSafariDeviceSize = commands_1.default.webExtensions.getSafariDeviceSize;
|
|
496
|
-
this.getSafariIsNotched = commands_1.default.webExtensions.getSafariIsNotched;
|
|
497
|
-
this.getExtraTranslateWebCoordsOffset = commands_1.default.webExtensions.getExtraTranslateWebCoordsOffset;
|
|
498
|
-
this.getExtraNativeWebTapOffset = commands_1.default.webExtensions.getExtraNativeWebTapOffset;
|
|
499
|
-
this.nativeWebTap = commands_1.default.webExtensions.nativeWebTap;
|
|
500
|
-
this.translateWebCoords = commands_1.default.webExtensions.translateWebCoords;
|
|
501
|
-
this.checkForAlert = commands_1.default.webExtensions.checkForAlert;
|
|
502
|
-
this.waitForAtom = commands_1.default.webExtensions.waitForAtom;
|
|
503
|
-
this.mobileWebNav = commands_1.default.webExtensions.mobileWebNav;
|
|
504
|
-
this.getWdaLocalhostRoot = commands_1.default.webExtensions.getWdaLocalhostRoot;
|
|
505
|
-
this.mobileCalibrateWebToRealCoordinatesTranslation = commands_1.default.webExtensions.mobileCalibrateWebToRealCoordinatesTranslation;
|
|
506
|
-
this.mobileUpdateSafariPreferences = commands_1.default.webExtensions.mobileUpdateSafariPreferences;
|
|
507
|
-
/*--------+
|
|
508
|
-
| XCTEST |
|
|
509
|
-
+--------+*/
|
|
510
|
-
this.mobileRunXCTest = commands_1.default.xctestExtensions.mobileRunXCTest;
|
|
511
|
-
this.mobileInstallXCTestBundle = commands_1.default.xctestExtensions.mobileInstallXCTestBundle;
|
|
512
|
-
this.mobileListXCTestBundles = commands_1.default.xctestExtensions.mobileListXCTestBundles;
|
|
513
|
-
this.mobileListXCTestsInTestBundle = commands_1.default.xctestExtensions.mobileListXCTestsInTestBundle;
|
|
514
|
-
/*----------------------+
|
|
515
|
-
| XCTEST SCREEN RECORD |
|
|
516
|
-
+---------------------+*/
|
|
517
|
-
this.mobileStartXctestScreenRecording = commands_1.default.xctestRecordScreenExtensions.mobileStartXctestScreenRecording;
|
|
518
|
-
this.mobileGetXctestScreenRecordingInfo = commands_1.default.xctestRecordScreenExtensions.mobileGetXctestScreenRecordingInfo;
|
|
519
|
-
this.mobileStopXctestScreenRecording = commands_1.default.xctestRecordScreenExtensions.mobileStopXctestScreenRecording;
|
|
520
208
|
this.locatorStrategies = [
|
|
521
209
|
'xpath',
|
|
522
210
|
'id',
|
|
@@ -1793,10 +1481,377 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1793
1481
|
await simulator_management_1.installToSimulator.bind(this)(this.opts.prebuiltWDAPath, candidateBundleId);
|
|
1794
1482
|
}
|
|
1795
1483
|
}
|
|
1484
|
+
/*---------------+
|
|
1485
|
+
| ACTIVEAPPINFO |
|
|
1486
|
+
+---------------+*/
|
|
1487
|
+
mobileGetActiveAppInfo = commands_1.default.activeAppInfoExtensions.mobileGetActiveAppInfo;
|
|
1488
|
+
/*-------+
|
|
1489
|
+
| ALERT |
|
|
1490
|
+
+-------+*/
|
|
1491
|
+
getAlertText = commands_1.default.alertExtensions.getAlertText;
|
|
1492
|
+
setAlertText = commands_1.default.alertExtensions.setAlertText;
|
|
1493
|
+
postAcceptAlert = commands_1.default.alertExtensions.postAcceptAlert;
|
|
1494
|
+
postDismissAlert = commands_1.default.alertExtensions.postDismissAlert;
|
|
1495
|
+
getAlertButtons = commands_1.default.alertExtensions.getAlertButtons;
|
|
1496
|
+
mobileHandleAlert = commands_1.default.alertExtensions.mobileHandleAlert;
|
|
1497
|
+
/*---------------+
|
|
1498
|
+
| APPMANAGEMENT |
|
|
1499
|
+
+---------------+*/
|
|
1500
|
+
mobileInstallApp = commands_1.default.appManagementExtensions.mobileInstallApp;
|
|
1501
|
+
mobileIsAppInstalled = commands_1.default.appManagementExtensions.mobileIsAppInstalled;
|
|
1502
|
+
mobileRemoveApp = commands_1.default.appManagementExtensions.mobileRemoveApp;
|
|
1503
|
+
mobileLaunchApp = commands_1.default.appManagementExtensions.mobileLaunchApp;
|
|
1504
|
+
mobileTerminateApp = commands_1.default.appManagementExtensions.mobileTerminateApp;
|
|
1505
|
+
mobileActivateApp = commands_1.default.appManagementExtensions.mobileActivateApp;
|
|
1506
|
+
mobileKillApp = commands_1.default.appManagementExtensions.mobileKillApp;
|
|
1507
|
+
mobileQueryAppState = commands_1.default.appManagementExtensions.mobileQueryAppState;
|
|
1508
|
+
installApp = commands_1.default.appManagementExtensions.installApp;
|
|
1509
|
+
activateApp = commands_1.default.appManagementExtensions.activateApp;
|
|
1510
|
+
isAppInstalled = commands_1.default.appManagementExtensions.isAppInstalled;
|
|
1511
|
+
// @ts-ignore it must return boolean
|
|
1512
|
+
terminateApp = commands_1.default.appManagementExtensions.terminateApp;
|
|
1513
|
+
queryAppState = commands_1.default.appManagementExtensions.queryAppState;
|
|
1514
|
+
mobileListApps = commands_1.default.appManagementExtensions.mobileListApps;
|
|
1515
|
+
mobileClearApp = commands_1.default.appManagementExtensions.mobileClearApp;
|
|
1516
|
+
/*------------+
|
|
1517
|
+
| APPEARANCE |
|
|
1518
|
+
+------------+*/
|
|
1519
|
+
mobileSetAppearance = commands_1.default.appearanceExtensions.mobileSetAppearance;
|
|
1520
|
+
mobileGetAppearance = commands_1.default.appearanceExtensions.mobileGetAppearance;
|
|
1521
|
+
/*------------+
|
|
1522
|
+
| INCREASE CONTRAST |
|
|
1523
|
+
+------------+*/
|
|
1524
|
+
mobileSetIncreaseContrast = commands_1.default.increaseContrastExtensions.mobileSetIncreaseContrast;
|
|
1525
|
+
mobileGetIncreaseContrast = commands_1.default.increaseContrastExtensions.mobileGetIncreaseContrast;
|
|
1526
|
+
/*------------+
|
|
1527
|
+
| CONTENT SIZE |
|
|
1528
|
+
+------------+*/
|
|
1529
|
+
mobileSetContentSize = commands_1.default.contentSizeExtensions.mobileSetContentSize;
|
|
1530
|
+
mobileGetContentSize = commands_1.default.contentSizeExtensions.mobileGetContentSize;
|
|
1531
|
+
/*------------+
|
|
1532
|
+
| AUDIT |
|
|
1533
|
+
+------------+*/
|
|
1534
|
+
mobilePerformAccessibilityAudit = commands_1.default.auditExtensions.mobilePerformAccessibilityAudit;
|
|
1535
|
+
/*---------+
|
|
1536
|
+
| BATTERY |
|
|
1537
|
+
+---------+*/
|
|
1538
|
+
mobileGetBatteryInfo = commands_1.default.batteryExtensions.mobileGetBatteryInfo;
|
|
1539
|
+
/*-----------+
|
|
1540
|
+
| BIOMETRIC |
|
|
1541
|
+
+-----------+*/
|
|
1542
|
+
mobileEnrollBiometric = commands_1.default.biometricExtensions.mobileEnrollBiometric;
|
|
1543
|
+
mobileSendBiometricMatch = commands_1.default.biometricExtensions.mobileSendBiometricMatch;
|
|
1544
|
+
mobileIsBiometricEnrolled = commands_1.default.biometricExtensions.mobileIsBiometricEnrolled;
|
|
1545
|
+
/*-------------+
|
|
1546
|
+
| CERTIFICATE |
|
|
1547
|
+
+-------------+*/
|
|
1548
|
+
mobileInstallCertificate = commands_1.default.certificateExtensions.mobileInstallCertificate;
|
|
1549
|
+
mobileListCertificates = commands_1.default.certificateExtensions.mobileListCertificates;
|
|
1550
|
+
mobileRemoveCertificate = commands_1.default.certificateExtensions.mobileRemoveCertificate;
|
|
1551
|
+
/*-----------+
|
|
1552
|
+
| CLIPBOARD |
|
|
1553
|
+
+-----------+*/
|
|
1554
|
+
setClipboard = commands_1.default.clipboardExtensions.setClipboard;
|
|
1555
|
+
getClipboard = commands_1.default.clipboardExtensions.getClipboard;
|
|
1556
|
+
/*-----------+
|
|
1557
|
+
| CONDITION |
|
|
1558
|
+
+-----------+*/
|
|
1559
|
+
listConditionInducers = commands_1.default.conditionExtensions.listConditionInducers;
|
|
1560
|
+
enableConditionInducer = commands_1.default.conditionExtensions.enableConditionInducer;
|
|
1561
|
+
disableConditionInducer = commands_1.default.conditionExtensions.disableConditionInducer;
|
|
1562
|
+
/*---------+
|
|
1563
|
+
| CONTEXT |
|
|
1564
|
+
+---------+*/
|
|
1565
|
+
getContexts = commands_1.default.contextExtensions.getContexts;
|
|
1566
|
+
getCurrentContext = commands_1.default.contextExtensions.getCurrentContext;
|
|
1567
|
+
// @ts-ignore This is OK
|
|
1568
|
+
getWindowHandle = commands_1.default.contextExtensions.getWindowHandle;
|
|
1569
|
+
getWindowHandles = commands_1.default.contextExtensions.getWindowHandles;
|
|
1570
|
+
setContext = commands_1.default.contextExtensions.setContext;
|
|
1571
|
+
// @ts-ignore This is OK
|
|
1572
|
+
setWindow = commands_1.default.contextExtensions.setWindow;
|
|
1573
|
+
activateRecentWebview = commands_1.default.contextExtensions.activateRecentWebview;
|
|
1574
|
+
connectToRemoteDebugger = commands_1.default.contextExtensions.connectToRemoteDebugger;
|
|
1575
|
+
getContextsAndViews = commands_1.default.contextExtensions.getContextsAndViews;
|
|
1576
|
+
listWebFrames = commands_1.default.contextExtensions.listWebFrames;
|
|
1577
|
+
mobileGetContexts = commands_1.default.contextExtensions.mobileGetContexts;
|
|
1578
|
+
onPageChange = commands_1.default.contextExtensions.onPageChange;
|
|
1579
|
+
useNewSafari = commands_1.default.contextExtensions.useNewSafari;
|
|
1580
|
+
getCurrentUrl = commands_1.default.contextExtensions.getCurrentUrl;
|
|
1581
|
+
getNewRemoteDebugger = commands_1.default.contextExtensions.getNewRemoteDebugger;
|
|
1582
|
+
getRecentWebviewContextId = commands_1.default.contextExtensions.getRecentWebviewContextId;
|
|
1583
|
+
isWebContext = commands_1.default.contextExtensions.isWebContext;
|
|
1584
|
+
isWebview = commands_1.default.contextExtensions.isWebview;
|
|
1585
|
+
setCurrentUrl = commands_1.default.contextExtensions.setCurrentUrl;
|
|
1586
|
+
stopRemote = commands_1.default.contextExtensions.stopRemote;
|
|
1587
|
+
/*------------+
|
|
1588
|
+
| DEVICEINFO |
|
|
1589
|
+
+------------+*/
|
|
1590
|
+
mobileGetDeviceInfo = commands_1.default.deviceInfoExtensions.mobileGetDeviceInfo;
|
|
1591
|
+
/*---------+
|
|
1592
|
+
| ELEMENT |
|
|
1593
|
+
+---------+*/
|
|
1594
|
+
elementDisplayed = commands_1.default.elementExtensions.elementDisplayed;
|
|
1595
|
+
elementEnabled = commands_1.default.elementExtensions.elementEnabled;
|
|
1596
|
+
elementSelected = commands_1.default.elementExtensions.elementSelected;
|
|
1597
|
+
getName = commands_1.default.elementExtensions.getName;
|
|
1598
|
+
getNativeAttribute = commands_1.default.elementExtensions.getNativeAttribute;
|
|
1599
|
+
getAttribute = commands_1.default.elementExtensions.getAttribute;
|
|
1600
|
+
getProperty = commands_1.default.elementExtensions.getProperty;
|
|
1601
|
+
getText = commands_1.default.elementExtensions.getText;
|
|
1602
|
+
getElementRect = commands_1.default.elementExtensions.getElementRect;
|
|
1603
|
+
getLocation = commands_1.default.elementExtensions.getLocation;
|
|
1604
|
+
getLocationInView = commands_1.default.elementExtensions.getLocationInView;
|
|
1605
|
+
getSize = commands_1.default.elementExtensions.getSize;
|
|
1606
|
+
/** @deprecated */
|
|
1607
|
+
setValueImmediate = commands_1.default.elementExtensions.setValueImmediate;
|
|
1608
|
+
setValue = commands_1.default.elementExtensions.setValue;
|
|
1609
|
+
setValueWithWebAtom = commands_1.default.elementExtensions.setValueWithWebAtom;
|
|
1610
|
+
keys = commands_1.default.elementExtensions.keys;
|
|
1611
|
+
clear = commands_1.default.elementExtensions.clear;
|
|
1612
|
+
getContentSize = commands_1.default.elementExtensions.getContentSize;
|
|
1613
|
+
getNativeRect = commands_1.default.elementExtensions.getNativeRect;
|
|
1614
|
+
/*---------+
|
|
1615
|
+
| EXECUTE |
|
|
1616
|
+
+---------+*/
|
|
1617
|
+
receiveAsyncResponse = commands_1.default.executeExtensions.receiveAsyncResponse;
|
|
1618
|
+
execute = commands_1.default.executeExtensions.execute;
|
|
1619
|
+
executeAsync = commands_1.default.executeExtensions.executeAsync;
|
|
1620
|
+
executeMobile = commands_1.default.executeExtensions.executeMobile;
|
|
1621
|
+
mobileSimctl = commands_1.default.simctl.mobileSimctl;
|
|
1622
|
+
/*--------------+
|
|
1623
|
+
| FILEMOVEMENT |
|
|
1624
|
+
+--------------+*/
|
|
1625
|
+
pushFile = commands_1.default.fileMovementExtensions.pushFile;
|
|
1626
|
+
mobilePushFile = commands_1.default.fileMovementExtensions.mobilePushFile;
|
|
1627
|
+
pullFile = commands_1.default.fileMovementExtensions.pullFile;
|
|
1628
|
+
mobilePullFile = commands_1.default.fileMovementExtensions.mobilePullFile;
|
|
1629
|
+
mobileDeleteFolder = commands_1.default.fileMovementExtensions.mobileDeleteFolder;
|
|
1630
|
+
mobileDeleteFile = commands_1.default.fileMovementExtensions.mobileDeleteFile;
|
|
1631
|
+
pullFolder = commands_1.default.fileMovementExtensions.pullFolder;
|
|
1632
|
+
mobilePullFolder = commands_1.default.fileMovementExtensions.mobilePullFolder;
|
|
1633
|
+
/*--------+
|
|
1634
|
+
| MEMORY |
|
|
1635
|
+
+--------+*/
|
|
1636
|
+
mobileSendMemoryWarning = commands_1.default.memoryExtensions.mobileSendMemoryWarning;
|
|
1637
|
+
/*------+
|
|
1638
|
+
| FIND |
|
|
1639
|
+
+------+*/
|
|
1640
|
+
findElOrEls = commands_1.default.findExtensions.findElOrEls;
|
|
1641
|
+
findNativeElementOrElements = commands_1.default.findExtensions.findNativeElementOrElements;
|
|
1642
|
+
doNativeFind = commands_1.default.findExtensions.doNativeFind;
|
|
1643
|
+
getFirstVisibleChild = commands_1.default.findExtensions.getFirstVisibleChild;
|
|
1644
|
+
/*---------+
|
|
1645
|
+
| GENERAL |
|
|
1646
|
+
+---------+*/
|
|
1647
|
+
active = commands_1.default.generalExtensions.active;
|
|
1648
|
+
background = commands_1.default.appManagementExtensions.background;
|
|
1649
|
+
touchId = commands_1.default.generalExtensions.touchId;
|
|
1650
|
+
toggleEnrollTouchId = commands_1.default.generalExtensions.toggleEnrollTouchId;
|
|
1651
|
+
getWindowSize = commands_1.default.generalExtensions.getWindowSize;
|
|
1652
|
+
getDeviceTime = commands_1.default.generalExtensions.getDeviceTime;
|
|
1653
|
+
mobileGetDeviceTime = commands_1.default.generalExtensions.mobileGetDeviceTime;
|
|
1654
|
+
getWindowRect = commands_1.default.generalExtensions.getWindowRect;
|
|
1655
|
+
getStrings = commands_1.default.appStringsExtensions.getStrings;
|
|
1656
|
+
removeApp = commands_1.default.generalExtensions.removeApp;
|
|
1657
|
+
launchApp = commands_1.default.generalExtensions.launchApp;
|
|
1658
|
+
closeApp = commands_1.default.generalExtensions.closeApp;
|
|
1659
|
+
setUrl = commands_1.default.generalExtensions.setUrl;
|
|
1660
|
+
getViewportRect = commands_1.default.generalExtensions.getViewportRect;
|
|
1661
|
+
getScreenInfo = commands_1.default.generalExtensions.getScreenInfo;
|
|
1662
|
+
getStatusBarHeight = commands_1.default.generalExtensions.getStatusBarHeight;
|
|
1663
|
+
getDevicePixelRatio = commands_1.default.generalExtensions.getDevicePixelRatio;
|
|
1664
|
+
mobilePressButton = commands_1.default.generalExtensions.mobilePressButton;
|
|
1665
|
+
mobileSiriCommand = commands_1.default.generalExtensions.mobileSiriCommand;
|
|
1666
|
+
/*-------------+
|
|
1667
|
+
| GEOLOCATION |
|
|
1668
|
+
+-------------+*/
|
|
1669
|
+
mobileGetSimulatedLocation = commands_1.default.geolocationExtensions.mobileGetSimulatedLocation;
|
|
1670
|
+
mobileSetSimulatedLocation = commands_1.default.geolocationExtensions.mobileSetSimulatedLocation;
|
|
1671
|
+
mobileResetSimulatedLocation = commands_1.default.geolocationExtensions.mobileResetSimulatedLocation;
|
|
1672
|
+
/*---------+
|
|
1673
|
+
| GESTURE |
|
|
1674
|
+
+---------+*/
|
|
1675
|
+
mobileShake = commands_1.default.gestureExtensions.mobileShake;
|
|
1676
|
+
click = commands_1.default.gestureExtensions.click;
|
|
1677
|
+
releaseActions = commands_1.default.gestureExtensions.releaseActions;
|
|
1678
|
+
performActions = commands_1.default.gestureExtensions.performActions;
|
|
1679
|
+
nativeClick = commands_1.default.gestureExtensions.nativeClick;
|
|
1680
|
+
mobileScrollToElement = commands_1.default.gestureExtensions.mobileScrollToElement;
|
|
1681
|
+
mobileScroll = commands_1.default.gestureExtensions.mobileScroll;
|
|
1682
|
+
mobileSwipe = commands_1.default.gestureExtensions.mobileSwipe;
|
|
1683
|
+
mobilePinch = commands_1.default.gestureExtensions.mobilePinch;
|
|
1684
|
+
mobileDoubleTap = commands_1.default.gestureExtensions.mobileDoubleTap;
|
|
1685
|
+
mobileTwoFingerTap = commands_1.default.gestureExtensions.mobileTwoFingerTap;
|
|
1686
|
+
mobileTouchAndHold = commands_1.default.gestureExtensions.mobileTouchAndHold;
|
|
1687
|
+
mobileTap = commands_1.default.gestureExtensions.mobileTap;
|
|
1688
|
+
mobileDragFromToForDuration = commands_1.default.gestureExtensions.mobileDragFromToForDuration;
|
|
1689
|
+
mobileDragFromToWithVelocity = commands_1.default.gestureExtensions.mobileDragFromToWithVelocity;
|
|
1690
|
+
mobileTapWithNumberOfTaps = commands_1.default.gestureExtensions.mobileTapWithNumberOfTaps;
|
|
1691
|
+
mobileForcePress = commands_1.default.gestureExtensions.mobileForcePress;
|
|
1692
|
+
mobileSelectPickerWheelValue = commands_1.default.gestureExtensions.mobileSelectPickerWheelValue;
|
|
1693
|
+
mobileRotateElement = commands_1.default.gestureExtensions.mobileRotateElement;
|
|
1694
|
+
/*-------+
|
|
1695
|
+
| IOHID |
|
|
1696
|
+
+-------+*/
|
|
1697
|
+
mobilePerformIoHidEvent = commands_1.default.iohidExtensions.mobilePerformIoHidEvent;
|
|
1698
|
+
/*-----------+
|
|
1699
|
+
| KEYCHAINS |
|
|
1700
|
+
+-----------+*/
|
|
1701
|
+
mobileClearKeychains = commands_1.default.keychainsExtensions.mobileClearKeychains;
|
|
1702
|
+
/*----------+
|
|
1703
|
+
| KEYBOARD |
|
|
1704
|
+
+----------+*/
|
|
1705
|
+
hideKeyboard = commands_1.default.keyboardExtensions.hideKeyboard;
|
|
1706
|
+
mobileHideKeyboard = commands_1.default.keyboardExtensions.mobileHideKeyboard;
|
|
1707
|
+
isKeyboardShown = commands_1.default.keyboardExtensions.isKeyboardShown;
|
|
1708
|
+
mobileKeys = commands_1.default.keyboardExtensions.mobileKeys;
|
|
1709
|
+
/*--------------+
|
|
1710
|
+
| LOCALIZATION |
|
|
1711
|
+
+--------------+*/
|
|
1712
|
+
mobileConfigureLocalization = commands_1.default.localizationExtensions.mobileConfigureLocalization;
|
|
1713
|
+
/*----------+
|
|
1714
|
+
| LOCATION |
|
|
1715
|
+
+----------+*/
|
|
1716
|
+
getGeoLocation = commands_1.default.locationExtensions.getGeoLocation;
|
|
1717
|
+
setGeoLocation = commands_1.default.locationExtensions.setGeoLocation;
|
|
1718
|
+
mobileResetLocationService = commands_1.default.locationExtensions.mobileResetLocationService;
|
|
1719
|
+
/*------+
|
|
1720
|
+
| LOCK |
|
|
1721
|
+
+------+*/
|
|
1722
|
+
lock = commands_1.default.lockExtensions.lock;
|
|
1723
|
+
unlock = commands_1.default.lockExtensions.unlock;
|
|
1724
|
+
isLocked = commands_1.default.lockExtensions.isLocked;
|
|
1725
|
+
/*-----+
|
|
1726
|
+
| LOG |
|
|
1727
|
+
+-----+*/
|
|
1728
|
+
extractLogs = commands_1.default.logExtensions.extractLogs;
|
|
1729
|
+
supportedLogTypes = commands_1.default.logExtensions.supportedLogTypes;
|
|
1730
|
+
startLogCapture = commands_1.default.logExtensions.startLogCapture;
|
|
1731
|
+
mobileStartLogsBroadcast = commands_1.default.logExtensions.mobileStartLogsBroadcast;
|
|
1732
|
+
mobileStopLogsBroadcast = commands_1.default.logExtensions.mobileStopLogsBroadcast;
|
|
1733
|
+
/*------------+
|
|
1734
|
+
| NAVIGATION |
|
|
1735
|
+
+------------+*/
|
|
1736
|
+
back = commands_1.default.navigationExtensions.back;
|
|
1737
|
+
forward = commands_1.default.navigationExtensions.forward;
|
|
1738
|
+
closeWindow = commands_1.default.navigationExtensions.closeWindow;
|
|
1739
|
+
nativeBack = commands_1.default.navigationExtensions.nativeBack;
|
|
1740
|
+
mobileDeepLink = commands_1.default.navigationExtensions.mobileDeepLink;
|
|
1741
|
+
/*---------------+
|
|
1742
|
+
| NOTIFICATIONS |
|
|
1743
|
+
+---------------+*/
|
|
1744
|
+
mobilePushNotification = commands_1.default.notificationsExtensions.mobilePushNotification;
|
|
1745
|
+
mobileExpectNotification = commands_1.default.notificationsExtensions.mobileExpectNotification;
|
|
1746
|
+
/*------------+
|
|
1747
|
+
| PASTEBOARD |
|
|
1748
|
+
+------------+*/
|
|
1749
|
+
mobileSetPasteboard = commands_1.default.pasteboardExtensions.mobileSetPasteboard;
|
|
1750
|
+
mobileGetPasteboard = commands_1.default.pasteboardExtensions.mobileGetPasteboard;
|
|
1751
|
+
/*------+
|
|
1752
|
+
| PCAP |
|
|
1753
|
+
+------+*/
|
|
1754
|
+
mobileStartPcap = commands_1.default.pcapExtensions.mobileStartPcap;
|
|
1755
|
+
mobileStopPcap = commands_1.default.pcapExtensions.mobileStopPcap;
|
|
1756
|
+
/*-------------+
|
|
1757
|
+
| PERFORMANCE |
|
|
1758
|
+
+-------------+*/
|
|
1759
|
+
mobileStartPerfRecord = commands_1.default.performanceExtensions.mobileStartPerfRecord;
|
|
1760
|
+
mobileStopPerfRecord = commands_1.default.performanceExtensions.mobileStopPerfRecord;
|
|
1761
|
+
/*-------------+
|
|
1762
|
+
| PERMISSIONS |
|
|
1763
|
+
+-------------+*/
|
|
1764
|
+
mobileResetPermission = commands_1.default.permissionsExtensions.mobileResetPermission;
|
|
1765
|
+
mobileGetPermission = commands_1.default.permissionsExtensions.mobileGetPermission;
|
|
1766
|
+
mobileSetPermissions = commands_1.default.permissionsExtensions.mobileSetPermissions;
|
|
1767
|
+
/*-------------+
|
|
1768
|
+
| PROXYHELPER |
|
|
1769
|
+
+-------------+*/
|
|
1770
|
+
proxyCommand = commands_1.default.proxyHelperExtensions.proxyCommand;
|
|
1771
|
+
/*-------------+
|
|
1772
|
+
| RECORDAUDIO |
|
|
1773
|
+
+-------------+*/
|
|
1774
|
+
startAudioRecording = commands_1.default.recordAudioExtensions.startAudioRecording;
|
|
1775
|
+
stopAudioRecording = commands_1.default.recordAudioExtensions.stopAudioRecording;
|
|
1776
|
+
/*--------------+
|
|
1777
|
+
| RECORDSCREEN |
|
|
1778
|
+
+--------------+*/
|
|
1779
|
+
_recentScreenRecorder = commands_1.default.recordScreenExtensions._recentScreenRecorder;
|
|
1780
|
+
startRecordingScreen = commands_1.default.recordScreenExtensions.startRecordingScreen;
|
|
1781
|
+
stopRecordingScreen = commands_1.default.recordScreenExtensions.stopRecordingScreen;
|
|
1782
|
+
/*-------------+
|
|
1783
|
+
| SCREENSHOTS |
|
|
1784
|
+
+-------------+*/
|
|
1785
|
+
getScreenshot = commands_1.default.screenshotExtensions.getScreenshot;
|
|
1786
|
+
getElementScreenshot = commands_1.default.screenshotExtensions.getElementScreenshot;
|
|
1787
|
+
getViewportScreenshot = commands_1.default.screenshotExtensions.getViewportScreenshot;
|
|
1788
|
+
/*--------+
|
|
1789
|
+
| SOURCE |
|
|
1790
|
+
+--------+*/
|
|
1791
|
+
getPageSource = commands_1.default.sourceExtensions.getPageSource;
|
|
1792
|
+
mobileGetSource = commands_1.default.sourceExtensions.mobileGetSource;
|
|
1793
|
+
/*----------+
|
|
1794
|
+
| TIMEOUTS |
|
|
1795
|
+
+----------+*/
|
|
1796
|
+
pageLoadTimeoutW3C = commands_1.default.timeoutExtensions.pageLoadTimeoutW3C;
|
|
1797
|
+
pageLoadTimeoutMJSONWP = commands_1.default.timeoutExtensions.pageLoadTimeoutMJSONWP;
|
|
1798
|
+
scriptTimeoutW3C = commands_1.default.timeoutExtensions.scriptTimeoutW3C;
|
|
1799
|
+
scriptTimeoutMJSONWP = commands_1.default.timeoutExtensions.scriptTimeoutMJSONWP;
|
|
1800
|
+
asyncScriptTimeout = commands_1.default.timeoutExtensions.asyncScriptTimeout;
|
|
1801
|
+
setPageLoadTimeout = commands_1.default.timeoutExtensions.setPageLoadTimeout;
|
|
1802
|
+
setAsyncScriptTimeout = commands_1.default.timeoutExtensions.setAsyncScriptTimeout;
|
|
1803
|
+
/*-----+
|
|
1804
|
+
| WEB |
|
|
1805
|
+
+-----+*/
|
|
1806
|
+
setFrame = commands_1.default.webExtensions.setFrame;
|
|
1807
|
+
getCssProperty = commands_1.default.webExtensions.getCssProperty;
|
|
1808
|
+
submit = commands_1.default.webExtensions.submit;
|
|
1809
|
+
refresh = commands_1.default.webExtensions.refresh;
|
|
1810
|
+
getUrl = commands_1.default.webExtensions.getUrl;
|
|
1811
|
+
title = commands_1.default.webExtensions.title;
|
|
1812
|
+
getCookies = commands_1.default.webExtensions.getCookies;
|
|
1813
|
+
setCookie = commands_1.default.webExtensions.setCookie;
|
|
1814
|
+
deleteCookie = commands_1.default.webExtensions.deleteCookie;
|
|
1815
|
+
deleteCookies = commands_1.default.webExtensions.deleteCookies;
|
|
1816
|
+
_deleteCookie = commands_1.default.webExtensions._deleteCookie;
|
|
1817
|
+
cacheWebElement = commands_1.default.webExtensions.cacheWebElement;
|
|
1818
|
+
cacheWebElements = commands_1.default.webExtensions.cacheWebElements;
|
|
1819
|
+
executeAtom = commands_1.default.webExtensions.executeAtom;
|
|
1820
|
+
executeAtomAsync = commands_1.default.webExtensions.executeAtomAsync;
|
|
1821
|
+
getAtomsElement = commands_1.default.webExtensions.getAtomsElement;
|
|
1822
|
+
convertElementsForAtoms = commands_1.default.webExtensions.convertElementsForAtoms;
|
|
1823
|
+
getElementId = commands_1.default.webExtensions.getElementId;
|
|
1824
|
+
hasElementId = commands_1.default.webExtensions.hasElementId;
|
|
1825
|
+
findWebElementOrElements = commands_1.default.webExtensions.findWebElementOrElements;
|
|
1826
|
+
clickWebCoords = commands_1.default.webExtensions.clickWebCoords;
|
|
1827
|
+
getSafariIsIphone = commands_1.default.webExtensions.getSafariIsIphone;
|
|
1828
|
+
getSafariDeviceSize = commands_1.default.webExtensions.getSafariDeviceSize;
|
|
1829
|
+
getSafariIsNotched = commands_1.default.webExtensions.getSafariIsNotched;
|
|
1830
|
+
getExtraTranslateWebCoordsOffset = commands_1.default.webExtensions.getExtraTranslateWebCoordsOffset;
|
|
1831
|
+
getExtraNativeWebTapOffset = commands_1.default.webExtensions.getExtraNativeWebTapOffset;
|
|
1832
|
+
nativeWebTap = commands_1.default.webExtensions.nativeWebTap;
|
|
1833
|
+
translateWebCoords = commands_1.default.webExtensions.translateWebCoords;
|
|
1834
|
+
checkForAlert = commands_1.default.webExtensions.checkForAlert;
|
|
1835
|
+
waitForAtom = commands_1.default.webExtensions.waitForAtom;
|
|
1836
|
+
mobileWebNav = commands_1.default.webExtensions.mobileWebNav;
|
|
1837
|
+
getWdaLocalhostRoot = commands_1.default.webExtensions.getWdaLocalhostRoot;
|
|
1838
|
+
mobileCalibrateWebToRealCoordinatesTranslation = commands_1.default.webExtensions.mobileCalibrateWebToRealCoordinatesTranslation;
|
|
1839
|
+
mobileUpdateSafariPreferences = commands_1.default.webExtensions.mobileUpdateSafariPreferences;
|
|
1840
|
+
/*--------+
|
|
1841
|
+
| XCTEST |
|
|
1842
|
+
+--------+*/
|
|
1843
|
+
mobileRunXCTest = commands_1.default.xctestExtensions.mobileRunXCTest;
|
|
1844
|
+
mobileInstallXCTestBundle = commands_1.default.xctestExtensions.mobileInstallXCTestBundle;
|
|
1845
|
+
mobileListXCTestBundles = commands_1.default.xctestExtensions.mobileListXCTestBundles;
|
|
1846
|
+
mobileListXCTestsInTestBundle = commands_1.default.xctestExtensions.mobileListXCTestsInTestBundle;
|
|
1847
|
+
/*----------------------+
|
|
1848
|
+
| XCTEST SCREEN RECORD |
|
|
1849
|
+
+---------------------+*/
|
|
1850
|
+
mobileStartXctestScreenRecording = commands_1.default.xctestRecordScreenExtensions.mobileStartXctestScreenRecording;
|
|
1851
|
+
mobileGetXctestScreenRecordingInfo = commands_1.default.xctestRecordScreenExtensions.mobileGetXctestScreenRecordingInfo;
|
|
1852
|
+
mobileStopXctestScreenRecording = commands_1.default.xctestRecordScreenExtensions.mobileStopXctestScreenRecording;
|
|
1796
1853
|
}
|
|
1797
1854
|
exports.XCUITestDriver = XCUITestDriver;
|
|
1798
|
-
XCUITestDriver.newMethodMap = method_map_1.newMethodMap;
|
|
1799
|
-
XCUITestDriver.executeMethodMap = execute_method_map_1.executeMethodMap;
|
|
1800
1855
|
exports.default = XCUITestDriver;
|
|
1801
1856
|
/**
|
|
1802
1857
|
* @template {import('@appium/types').Constraints} C
|