appium-uiautomator2-driver 3.4.0 → 3.5.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 +14 -0
- package/build/lib/commands/execute.d.ts +5 -15
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +53 -81
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js +2 -3
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/driver.d.ts +2 -520
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +1 -3
- package/build/lib/driver.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/commands/execute.js +62 -93
- package/lib/commands/gestures.js +2 -3
- package/lib/driver.ts +2 -5
- package/npm-shrinkwrap.json +126 -77
- package/package.json +3 -9
- package/build/lib/execute-method-map.d.ts +0 -524
- package/build/lib/execute-method-map.d.ts.map +0 -1
- package/build/lib/execute-method-map.js +0 -589
- package/build/lib/execute-method-map.js.map +0 -1
- package/lib/execute-method-map.ts +0 -624
package/lib/commands/execute.js
CHANGED
|
@@ -1,120 +1,89 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import {
|
|
3
|
-
import {AndroidUiautomator2Driver} from '../driver';
|
|
4
|
-
|
|
5
|
-
const MOBILE_SCRIPT_NAME_PREFIX = 'mobile:';
|
|
2
|
+
import {AndroidDriver} from 'appium-android-driver';
|
|
6
3
|
|
|
7
4
|
/**
|
|
8
|
-
* @override
|
|
9
|
-
* @privateRemarks Because the "mobile" commands (execute methods) in this
|
|
10
|
-
* driver universally accept an options object, this method will _not_ call
|
|
11
|
-
* into `BaseDriver.executeMethod`.
|
|
12
5
|
* @this {AndroidUiautomator2Driver}
|
|
13
|
-
* @
|
|
14
|
-
* @param {any[]} [args]
|
|
15
|
-
* @returns {Promise<any>}
|
|
6
|
+
* @returns {import('@appium/types').StringRecord<string>}
|
|
16
7
|
*/
|
|
17
|
-
export
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
8
|
+
export function mobileCommandsMapping() {
|
|
9
|
+
const commonMapping = new AndroidDriver().mobileCommandsMapping.call(this);
|
|
10
|
+
return {
|
|
11
|
+
...commonMapping,
|
|
12
|
+
dragGesture: 'mobileDragGesture',
|
|
13
|
+
flingGesture: 'mobileFlingGesture',
|
|
14
|
+
doubleClickGesture: 'mobileDoubleClickGesture',
|
|
15
|
+
clickGesture: 'mobileClickGesture',
|
|
16
|
+
longClickGesture: 'mobileLongClickGesture',
|
|
17
|
+
pinchCloseGesture: 'mobilePinchCloseGesture',
|
|
18
|
+
pinchOpenGesture: 'mobilePinchOpenGesture',
|
|
19
|
+
swipeGesture: 'mobileSwipeGesture',
|
|
20
|
+
scrollGesture: 'mobileScrollGesture',
|
|
21
|
+
scrollBackTo: 'mobileScrollBackTo',
|
|
22
|
+
scroll: 'mobileScroll',
|
|
23
|
+
viewportScreenshot: 'mobileViewportScreenshot',
|
|
24
|
+
viewportRect: 'mobileViewPortRect',
|
|
25
|
+
|
|
26
|
+
deepLink: 'mobileDeepLink',
|
|
27
|
+
|
|
28
|
+
acceptAlert: 'mobileAcceptAlert',
|
|
29
|
+
dismissAlert: 'mobileDismissAlert',
|
|
30
|
+
|
|
31
|
+
batteryInfo: 'mobileGetBatteryInfo',
|
|
32
|
+
|
|
33
|
+
deviceInfo: 'mobileGetDeviceInfo',
|
|
34
|
+
|
|
35
|
+
openNotifications: 'openNotifications',
|
|
36
|
+
|
|
37
|
+
type: 'mobileType',
|
|
38
|
+
replaceElementValue: 'mobileReplaceElementValue',
|
|
39
|
+
|
|
40
|
+
getAppStrings: 'mobileGetAppStrings',
|
|
41
|
+
|
|
42
|
+
installMultipleApks: 'mobileInstallMultipleApks',
|
|
43
|
+
|
|
44
|
+
pressKey: 'mobilePressKey',
|
|
45
|
+
|
|
46
|
+
screenshots: 'mobileScreenshots',
|
|
47
|
+
|
|
48
|
+
scheduleAction: 'mobileScheduleAction',
|
|
49
|
+
getActionHistory: 'mobileGetActionHistory',
|
|
50
|
+
unscheduleAction: 'mobileUnscheduleAction',
|
|
51
|
+
};
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
43
55
|
* @override
|
|
44
56
|
* @this {AndroidUiautomator2Driver}
|
|
45
|
-
* @param {string}
|
|
46
|
-
* differs from its parent class implementation.
|
|
57
|
+
* @param {string} mobileCommand
|
|
47
58
|
* @param {import('@appium/types').StringRecord} [opts={}]
|
|
48
59
|
* @returns {Promise<any>}
|
|
49
60
|
*/
|
|
50
|
-
export async function executeMobile(
|
|
51
|
-
|
|
52
|
-
const commandNames = _.map(
|
|
53
|
-
_.keys(AndroidUiautomator2Driver.executeMethodMap),
|
|
54
|
-
(value) => value.slice(8)
|
|
55
|
-
);
|
|
56
|
-
throw new errors.UnknownCommandError(
|
|
57
|
-
`Unknown mobile command "${script}". ` +
|
|
58
|
-
`Only ${commandNames.join(', ')} commands are supported.`
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
const methodName =
|
|
62
|
-
AndroidUiautomator2Driver.executeMethodMap[
|
|
63
|
-
/** @type {keyof import('../execute-method-map').Uiautomator2ExecuteMethodMap} */ (script)
|
|
64
|
-
].command;
|
|
65
|
-
|
|
66
|
-
return await /** @type {(opts?: any) => Promise<unknown>} */ (this[methodName])(opts);
|
|
61
|
+
export async function executeMobile(mobileCommand, opts = {}) {
|
|
62
|
+
return await new AndroidDriver().executeMobile.call(this, mobileCommand, preprocessOptions(opts));
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
// #region Internal Helpers
|
|
70
66
|
|
|
71
67
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* @param {
|
|
68
|
+
* Renames the deprecated `element` key to `elementId`. Historically,
|
|
69
|
+
* all of the pre-Execute-Method-Map execute methods accepted an `element` _or_ and `elementId` param.
|
|
70
|
+
* This assigns the `element` value to `elementId` if `elementId` is not already present.
|
|
71
|
+
*
|
|
72
|
+
* @param {import('@appium/types').StringRecord} [opts={}]
|
|
77
73
|
* @internal
|
|
78
|
-
* @returns {StringRecord
|
|
74
|
+
* @returns {import('@appium/types').StringRecord|undefined}
|
|
79
75
|
*/
|
|
80
|
-
function
|
|
81
|
-
if (_.
|
|
82
|
-
|
|
76
|
+
function preprocessOptions(opts = {}) {
|
|
77
|
+
if (_.isPlainObject(opts) && !('elementId' in opts) && 'element' in opts) {
|
|
78
|
+
opts.elementId = opts.element;
|
|
79
|
+
delete opts.element;
|
|
80
|
+
this.log.debug(`Replaced the obsolete 'element' key with 'elementId'`);
|
|
83
81
|
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Renames the deprecated `element` key to `elementId`. Historically,
|
|
87
|
-
* all of the pre-Execute-Method-Map execute methods accepted an `element` _or_ and `elementId` param.
|
|
88
|
-
* This assigns the `element` value to `elementId` if `elementId` is not already present.
|
|
89
|
-
*/
|
|
90
|
-
if (!('elementId' in executeMethodArgs) && 'element' in executeMethodArgs) {
|
|
91
|
-
executeMethodArgs.elementId = executeMethodArgs.element;
|
|
92
|
-
delete executeMethodArgs.element;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return executeMethodArgs;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Type guard to check if a script is an execute method.
|
|
100
|
-
* @param {any} script
|
|
101
|
-
* @internal
|
|
102
|
-
* @returns {string?}
|
|
103
|
-
*/
|
|
104
|
-
function toExecuteMethodName(script) {
|
|
105
|
-
return _.startsWith(script, MOBILE_SCRIPT_NAME_PREFIX)
|
|
106
|
-
? script.replace(new RegExp(`${MOBILE_SCRIPT_NAME_PREFIX}\\s*`), `${MOBILE_SCRIPT_NAME_PREFIX} `)
|
|
107
|
-
: null;
|
|
82
|
+
return opts;
|
|
108
83
|
}
|
|
109
84
|
|
|
110
85
|
// #endregion
|
|
111
86
|
|
|
112
87
|
/**
|
|
113
|
-
* @typedef {import('../
|
|
114
|
-
* @typedef {import('appium-adb').ADB} ADB
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @template [T=any]
|
|
119
|
-
* @typedef {import('@appium/types').StringRecord<T>} StringRecord
|
|
88
|
+
* @typedef {import('../driver').AndroidUiautomator2Driver} AndroidUiautomator2Driver
|
|
120
89
|
*/
|
package/lib/commands/gestures.js
CHANGED
|
@@ -238,8 +238,7 @@ export async function mobileScrollBackTo(opts) {
|
|
|
238
238
|
*/
|
|
239
239
|
export async function mobileScroll(opts) {
|
|
240
240
|
const {
|
|
241
|
-
|
|
242
|
-
elementId, // `element` is deprecated, use `elementId` instead
|
|
241
|
+
elementId,
|
|
243
242
|
strategy,
|
|
244
243
|
selector,
|
|
245
244
|
maxSwipes,
|
|
@@ -253,7 +252,7 @@ export async function mobileScroll(opts) {
|
|
|
253
252
|
'/gestures/scroll_to',
|
|
254
253
|
'POST',
|
|
255
254
|
{
|
|
256
|
-
origin: toOrigin(elementId
|
|
255
|
+
origin: toOrigin(elementId),
|
|
257
256
|
params: {strategy, selector, maxSwipes},
|
|
258
257
|
}
|
|
259
258
|
);
|
package/lib/driver.ts
CHANGED
|
@@ -22,7 +22,6 @@ import path from 'node:path';
|
|
|
22
22
|
import {checkPortStatus, findAPortNotInUse} from 'portscanner';
|
|
23
23
|
import type {ExecError} from 'teen_process';
|
|
24
24
|
import UIAUTOMATOR2_CONSTRAINTS, {type Uiautomator2Constraints} from './constraints';
|
|
25
|
-
import {executeMethodMap} from './execute-method-map';
|
|
26
25
|
import {APKS_EXTENSION, APK_EXTENSION} from './extensions';
|
|
27
26
|
import {newMethodMap} from './method-map';
|
|
28
27
|
import { signApp } from './helpers';
|
|
@@ -81,8 +80,8 @@ import {
|
|
|
81
80
|
mobileReplaceElementValue,
|
|
82
81
|
} from './commands/element';
|
|
83
82
|
import {
|
|
84
|
-
execute,
|
|
85
83
|
executeMobile,
|
|
84
|
+
mobileCommandsMapping,
|
|
86
85
|
} from './commands/execute';
|
|
87
86
|
import {
|
|
88
87
|
doFindElementOrEls,
|
|
@@ -266,8 +265,6 @@ class AndroidUiautomator2Driver
|
|
|
266
265
|
{
|
|
267
266
|
static newMethodMap = newMethodMap;
|
|
268
267
|
|
|
269
|
-
static executeMethodMap = executeMethodMap;
|
|
270
|
-
|
|
271
268
|
uiautomator2: UiAutomator2Server;
|
|
272
269
|
|
|
273
270
|
systemPort: number | undefined;
|
|
@@ -1030,8 +1027,8 @@ class AndroidUiautomator2Driver
|
|
|
1030
1027
|
clear = clear;
|
|
1031
1028
|
mobileReplaceElementValue = mobileReplaceElementValue;
|
|
1032
1029
|
|
|
1033
|
-
execute = execute;
|
|
1034
1030
|
executeMobile = executeMobile;
|
|
1031
|
+
mobileCommandsMapping = mobileCommandsMapping;
|
|
1035
1032
|
|
|
1036
1033
|
doFindElementOrEls = doFindElementOrEls;
|
|
1037
1034
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-uiautomator2-driver",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-uiautomator2-driver",
|
|
9
|
-
"version": "3.
|
|
9
|
+
"version": "3.5.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"appium-adb": "^12.2.0",
|
|
13
|
-
"appium-android-driver": "^9.
|
|
13
|
+
"appium-android-driver": "^9.6.0",
|
|
14
14
|
"appium-chromedriver": "^5.6.28",
|
|
15
15
|
"appium-uiautomator2-server": "^7.0.1",
|
|
16
16
|
"asyncbox": "^3.0.0",
|
|
@@ -53,19 +53,13 @@
|
|
|
53
53
|
"chai": "^4.1.2",
|
|
54
54
|
"chai-as-promised": "^7.1.1",
|
|
55
55
|
"conventional-changelog-conventionalcommits": "^7.0.1",
|
|
56
|
-
"eslint": "^8.40.0",
|
|
57
|
-
"eslint-config-prettier": "^9.0.0",
|
|
58
|
-
"eslint-import-resolver-typescript": "^3.5.5",
|
|
59
|
-
"eslint-plugin-import": "^2.27.5",
|
|
60
|
-
"eslint-plugin-mocha": "^10.1.0",
|
|
61
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
62
56
|
"fancy-log": "^2.0.0",
|
|
63
57
|
"mocha": "^10.0.0",
|
|
64
58
|
"prettier": "^3.0.3",
|
|
65
59
|
"rimraf": "^5.0.0",
|
|
66
60
|
"semantic-release": "^23.0.0",
|
|
67
61
|
"sharp": "^0.x",
|
|
68
|
-
"sinon": "^
|
|
62
|
+
"sinon": "^18.0.0",
|
|
69
63
|
"sinon-chai": "^3.7.0",
|
|
70
64
|
"ts-node": "^10.9.1",
|
|
71
65
|
"typescript": "^5.4.2",
|
|
@@ -275,6 +269,71 @@
|
|
|
275
269
|
"sharp": "0.33.3"
|
|
276
270
|
}
|
|
277
271
|
},
|
|
272
|
+
"node_modules/@appium/support/node_modules/@img/sharp-linux-x64": {
|
|
273
|
+
"version": "0.33.3",
|
|
274
|
+
"resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.3.tgz",
|
|
275
|
+
"integrity": "sha512-Q4I++herIJxJi+qmbySd072oDPRkCg/SClLEIDh5IL9h1zjhqjv82H0Seupd+q2m0yOfD+/fJnjSoDFtKiHu2g==",
|
|
276
|
+
"cpu": [
|
|
277
|
+
"x64"
|
|
278
|
+
],
|
|
279
|
+
"optional": true,
|
|
280
|
+
"os": [
|
|
281
|
+
"linux"
|
|
282
|
+
],
|
|
283
|
+
"engines": {
|
|
284
|
+
"glibc": ">=2.26",
|
|
285
|
+
"node": "^18.17.0 || ^20.3.0 || >=21.0.0",
|
|
286
|
+
"npm": ">=9.6.5",
|
|
287
|
+
"pnpm": ">=7.1.0",
|
|
288
|
+
"yarn": ">=3.2.0"
|
|
289
|
+
},
|
|
290
|
+
"funding": {
|
|
291
|
+
"url": "https://opencollective.com/libvips"
|
|
292
|
+
},
|
|
293
|
+
"optionalDependencies": {
|
|
294
|
+
"@img/sharp-libvips-linux-x64": "1.0.2"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"node_modules/@appium/support/node_modules/sharp": {
|
|
298
|
+
"version": "0.33.3",
|
|
299
|
+
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.3.tgz",
|
|
300
|
+
"integrity": "sha512-vHUeXJU1UvlO/BNwTpT0x/r53WkLUVxrmb5JTgW92fdFCFk0ispLMAeu/jPO2vjkXM1fYUi3K7/qcLF47pwM1A==",
|
|
301
|
+
"hasInstallScript": true,
|
|
302
|
+
"optional": true,
|
|
303
|
+
"dependencies": {
|
|
304
|
+
"color": "^4.2.3",
|
|
305
|
+
"detect-libc": "^2.0.3",
|
|
306
|
+
"semver": "^7.6.0"
|
|
307
|
+
},
|
|
308
|
+
"engines": {
|
|
309
|
+
"libvips": ">=8.15.2",
|
|
310
|
+
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
|
311
|
+
},
|
|
312
|
+
"funding": {
|
|
313
|
+
"url": "https://opencollective.com/libvips"
|
|
314
|
+
},
|
|
315
|
+
"optionalDependencies": {
|
|
316
|
+
"@img/sharp-darwin-arm64": "0.33.3",
|
|
317
|
+
"@img/sharp-darwin-x64": "0.33.3",
|
|
318
|
+
"@img/sharp-libvips-darwin-arm64": "1.0.2",
|
|
319
|
+
"@img/sharp-libvips-darwin-x64": "1.0.2",
|
|
320
|
+
"@img/sharp-libvips-linux-arm": "1.0.2",
|
|
321
|
+
"@img/sharp-libvips-linux-arm64": "1.0.2",
|
|
322
|
+
"@img/sharp-libvips-linux-s390x": "1.0.2",
|
|
323
|
+
"@img/sharp-libvips-linux-x64": "1.0.2",
|
|
324
|
+
"@img/sharp-libvips-linuxmusl-arm64": "1.0.2",
|
|
325
|
+
"@img/sharp-libvips-linuxmusl-x64": "1.0.2",
|
|
326
|
+
"@img/sharp-linux-arm": "0.33.3",
|
|
327
|
+
"@img/sharp-linux-arm64": "0.33.3",
|
|
328
|
+
"@img/sharp-linux-s390x": "0.33.3",
|
|
329
|
+
"@img/sharp-linux-x64": "0.33.3",
|
|
330
|
+
"@img/sharp-linuxmusl-arm64": "0.33.3",
|
|
331
|
+
"@img/sharp-linuxmusl-x64": "0.33.3",
|
|
332
|
+
"@img/sharp-wasm32": "0.33.3",
|
|
333
|
+
"@img/sharp-win32-ia32": "0.33.3",
|
|
334
|
+
"@img/sharp-win32-x64": "0.33.3"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
278
337
|
"node_modules/@appium/support/node_modules/type-fest": {
|
|
279
338
|
"version": "4.10.1",
|
|
280
339
|
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.10.1.tgz",
|
|
@@ -472,6 +531,36 @@
|
|
|
472
531
|
"fd-slicer": "~1.1.0"
|
|
473
532
|
}
|
|
474
533
|
},
|
|
534
|
+
"node_modules/@emnapi/runtime": {
|
|
535
|
+
"version": "1.1.1",
|
|
536
|
+
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.1.1.tgz",
|
|
537
|
+
"integrity": "sha512-3bfqkzuR1KLx57nZfjr2NLnFOobvyS0aTszaEGCGqmYMVDRaGvgIZbjGSV/MHSSmLgQ/b9JFHQ5xm5WRZYd+XQ==",
|
|
538
|
+
"extraneous": true,
|
|
539
|
+
"dependencies": {
|
|
540
|
+
"tslib": "^2.4.0"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"node_modules/@img/sharp-libvips-linux-x64": {
|
|
544
|
+
"version": "1.0.2",
|
|
545
|
+
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.2.tgz",
|
|
546
|
+
"integrity": "sha512-E441q4Qdb+7yuyiADVi5J+44x8ctlrqn8XgkDTwr4qPJzWkaHwD489iZ4nGDgcuya4iMN3ULV6NwbhRZJ9Z7SQ==",
|
|
547
|
+
"cpu": [
|
|
548
|
+
"x64"
|
|
549
|
+
],
|
|
550
|
+
"optional": true,
|
|
551
|
+
"os": [
|
|
552
|
+
"linux"
|
|
553
|
+
],
|
|
554
|
+
"engines": {
|
|
555
|
+
"glibc": ">=2.26",
|
|
556
|
+
"npm": ">=9.6.5",
|
|
557
|
+
"pnpm": ">=7.1.0",
|
|
558
|
+
"yarn": ">=3.2.0"
|
|
559
|
+
},
|
|
560
|
+
"funding": {
|
|
561
|
+
"url": "https://opencollective.com/libvips"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
475
564
|
"node_modules/@isaacs/cliui": {
|
|
476
565
|
"version": "8.0.2",
|
|
477
566
|
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
|
|
@@ -757,9 +846,9 @@
|
|
|
757
846
|
}
|
|
758
847
|
},
|
|
759
848
|
"node_modules/@types/node": {
|
|
760
|
-
"version": "20.12.
|
|
761
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.
|
|
762
|
-
"integrity": "sha512-
|
|
849
|
+
"version": "20.12.12",
|
|
850
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz",
|
|
851
|
+
"integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==",
|
|
763
852
|
"dependencies": {
|
|
764
853
|
"undici-types": "~5.26.4"
|
|
765
854
|
}
|
|
@@ -1013,9 +1102,9 @@
|
|
|
1013
1102
|
}
|
|
1014
1103
|
},
|
|
1015
1104
|
"node_modules/appium-adb": {
|
|
1016
|
-
"version": "12.3.
|
|
1017
|
-
"resolved": "https://registry.npmjs.org/appium-adb/-/appium-adb-12.3.
|
|
1018
|
-
"integrity": "sha512-
|
|
1105
|
+
"version": "12.3.2",
|
|
1106
|
+
"resolved": "https://registry.npmjs.org/appium-adb/-/appium-adb-12.3.2.tgz",
|
|
1107
|
+
"integrity": "sha512-QyiHDfxU3sUukxOeDiH0FQu5Kg9B3Q8oszO+egqd42813Ac3a5lYaoiS9vdh+Pwr+g5/z37KYVWPaHTpfR4jBA==",
|
|
1019
1108
|
"dependencies": {
|
|
1020
1109
|
"@appium/support": "^4.0.0",
|
|
1021
1110
|
"@devicefarmer/adbkit-apkreader": "^3.2.4",
|
|
@@ -1035,9 +1124,9 @@
|
|
|
1035
1124
|
}
|
|
1036
1125
|
},
|
|
1037
1126
|
"node_modules/appium-android-driver": {
|
|
1038
|
-
"version": "9.
|
|
1039
|
-
"resolved": "https://registry.npmjs.org/appium-android-driver/-/appium-android-driver-9.
|
|
1040
|
-
"integrity": "sha512-
|
|
1127
|
+
"version": "9.6.0",
|
|
1128
|
+
"resolved": "https://registry.npmjs.org/appium-android-driver/-/appium-android-driver-9.6.0.tgz",
|
|
1129
|
+
"integrity": "sha512-BVZ6zhc1xQmjXE75t3G1Z3lpJEubiO7fhjhfkzA7SeBBNadCJg/D6r/Fm9SpMuT6+IwuCv6onFOsAkgQW8zNnA==",
|
|
1041
1130
|
"dependencies": {
|
|
1042
1131
|
"@appium/support": "^4.2.0",
|
|
1043
1132
|
"@colors/colors": "^1.6.0",
|
|
@@ -1067,9 +1156,9 @@
|
|
|
1067
1156
|
}
|
|
1068
1157
|
},
|
|
1069
1158
|
"node_modules/appium-chromedriver": {
|
|
1070
|
-
"version": "5.6.
|
|
1071
|
-
"resolved": "https://registry.npmjs.org/appium-chromedriver/-/appium-chromedriver-5.6.
|
|
1072
|
-
"integrity": "sha512-
|
|
1159
|
+
"version": "5.6.50",
|
|
1160
|
+
"resolved": "https://registry.npmjs.org/appium-chromedriver/-/appium-chromedriver-5.6.50.tgz",
|
|
1161
|
+
"integrity": "sha512-mTGUu3VMymwivZMDex2aRpHZFyC6Y1RWJ8gfNuTug1J0Yggc0QlWop6ohhc48FfUSO2Y7WVAvemP//BUPIk0Xg==",
|
|
1073
1162
|
"hasInstallScript": true,
|
|
1074
1163
|
"dependencies": {
|
|
1075
1164
|
"@appium/base-driver": "^9.1.0",
|
|
@@ -1520,7 +1609,7 @@
|
|
|
1520
1609
|
"version": "4.2.3",
|
|
1521
1610
|
"resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
|
|
1522
1611
|
"integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
|
|
1523
|
-
"
|
|
1612
|
+
"optional": true,
|
|
1524
1613
|
"dependencies": {
|
|
1525
1614
|
"color-convert": "^2.0.1",
|
|
1526
1615
|
"color-string": "^1.9.0"
|
|
@@ -1851,7 +1940,7 @@
|
|
|
1851
1940
|
"version": "2.0.3",
|
|
1852
1941
|
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz",
|
|
1853
1942
|
"integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",
|
|
1854
|
-
"
|
|
1943
|
+
"optional": true,
|
|
1855
1944
|
"engines": {
|
|
1856
1945
|
"node": ">=8"
|
|
1857
1946
|
}
|
|
@@ -2540,9 +2629,9 @@
|
|
|
2540
2629
|
}
|
|
2541
2630
|
},
|
|
2542
2631
|
"node_modules/io.appium.settings": {
|
|
2543
|
-
"version": "5.
|
|
2544
|
-
"resolved": "https://registry.npmjs.org/io.appium.settings/-/io.appium.settings-5.
|
|
2545
|
-
"integrity": "sha512-
|
|
2632
|
+
"version": "5.9.1",
|
|
2633
|
+
"resolved": "https://registry.npmjs.org/io.appium.settings/-/io.appium.settings-5.9.1.tgz",
|
|
2634
|
+
"integrity": "sha512-TlVMJDwi9sskGZt8QkiPcDcJ/UUqNCOhKEEXijUPiuyGggkG/XK9vHMUAxRTCRdU3Hc8jkNukqln0yIswJgh5g==",
|
|
2546
2635
|
"dependencies": {
|
|
2547
2636
|
"asyncbox": "^3.0.0",
|
|
2548
2637
|
"bluebird": "^3.5.1",
|
|
@@ -3353,15 +3442,15 @@
|
|
|
3353
3442
|
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
|
|
3354
3443
|
},
|
|
3355
3444
|
"node_modules/path-scurry": {
|
|
3356
|
-
"version": "1.11.
|
|
3357
|
-
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.
|
|
3358
|
-
"integrity": "sha512-
|
|
3445
|
+
"version": "1.11.1",
|
|
3446
|
+
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",
|
|
3447
|
+
"integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
|
|
3359
3448
|
"dependencies": {
|
|
3360
3449
|
"lru-cache": "^10.2.0",
|
|
3361
3450
|
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
|
|
3362
3451
|
},
|
|
3363
3452
|
"engines": {
|
|
3364
|
-
"node": ">=16 || 14 >=14.
|
|
3453
|
+
"node": ">=16 || 14 >=14.18"
|
|
3365
3454
|
},
|
|
3366
3455
|
"funding": {
|
|
3367
3456
|
"url": "https://github.com/sponsors/isaacs"
|
|
@@ -3378,9 +3467,9 @@
|
|
|
3378
3467
|
"integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg=="
|
|
3379
3468
|
},
|
|
3380
3469
|
"node_modules/picocolors": {
|
|
3381
|
-
"version": "1.0.
|
|
3382
|
-
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.
|
|
3383
|
-
"integrity": "sha512-
|
|
3470
|
+
"version": "1.0.1",
|
|
3471
|
+
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",
|
|
3472
|
+
"integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew=="
|
|
3384
3473
|
},
|
|
3385
3474
|
"node_modules/pkg-dir": {
|
|
3386
3475
|
"version": "5.0.0",
|
|
@@ -3833,46 +3922,6 @@
|
|
|
3833
3922
|
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
|
3834
3923
|
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
|
3835
3924
|
},
|
|
3836
|
-
"node_modules/sharp": {
|
|
3837
|
-
"version": "0.33.3",
|
|
3838
|
-
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.3.tgz",
|
|
3839
|
-
"integrity": "sha512-vHUeXJU1UvlO/BNwTpT0x/r53WkLUVxrmb5JTgW92fdFCFk0ispLMAeu/jPO2vjkXM1fYUi3K7/qcLF47pwM1A==",
|
|
3840
|
-
"devOptional": true,
|
|
3841
|
-
"hasInstallScript": true,
|
|
3842
|
-
"dependencies": {
|
|
3843
|
-
"color": "^4.2.3",
|
|
3844
|
-
"detect-libc": "^2.0.3",
|
|
3845
|
-
"semver": "^7.6.0"
|
|
3846
|
-
},
|
|
3847
|
-
"engines": {
|
|
3848
|
-
"libvips": ">=8.15.2",
|
|
3849
|
-
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
|
3850
|
-
},
|
|
3851
|
-
"funding": {
|
|
3852
|
-
"url": "https://opencollective.com/libvips"
|
|
3853
|
-
},
|
|
3854
|
-
"optionalDependencies": {
|
|
3855
|
-
"@img/sharp-darwin-arm64": "0.33.3",
|
|
3856
|
-
"@img/sharp-darwin-x64": "0.33.3",
|
|
3857
|
-
"@img/sharp-libvips-darwin-arm64": "1.0.2",
|
|
3858
|
-
"@img/sharp-libvips-darwin-x64": "1.0.2",
|
|
3859
|
-
"@img/sharp-libvips-linux-arm": "1.0.2",
|
|
3860
|
-
"@img/sharp-libvips-linux-arm64": "1.0.2",
|
|
3861
|
-
"@img/sharp-libvips-linux-s390x": "1.0.2",
|
|
3862
|
-
"@img/sharp-libvips-linux-x64": "1.0.2",
|
|
3863
|
-
"@img/sharp-libvips-linuxmusl-arm64": "1.0.2",
|
|
3864
|
-
"@img/sharp-libvips-linuxmusl-x64": "1.0.2",
|
|
3865
|
-
"@img/sharp-linux-arm": "0.33.3",
|
|
3866
|
-
"@img/sharp-linux-arm64": "0.33.3",
|
|
3867
|
-
"@img/sharp-linux-s390x": "0.33.3",
|
|
3868
|
-
"@img/sharp-linux-x64": "0.33.3",
|
|
3869
|
-
"@img/sharp-linuxmusl-arm64": "0.33.3",
|
|
3870
|
-
"@img/sharp-linuxmusl-x64": "0.33.3",
|
|
3871
|
-
"@img/sharp-wasm32": "0.33.3",
|
|
3872
|
-
"@img/sharp-win32-ia32": "0.33.3",
|
|
3873
|
-
"@img/sharp-win32-x64": "0.33.3"
|
|
3874
|
-
}
|
|
3875
|
-
},
|
|
3876
3925
|
"node_modules/shebang-command": {
|
|
3877
3926
|
"version": "2.0.0",
|
|
3878
3927
|
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
|
|
@@ -4314,9 +4363,9 @@
|
|
|
4314
4363
|
}
|
|
4315
4364
|
},
|
|
4316
4365
|
"node_modules/utf8-byte-length": {
|
|
4317
|
-
"version": "1.0.
|
|
4318
|
-
"resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.
|
|
4319
|
-
"integrity": "sha512-
|
|
4366
|
+
"version": "1.0.5",
|
|
4367
|
+
"resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",
|
|
4368
|
+
"integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA=="
|
|
4320
4369
|
},
|
|
4321
4370
|
"node_modules/util-deprecate": {
|
|
4322
4371
|
"version": "1.0.2",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"automated testing",
|
|
8
8
|
"android"
|
|
9
9
|
],
|
|
10
|
-
"version": "3.
|
|
10
|
+
"version": "3.5.1",
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/appium/appium-uiautomator2-driver/issues"
|
|
13
13
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"appium-adb": "^12.2.0",
|
|
60
|
-
"appium-android-driver": "^9.
|
|
60
|
+
"appium-android-driver": "^9.6.0",
|
|
61
61
|
"appium-chromedriver": "^5.6.28",
|
|
62
62
|
"appium-uiautomator2-server": "^7.0.1",
|
|
63
63
|
"asyncbox": "^3.0.0",
|
|
@@ -100,19 +100,13 @@
|
|
|
100
100
|
"chai": "^4.1.2",
|
|
101
101
|
"chai-as-promised": "^7.1.1",
|
|
102
102
|
"conventional-changelog-conventionalcommits": "^7.0.1",
|
|
103
|
-
"eslint": "^8.40.0",
|
|
104
|
-
"eslint-config-prettier": "^9.0.0",
|
|
105
|
-
"eslint-import-resolver-typescript": "^3.5.5",
|
|
106
|
-
"eslint-plugin-import": "^2.27.5",
|
|
107
|
-
"eslint-plugin-mocha": "^10.1.0",
|
|
108
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
109
103
|
"fancy-log": "^2.0.0",
|
|
110
104
|
"mocha": "^10.0.0",
|
|
111
105
|
"prettier": "^3.0.3",
|
|
112
106
|
"rimraf": "^5.0.0",
|
|
113
107
|
"semantic-release": "^23.0.0",
|
|
114
108
|
"sharp": "^0.x",
|
|
115
|
-
"sinon": "^
|
|
109
|
+
"sinon": "^18.0.0",
|
|
116
110
|
"sinon-chai": "^3.7.0",
|
|
117
111
|
"ts-node": "^10.9.1",
|
|
118
112
|
"typescript": "^5.4.2",
|