appium-xcuitest-driver 10.13.0 → 10.13.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 (33) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/certificate.d.ts +14 -19
  3. package/build/lib/commands/certificate.d.ts.map +1 -1
  4. package/build/lib/commands/certificate.js +24 -31
  5. package/build/lib/commands/certificate.js.map +1 -1
  6. package/build/lib/commands/element.d.ts +83 -67
  7. package/build/lib/commands/element.d.ts.map +1 -1
  8. package/build/lib/commands/element.js +111 -134
  9. package/build/lib/commands/element.js.map +1 -1
  10. package/build/lib/commands/file-movement.d.ts +31 -42
  11. package/build/lib/commands/file-movement.d.ts.map +1 -1
  12. package/build/lib/commands/file-movement.js +146 -205
  13. package/build/lib/commands/file-movement.js.map +1 -1
  14. package/build/lib/commands/find.d.ts +20 -12
  15. package/build/lib/commands/find.d.ts.map +1 -1
  16. package/build/lib/commands/find.js +27 -65
  17. package/build/lib/commands/find.js.map +1 -1
  18. package/build/lib/commands/navigation.d.ts.map +1 -1
  19. package/build/lib/commands/navigation.js +12 -14
  20. package/build/lib/commands/navigation.js.map +1 -1
  21. package/build/lib/commands/web.d.ts.map +1 -1
  22. package/build/lib/commands/web.js +10 -1
  23. package/build/lib/commands/web.js.map +1 -1
  24. package/lib/commands/{certificate.js → certificate.ts} +55 -50
  25. package/lib/commands/element.ts +419 -0
  26. package/lib/commands/{file-movement.js → file-movement.ts} +212 -235
  27. package/lib/commands/find.ts +277 -0
  28. package/lib/commands/navigation.js +20 -14
  29. package/lib/commands/web.ts +9 -1
  30. package/npm-shrinkwrap.json +2 -2
  31. package/package.json +1 -1
  32. package/lib/commands/element.js +0 -423
  33. package/lib/commands/find.js +0 -205
@@ -26,133 +26,145 @@ const lodash_1 = __importDefault(require("lodash"));
26
26
  const driver_1 = require("appium/driver");
27
27
  const support_1 = require("appium/support");
28
28
  /**
29
- * @this {XCUITestDriver}
29
+ * Checks whether an element is displayed.
30
+ *
31
+ * @param el - Element or element ID
30
32
  */
31
33
  async function elementDisplayed(el) {
32
- el = support_1.util.unwrapElement(el);
34
+ const elementId = support_1.util.unwrapElement(el);
33
35
  if (this.isWebContext()) {
34
- const atomsElement = this.getAtomsElement(el);
36
+ const atomsElement = this.getAtomsElement(elementId);
35
37
  return await this.executeAtom('is_displayed', [atomsElement]);
36
38
  }
37
- return await this.proxyCommand(`/element/${el}/displayed`, 'GET');
39
+ return await this.proxyCommand(`/element/${elementId}/displayed`, 'GET');
38
40
  }
39
41
  /**
40
- * @this {XCUITestDriver}
42
+ * Checks whether an element is enabled.
43
+ *
44
+ * @param el - Element or element ID
41
45
  */
42
46
  async function elementEnabled(el) {
43
- el = support_1.util.unwrapElement(el);
47
+ const elementId = support_1.util.unwrapElement(el);
44
48
  if (this.isWebContext()) {
45
- const atomsElement = this.getAtomsElement(el);
49
+ const atomsElement = this.getAtomsElement(elementId);
46
50
  return await this.executeAtom('is_enabled', [atomsElement]);
47
51
  }
48
- return await this.proxyCommand(`/element/${el}/enabled`, 'GET');
52
+ return await this.proxyCommand(`/element/${elementId}/enabled`, 'GET');
49
53
  }
50
54
  /**
51
- * @this {XCUITestDriver}
55
+ * Checks whether an element is selected.
56
+ *
57
+ * @param el - Element or element ID
52
58
  */
53
59
  async function elementSelected(el) {
54
- el = support_1.util.unwrapElement(el);
60
+ const elementId = support_1.util.unwrapElement(el);
55
61
  if (this.isWebContext()) {
56
- const atomsElement = this.getAtomsElement(el);
62
+ const atomsElement = this.getAtomsElement(elementId);
57
63
  return await this.executeAtom('is_selected', [atomsElement]);
58
64
  }
59
- return await this.proxyCommand(`/element/${el}/selected`, 'GET');
65
+ return await this.proxyCommand(`/element/${elementId}/selected`, 'GET');
60
66
  }
61
67
  /**
62
- * @this {XCUITestDriver}
68
+ * Gets the tag/name of an element.
69
+ *
70
+ * @param el - Element or element ID
63
71
  */
64
72
  async function getName(el) {
65
- el = support_1.util.unwrapElement(el);
73
+ const elementId = support_1.util.unwrapElement(el);
66
74
  if (this.isWebContext()) {
67
- const atomsElement = this.getAtomsElement(el);
75
+ const atomsElement = this.getAtomsElement(elementId);
68
76
  const script = 'return arguments[0].tagName.toLowerCase()';
69
77
  return await this.executeAtom('execute_script', [script, [atomsElement]]);
70
78
  }
71
- return await this.proxyCommand(`/element/${el}/name`, 'GET');
79
+ return await this.proxyCommand(`/element/${elementId}/name`, 'GET');
72
80
  }
73
81
  /**
74
- * @this {XCUITestDriver}
82
+ * Gets a native attribute (non-web) from an element.
83
+ *
84
+ * @param attribute - Attribute name
85
+ * @param el - Element or element ID
75
86
  */
76
87
  async function getNativeAttribute(attribute, el) {
77
88
  if (attribute === 'contentSize') {
78
- // don't proxy requests for the content size of a scrollable element
79
89
  return await this.getContentSize(el);
80
90
  }
81
- el = support_1.util.unwrapElement(el);
82
- // otherwise let WDA handle attribute requests
83
- let value = /** @type {string|number|null|undefined|boolean} */ (await this.proxyCommand(`/element/${el}/attribute/${attribute}`, 'GET'));
84
- // Transform the result for the case when WDA returns an integer representation for a boolean value
85
- if ([0, 1].includes(/** @type {number} */ (value))) {
91
+ const elementId = support_1.util.unwrapElement(el);
92
+ let value = await this.proxyCommand(`/element/${elementId}/attribute/${attribute}`, 'GET');
93
+ if ([0, 1].includes(value)) {
86
94
  value = !!value;
87
95
  }
88
- // The returned value must be of type string according to https://www.w3.org/TR/webdriver/#get-element-attribute
89
96
  return lodash_1.default.isNull(value) || lodash_1.default.isString(value) ? value : JSON.stringify(value);
90
97
  }
91
98
  /**
92
- * @this {XCUITestDriver}
99
+ * Gets an element attribute (web or native).
100
+ *
101
+ * @param attribute - Attribute name
102
+ * @param el - Element or element ID
93
103
  */
94
104
  async function getAttribute(attribute, el) {
95
- el = support_1.util.unwrapElement(el);
105
+ const elementId = support_1.util.unwrapElement(el);
96
106
  if (!this.isWebContext()) {
97
- return await this.getNativeAttribute(attribute, el);
107
+ return await this.getNativeAttribute(attribute, elementId);
98
108
  }
99
- const atomsElement = this.getAtomsElement(el);
109
+ const atomsElement = this.getAtomsElement(elementId);
100
110
  return await this.executeAtom('get_attribute_value', [atomsElement, attribute]);
101
111
  }
102
112
  /**
103
- * @this {XCUITestDriver}
113
+ * Gets an element property (web) or native attribute fallback.
114
+ *
115
+ * @param property - Property name
116
+ * @param el - Element or element ID
104
117
  */
105
118
  async function getProperty(property, el) {
106
- el = support_1.util.unwrapElement(el);
119
+ const elementId = support_1.util.unwrapElement(el);
107
120
  if (!this.isWebContext()) {
108
- return await this.getNativeAttribute(property, el);
121
+ return await this.getNativeAttribute(property, elementId);
109
122
  }
110
- const atomsElement = this.getAtomsElement(el);
123
+ const atomsElement = this.getAtomsElement(elementId);
111
124
  return await this.executeAtom('get_attribute_value', [atomsElement, property]);
112
125
  }
113
126
  /**
114
- * @this {XCUITestDriver}
127
+ * Gets the text content of an element.
128
+ *
129
+ * @param el - Element or element ID
115
130
  */
116
131
  async function getText(el) {
117
- el = support_1.util.unwrapElement(el);
132
+ const elementId = support_1.util.unwrapElement(el);
118
133
  if (!this.isWebContext()) {
119
- return await this.proxyCommand(`/element/${el}/text`, 'GET');
134
+ return await this.proxyCommand(`/element/${elementId}/text`, 'GET');
120
135
  }
121
- let atomsElement = this.getAtomsElement(el);
136
+ const atomsElement = this.getAtomsElement(elementId);
122
137
  return await this.executeAtom('get_text', [atomsElement]);
123
138
  }
124
139
  /**
125
- * @this {XCUITestDriver}
126
- * @returns {Promise<import('@appium/types').Rect>}
140
+ * Gets the bounding rect of an element.
141
+ *
142
+ * @param el - Element or element ID
127
143
  */
128
144
  async function getElementRect(el) {
129
145
  if (this.isWebContext()) {
130
- // Mobile safari doesn't support rect
131
146
  const { x, y } = await this.getLocation(el);
132
147
  const { width, height } = await this.getSize(el);
133
148
  return { x, y, width, height };
134
149
  }
135
- el = support_1.util.unwrapElement(el);
136
- return await this.getNativeRect(el);
150
+ const elementId = support_1.util.unwrapElement(el);
151
+ return await this.getNativeRect(elementId);
137
152
  }
138
153
  /**
139
- * Get the position of an element on screen
154
+ * Gets the top-left location of an element.
140
155
  *
141
- * @param {string|Element} elementId - the element ID
142
- * @returns {Promise<Position>} The position of the element
143
- * @deprecated Use {@linkcode XCUITestDriver.getElementRect} instead
144
- * @this {XCUITestDriver}
156
+ * @param elementId - Element or element ID
145
157
  */
146
158
  async function getLocation(elementId) {
147
159
  const el = support_1.util.unwrapElement(elementId);
148
160
  if (this.isWebContext()) {
149
161
  const atomsElement = this.getAtomsElement(el);
150
- let loc = await this.executeAtom('get_top_left_coordinates', [atomsElement]);
162
+ const loc = await this.executeAtom('get_top_left_coordinates', [atomsElement]);
151
163
  if (this.opts.absoluteWebLocations) {
152
164
  const script = 'return [' +
153
165
  'Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),' +
154
166
  'Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)];';
155
- const [xOffset, yOffset] = /** @type {[number, number]} */ (await this.execute(script));
167
+ const [xOffset, yOffset] = await this.execute(script);
156
168
  loc.x += xOffset;
157
169
  loc.y += yOffset;
158
170
  }
@@ -162,54 +174,51 @@ async function getLocation(elementId) {
162
174
  return { x: rect.x, y: rect.y };
163
175
  }
164
176
  /**
165
- * Alias for {@linkcode XCUITestDriver.getLocation}
166
- * @param {string|Element} elementId - the element ID
167
- * @returns {Promise<Position>} The position of the element
168
- * @deprecated Use {@linkcode XCUITestDriver.getElementRect} instead
169
- * @this {XCUITestDriver}
177
+ * Alias for getLocation.
178
+ *
179
+ * @param elementId - Element or element ID
170
180
  */
171
181
  async function getLocationInView(elementId) {
172
182
  return await this.getLocation(elementId);
173
183
  }
174
184
  /**
175
- * Get the size of an element
176
- * @param {string|Element} el - the element ID
177
- * @returns {Promise<Size>} The position of the element
178
- * @this {XCUITestDriver}
185
+ * Gets the size of an element.
186
+ *
187
+ * @param el - Element or element ID
179
188
  */
180
189
  async function getSize(el) {
181
- el = support_1.util.unwrapElement(el);
190
+ const elementId = support_1.util.unwrapElement(el);
182
191
  if (this.isWebContext()) {
183
- return await this.executeAtom('get_size', [this.getAtomsElement(el)]);
192
+ return await this.executeAtom('get_size', [this.getAtomsElement(elementId)]);
184
193
  }
185
- const rect = await this.getElementRect(el);
194
+ const rect = await this.getElementRect(elementId);
186
195
  return { width: rect.width, height: rect.height };
187
196
  }
188
197
  /**
189
- * Alias for {@linkcode setValue}
198
+ * Legacy alias for setValue; always types via keyboard.
190
199
  *
191
- * @param {string} value - the value to set
192
- * @param {string} el - the element to set the value of
193
- * @deprecated
194
- * @this {XCUITestDriver}
200
+ * @param value - Value to set
201
+ * @param el - Element or element ID
195
202
  */
196
203
  async function setValueImmediate(value, el) {
197
- // WDA does not provide no way to set the value directly
198
204
  this.log.info('There is currently no way to bypass typing using XCUITest. Setting value through keyboard');
199
205
  await this.setValue(value, el);
200
206
  }
201
207
  /**
202
- * @this {XCUITestDriver}
208
+ * Sets an element value (native or web).
209
+ *
210
+ * @param value - Value to set
211
+ * @param el - Element or element ID
203
212
  */
204
213
  async function setValue(value, el) {
205
- el = support_1.util.unwrapElement(el);
214
+ const elementId = support_1.util.unwrapElement(el);
206
215
  if (!this.isWebContext()) {
207
- await this.proxyCommand(`/element/${el}/value`, 'POST', {
216
+ await this.proxyCommand(`/element/${elementId}/value`, 'POST', {
208
217
  value: prepareInputValue(value),
209
218
  });
210
219
  return;
211
220
  }
212
- const atomsElement = this.getAtomsElement(el);
221
+ const atomsElement = this.getAtomsElement(elementId);
213
222
  await this.executeAtom('click', [atomsElement]);
214
223
  if (this.opts.sendKeyStrategy !== 'oneByOne') {
215
224
  await this.setValueWithWebAtom(atomsElement, value);
@@ -220,21 +229,20 @@ async function setValue(value, el) {
220
229
  }
221
230
  }
222
231
  /**
223
- * Set value with Atom for Web. This method calls `type` atom only.
224
- * Expected to be called as part of {@linkcode setValue}.
225
- * @this {XCUITestDriver}
226
- * @param {import('./types').AtomsElement<string>} atomsElement A target element to type the given value.
227
- * @param {string|string[]} value The actual text to type.
232
+ * Types text into a web element using atoms.
233
+ *
234
+ * @param atomsElement - Target atoms element
235
+ * @param value - Text to type
228
236
  */
229
237
  async function setValueWithWebAtom(atomsElement, value) {
230
238
  await this.executeAtom('type', [atomsElement, value]);
231
239
  if (this.opts.skipTriggerInputEventAfterSendkeys) {
232
240
  return;
233
241
  }
234
- function triggerInputEvent(/** @type {EventTarget & {_valueTracker?: any}} */ input) {
235
- let lastValue = '';
236
- let event = new Event('input', { bubbles: true });
237
- let tracker = input._valueTracker;
242
+ function triggerInputEvent(input) {
243
+ const lastValue = '';
244
+ const event = new Event('input', { bubbles: true });
245
+ const tracker = input._valueTracker;
238
246
  if (tracker) {
239
247
  tracker.setValue(lastValue);
240
248
  }
@@ -244,10 +252,9 @@ async function setValueWithWebAtom(atomsElement, value) {
244
252
  await this.executeAtom('execute_script', [scriptAsString, [atomsElement]]);
245
253
  }
246
254
  /**
247
- * Send keys to the app
248
- * @param {string[]} value - Array of keys to send
249
- * @this {XCUITestDriver}
250
- * @deprecated Use {@linkcode XCUITestDriver.setValue} instead
255
+ * Sends raw key sequences via WDA.
256
+ *
257
+ * @param value - Keys to send
251
258
  */
252
259
  async function keys(value) {
253
260
  await this.proxyCommand('/wda/keys', 'POST', {
@@ -255,19 +262,23 @@ async function keys(value) {
255
262
  });
256
263
  }
257
264
  /**
258
- * @this {XCUITestDriver}
265
+ * Clears the contents of an element.
266
+ *
267
+ * @param el - Element or element ID
259
268
  */
260
269
  async function clear(el) {
261
- el = support_1.util.unwrapElement(el);
270
+ const elementId = support_1.util.unwrapElement(el);
262
271
  if (this.isWebContext()) {
263
- const atomsElement = this.getAtomsElement(el);
272
+ const atomsElement = this.getAtomsElement(elementId);
264
273
  await this.executeAtom('clear', [atomsElement]);
265
274
  return;
266
275
  }
267
- await this.proxyCommand(`/element/${el}/clear`, 'POST');
276
+ await this.proxyCommand(`/element/${elementId}/clear`, 'POST');
268
277
  }
269
278
  /**
270
- * @this {XCUITestDriver}
279
+ * Gets content size for table/collection views (native only).
280
+ *
281
+ * @param el - Element or element ID
271
282
  */
272
283
  async function getContentSize(el) {
273
284
  if (this.isWebContext()) {
@@ -275,24 +286,19 @@ async function getContentSize(el) {
275
286
  }
276
287
  const type = await this.getAttribute('type', el);
277
288
  if (type !== 'XCUIElementTypeTable' && type !== 'XCUIElementTypeCollectionView') {
278
- throw new Error(`Can't get content size for type '${type}', only for ` + `tables and collection views`);
289
+ throw new Error(`Can't get content size for type '${type}', only for tables and collection views`);
279
290
  }
280
291
  let locator = '*';
281
292
  if (type === 'XCUIElementTypeTable') {
282
- // only find table cells, not just any children
283
293
  locator = 'XCUIElementTypeCell';
284
294
  }
285
295
  let contentHeight = 0;
286
- const children = await this.findElOrEls(`class chain`, locator, true, el);
296
+ const children = await this.findElOrEls('class chain', locator, true, el);
287
297
  if (children.length === 1) {
288
- // if we know there's only one element, we can optimize to make just one
289
- // call to WDA
290
- const rect = await this.getElementRect(lodash_1.default.head(children));
298
+ const rect = await this.getElementRect(children[0]);
291
299
  contentHeight = rect.height;
292
300
  }
293
301
  else if (children.length) {
294
- // otherwise if we have multiple elements, logic differs based on element
295
- // type
296
302
  switch (type) {
297
303
  case 'XCUIElementTypeTable': {
298
304
  const firstRect = await this.getElementRect(lodash_1.default.head(children));
@@ -301,9 +307,9 @@ async function getContentSize(el) {
301
307
  break;
302
308
  }
303
309
  case 'XCUIElementTypeCollectionView': {
304
- let elsInRow = 1; // we know there must be at least one element in the row
305
- let firstRect = await this.getElementRect(lodash_1.default.head(children));
306
- let initialRects = [firstRect];
310
+ let elsInRow = 1;
311
+ const firstRect = await this.getElementRect(lodash_1.default.head(children));
312
+ const initialRects = [firstRect];
307
313
  for (let i = 1; i < children.length; i++) {
308
314
  const rect = await this.getElementRect(children[i]);
309
315
  initialRects.push(rect);
@@ -316,18 +322,15 @@ async function getContentSize(el) {
316
322
  initialRects[elsInRow - 1].y -
317
323
  initialRects[elsInRow - 1].height;
318
324
  const numRows = Math.ceil(children.length / elsInRow);
319
- // assume all cells are the same height
320
325
  contentHeight = numRows * firstRect.height + spaceBetweenEls * (numRows - 1);
321
326
  break;
322
327
  }
323
328
  default:
324
- throw new Error(`Programming error: type '${type}' was not ` +
325
- `valid but should have already been rejected`);
329
+ throw new Error(`Programming error: type '${type}' was not valid but should have already been rejected`);
326
330
  }
327
331
  }
328
332
  const size = await this.getSize(el);
329
333
  const origin = await this.getLocationInView(el);
330
- // attributes have to be strings, so stringify this up
331
334
  return JSON.stringify({
332
335
  width: size.width,
333
336
  height: size.height,
@@ -337,59 +340,33 @@ async function getContentSize(el) {
337
340
  });
338
341
  }
339
342
  /**
340
- * @this {XCUITestDriver}
341
- * @returns {Promise<Rect>}
343
+ * Gets the native rect of an element (no web fallback).
344
+ *
345
+ * @param el - Element or element ID
342
346
  */
343
347
  async function getNativeRect(el) {
344
- return /** @type {Rect} */ (await this.proxyCommand(`/element/${el}/rect`, 'GET'));
348
+ const elementId = support_1.util.unwrapElement(el);
349
+ return await this.proxyCommand(`/element/${elementId}/rect`, 'GET');
345
350
  }
346
- /**
347
- * Prepares the input value to be passed as an argument to WDA.
348
- *
349
- * @param {string|string[]|number} inp The actual text to type.
350
- * @example
351
- * ```js
352
- * // Acceptable values of `inp`:
353
- * ['some text']
354
- * ['s', 'o', 'm', 'e', ' ', 't', 'e', 'x', 't']
355
- * 'some text'
356
- * 1234
357
- * ```
358
- * @throws {Error} If the value is not acceptable for input
359
- * @returns {string[]} The preprocessed value
360
- */
361
351
  function prepareInputValue(inp) {
362
352
  if (![lodash_1.default.isArray, lodash_1.default.isString, lodash_1.default.isFinite].some((f) => f(inp))) {
363
353
  throw new Error(`Only strings, numbers and arrays are supported as input arguments. ` +
364
354
  `Received: ${JSON.stringify(inp)}`);
365
355
  }
366
- // make it into a string, so then we assure
367
- // the array items are single characters
368
356
  if (lodash_1.default.isArray(inp)) {
369
357
  inp = inp.join('');
370
358
  }
371
359
  else if (lodash_1.default.isFinite(inp)) {
372
360
  inp = `${inp}`;
373
361
  }
374
- // The `split` method must not be used on the string
375
- // to properly handle all Unicode code points
376
362
  return [...String(inp)].map((k) => {
377
363
  if (['\uE006', '\uE007'].includes(k)) {
378
- // RETURN or ENTER
379
364
  return '\n';
380
365
  }
381
366
  if (['\uE003', '\ue017'].includes(k)) {
382
- // BACKSPACE or DELETE
383
367
  return '\b';
384
368
  }
385
369
  return k;
386
370
  });
387
371
  }
388
- /**
389
- * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
390
- * @typedef {import('@appium/types').Element} Element
391
- * @typedef {import('@appium/types').Position} Position
392
- * @typedef {import('@appium/types').Size} Size
393
- * @typedef {import('@appium/types').Rect} Rect
394
- */
395
372
  //# sourceMappingURL=element.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"element.js","sourceRoot":"","sources":["../../../lib/commands/element.js"],"names":[],"mappings":";;;;;AAOA,4CAQC;AAKD,wCAQC;AAKD,0CAQC;AAKD,0BASC;AAKD,gDAkBC;AAKD,oCAOC;AAKD,kCAOC;AAKD,0BAOC;AAMD,wCAUC;AAUD,kCAmBC;AASD,8CAEC;AAQD,0BAQC;AAUD,8CAMC;AAKD,4BAmBC;AASD,kDAmBC;AAQD,oBAIC;AAKD,sBAQC;AAKD,wCA4EC;AAMD,sCAEC;AAhXD,oDAAuB;AACvB,0CAAqC;AACrC,4CAAoC;AAEpC;;GAEG;AACI,KAAK,UAAU,gBAAgB,CAAC,EAAE;IACvC,EAAE,GAAG,cAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAC5B,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;QACxB,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAC9C,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED;;GAEG;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,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,90 +1,79 @@
1
+ import type { XCUITestDriver } from '../driver';
2
+ import type { ContainerObject, ContainerRootSupplier } from './types';
1
3
  /**
2
- * Parses the actual path and the bundle identifier from the given path string
4
+ * Parses the actual path and the bundle identifier from the given path string.
3
5
  *
4
- * @this {XCUITestDriver}
5
- * @param {string} remotePath - The given path string. The string should
6
- * match `CONTAINER_PATH_PATTERN` regexp, otherwise an error is going
7
- * to be thrown. A valid string example: `@bundle.identifier:container_type/relative_path_in_container`
8
- * @param {import('./types').ContainerRootSupplier|string} [containerRootSupplier] - Container root path supplier function or string value
9
- * @returns {Promise<import('./types').ContainerObject>}
6
+ * @param remotePath - Path string matching `CONTAINER_PATH_PATTERN`, e.g. `@bundle.id:container/relative/path`
7
+ * @param containerRootSupplier - Container root path supplier or explicit root
10
8
  */
11
- export function parseContainerPath(this: import("../driver").XCUITestDriver, remotePath: string, containerRootSupplier?: import("./types").ContainerRootSupplier | string): Promise<import("./types").ContainerObject>;
9
+ export declare function parseContainerPath(this: XCUITestDriver, remotePath: string, containerRootSupplier?: ContainerRootSupplier | string): Promise<ContainerObject>;
12
10
  /**
13
- * Pushes the given data to a file on the remote device
11
+ * Pushes the given data to a file on the remote device.
14
12
  *
15
- * @param {string} remotePath The full path to the remote file or
13
+ * @param remotePath The full path to the remote file or
16
14
  * a file inside a package bundle. Check the documentation on
17
15
  * `pushFileToRealDevice` and `pushFileToSimulator` for more information
18
16
  * on acceptable values.
19
- * @param {string} base64Data Base64 encoded data to be written to the
17
+ * @param base64Data Base64 encoded data to be written to the
20
18
  * remote file. The remote file will be silently overridden if it already exists.
21
19
  * @throws {Error} If there was an error while pushing the data
22
- * @this {XCUITestDriver}
23
20
  */
24
- export function pushFile(this: import("../driver").XCUITestDriver, remotePath: string, base64Data: string): Promise<any>;
21
+ export declare function pushFile(this: XCUITestDriver, remotePath: string, base64Data: string | number[] | Buffer): Promise<void>;
25
22
  /**
26
23
  * Pushes the given data to a file on the remote device.
27
24
  *
28
- * @param {string} remotePath - The full path to the remote file
25
+ * @param remotePath - The full path to the remote file
29
26
  * or a specially formatted path, which points to an item inside an app bundle.
30
- * @param {string} payload - Base64-encoded content of the file to be pushed.
31
- * @this {XCUITestDriver}
27
+ * @param payload - Base64-encoded content of the file to be pushed.
32
28
  */
33
- export function mobilePushFile(this: import("../driver").XCUITestDriver, remotePath: string, payload: string): Promise<any>;
29
+ export declare function mobilePushFile(this: XCUITestDriver, remotePath: string, payload: string): Promise<void>;
34
30
  /**
35
31
  * Pulls a remote file from the device.
36
32
  *
37
- * @param {string} remotePath The full path to the remote file
33
+ * @param remotePath The full path to the remote file
38
34
  * or a specially formatted path, which points to an item inside app bundle.
39
35
  * See the documentation for `pullFromRealDevice` and `pullFromSimulator`
40
36
  * to get more information on acceptable values.
41
- * @returns {Promise<string>} Base64 encoded content of the pulled file
37
+ * @returns Base64 encoded content of the pulled file
42
38
  * @throws {Error} If the pull operation failed
43
- * @this {XCUITestDriver}
44
39
  */
45
- export function pullFile(this: import("../driver").XCUITestDriver, remotePath: string): Promise<string>;
40
+ export declare function pullFile(this: XCUITestDriver, remotePath: string): Promise<string>;
46
41
  /**
47
42
  * Pulls a remote file from the device.
48
43
  *
49
- * @param {string} remotePath - The full path to the remote file
44
+ * @param remotePath - The full path to the remote file
50
45
  * or a specially formatted path, which points to an item inside app bundle. See the documentation for `pullFromRealDevice` and `pullFromSimulator` to get more information on acceptable values.
51
- * @returns {Promise<string>} The same as in `pullFile`
52
- * @this {XCUITestDriver}
46
+ * @returns The same as in `pullFile`
53
47
  */
54
- export function mobilePullFile(this: import("../driver").XCUITestDriver, remotePath: string): Promise<string>;
48
+ export declare function mobilePullFile(this: XCUITestDriver, remotePath: string): Promise<string>;
55
49
  /**
56
50
  * Delete a remote folder from the device.
57
51
  *
58
- * @param {string} remotePath - The full path to the remote folder or a specially formatted path, which points to an item inside app bundle. See the documentation for `pullFromRealDevice` and `pullFromSimulator` to get more information on acceptable values.
59
- * @this {XCUITestDriver}
60
- * @returns {Promise<void>}
52
+ * @param remotePath - The full path to the remote folder or a specially formatted path, which points to an item inside app bundle. See the documentation for `pullFromRealDevice` and `pullFromSimulator` to get more information on acceptable values.
53
+ * @returns Nothing
61
54
  */
62
- export function mobileDeleteFolder(this: import("../driver").XCUITestDriver, remotePath: string): Promise<void>;
55
+ export declare function mobileDeleteFolder(this: XCUITestDriver, remotePath: string): Promise<void>;
63
56
  /**
64
57
  * Delete a remote file from the device.
65
58
  *
66
- * @param {string} remotePath - The full path to the remote file or a specially formatted path, which points to an item inside app bundle. See the documentation for `pullFromRealDevice` and `pullFromSimulator` to get more information on acceptable values.
67
- * @this {XCUITestDriver}
68
- * @returns {Promise<void>}
59
+ * @param remotePath - The full path to the remote file or a specially formatted path, which points to an item inside app bundle. See the documentation for `pullFromRealDevice` and `pullFromSimulator` to get more information on acceptable values.
60
+ * @returns Nothing
69
61
  */
70
- export function mobileDeleteFile(this: import("../driver").XCUITestDriver, remotePath: string): Promise<void>;
62
+ export declare function mobileDeleteFile(this: XCUITestDriver, remotePath: string): Promise<void>;
71
63
  /**
72
64
  * Pulls the whole folder from the remote device
73
65
  *
74
- * @param {string} remotePath The full path to a folder on the
66
+ * @param remotePath The full path to a folder on the
75
67
  * remote device or a folder inside an application bundle
76
- * @returns {Promise<string>} Zipped and base64-encoded content of the folder
68
+ * @returns Zipped and base64-encoded content of the folder
77
69
  * @throws {Error} If there was a failure while getting the folder content
78
- * @this {XCUITestDriver}
79
70
  */
80
- export function pullFolder(this: import("../driver").XCUITestDriver, remotePath: string): Promise<string>;
71
+ export declare function pullFolder(this: XCUITestDriver, remotePath: string): Promise<string>;
81
72
  /**
82
73
  * Pulls the whole folder from the device under test.
83
74
  *
84
- * @param {string} remotePath - The full path to the remote folder
85
- * @returns {Promise<string>} The same as `pullFolder`
86
- * @this {XCUITestDriver}
75
+ * @param remotePath - The full path to the remote folder
76
+ * @returns The same as `pullFolder`
87
77
  */
88
- export function mobilePullFolder(this: import("../driver").XCUITestDriver, remotePath: string): Promise<string>;
89
- export type XCUITestDriver = import("../driver").XCUITestDriver;
78
+ export declare function mobilePullFolder(this: XCUITestDriver, remotePath: string): Promise<string>;
90
79
  //# sourceMappingURL=file-movement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-movement.d.ts","sourceRoot":"","sources":["../../../lib/commands/file-movement.js"],"names":[],"mappings":"AAkBA;;;;;;;;;GASG;AACH,yFANW,MAAM,0BAGN,OAAO,SAAS,EAAE,qBAAqB,GAAC,MAAM,GAC5C,OAAO,CAAC,OAAO,SAAS,EAAE,eAAe,CAAC,CA+BtD;AA8TD;;;;;;;;;;;GAWG;AACH,+EATW,MAAM,cAIN,MAAM,gBAoBhB;AAED;;;;;;;GAOG;AACH,qFALW,MAAM,WAEN,MAAM,gBAKhB;AAED;;;;;;;;;;GAUG;AACH,+EARW,MAAM,GAIJ,OAAO,CAAC,MAAM,CAAC,CAc3B;AAED;;;;;;;GAOG;AACH,qFALW,MAAM,GAEJ,OAAO,CAAC,MAAM,CAAC,CAK3B;AAED;;;;;;GAMG;AACH,yFAJW,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAOzB;AAED;;;;;;GAMG;AACH,uFAJW,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAUzB;AAED;;;;;;;;GAQG;AACH,iFANW,MAAM,GAEJ,OAAO,CAAC,MAAM,CAAC,CAW3B;AAED;;;;;;GAMG;AACH,uFAJW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAK3B;6BAGY,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"file-movement.d.ts","sourceRoot":"","sources":["../../../lib/commands/file-movement.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,eAAe,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAC;AASpE;;;;;GAKG;AACH,wBAAsB,kB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