appium-android-driver 14.0.2 → 14.0.4
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 +12 -0
- package/build/lib/commands/app-management.d.ts +1 -1
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +2 -4
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/bidi/models.d.ts +1 -1
- package/build/lib/commands/bidi/models.d.ts.map +1 -1
- package/build/lib/commands/bidi/models.js +1 -1
- package/build/lib/commands/bidi/models.js.map +1 -1
- package/build/lib/commands/bluetooth.d.ts.map +1 -1
- package/build/lib/commands/bluetooth.js.map +1 -1
- package/build/lib/commands/context/cache.d.ts +1 -1
- package/build/lib/commands/context/cache.d.ts.map +1 -1
- package/build/lib/commands/context/cache.js.map +1 -1
- package/build/lib/commands/context/exports.d.ts.map +1 -1
- package/build/lib/commands/context/exports.js +3 -4
- package/build/lib/commands/context/exports.js.map +1 -1
- package/build/lib/commands/context/helpers.d.ts.map +1 -1
- package/build/lib/commands/context/helpers.js +21 -26
- package/build/lib/commands/context/helpers.js.map +1 -1
- package/build/lib/commands/device/common.d.ts +1 -1
- package/build/lib/commands/device/common.d.ts.map +1 -1
- package/build/lib/commands/device/common.js +8 -16
- package/build/lib/commands/device/common.js.map +1 -1
- package/build/lib/commands/device/emulator-actions.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-actions.js +1 -1
- package/build/lib/commands/device/emulator-actions.js.map +1 -1
- package/build/lib/commands/device/emulator-console.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-console.js.map +1 -1
- package/build/lib/commands/device/utils.d.ts.map +1 -1
- package/build/lib/commands/device/utils.js +5 -6
- package/build/lib/commands/device/utils.js.map +1 -1
- package/build/lib/commands/deviceidle.d.ts.map +1 -1
- package/build/lib/commands/deviceidle.js.map +1 -1
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +2 -4
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js +6 -20
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.d.ts +1 -1
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +1 -1
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +5 -12
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/image-injection.d.ts.map +1 -1
- package/build/lib/commands/image-injection.js +2 -2
- package/build/lib/commands/image-injection.js.map +1 -1
- package/build/lib/commands/ime.d.ts.map +1 -1
- package/build/lib/commands/ime.js +1 -7
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/intent.d.ts.map +1 -1
- package/build/lib/commands/intent.js +2 -3
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/legacy.d.ts.map +1 -1
- package/build/lib/commands/legacy.js.map +1 -1
- package/build/lib/commands/lock/exports.d.ts.map +1 -1
- package/build/lib/commands/lock/exports.js.map +1 -1
- package/build/lib/commands/lock/helpers.d.ts.map +1 -1
- package/build/lib/commands/lock/helpers.js +3 -10
- package/build/lib/commands/lock/helpers.js.map +1 -1
- package/build/lib/commands/log.d.ts +1 -1
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +6 -8
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts.map +1 -1
- package/build/lib/commands/media-projection.js +2 -2
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/network.d.ts.map +1 -1
- package/build/lib/commands/network.js +4 -11
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/nfc.d.ts.map +1 -1
- package/build/lib/commands/nfc.js.map +1 -1
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +4 -21
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +4 -7
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +2 -2
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/resources.d.ts.map +1 -1
- package/build/lib/commands/resources.js.map +1 -1
- package/build/lib/commands/shell.d.ts.map +1 -1
- package/build/lib/commands/shell.js +1 -6
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js +6 -9
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +1 -1
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/time.d.ts.map +1 -1
- package/build/lib/commands/time.js +1 -1
- package/build/lib/commands/time.js.map +1 -1
- package/build/lib/commands/types.d.ts +4 -4
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/doctor/checks.d.ts.map +1 -1
- package/build/lib/doctor/checks.js +2 -2
- package/build/lib/doctor/checks.js.map +1 -1
- package/build/lib/driver.d.ts +8 -8
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +14 -20
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +1 -10
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/index.d.ts +1 -1
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +1 -1
- package/build/lib/index.js.map +1 -1
- package/build/lib/method-map.d.ts.map +1 -1
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +1 -1
- package/build/lib/utils.js.map +1 -1
- package/lib/commands/app-management.ts +15 -43
- package/lib/commands/appearance.ts +1 -5
- package/lib/commands/bidi/models.ts +5 -12
- package/lib/commands/bluetooth.ts +1 -0
- package/lib/commands/context/cache.ts +2 -1
- package/lib/commands/context/exports.ts +17 -40
- package/lib/commands/context/helpers.ts +37 -88
- package/lib/commands/device/common.ts +16 -29
- package/lib/commands/device/emulator-actions.ts +12 -49
- package/lib/commands/device/emulator-console.ts +1 -0
- package/lib/commands/device/utils.ts +7 -16
- package/lib/commands/deviceidle.ts +1 -0
- package/lib/commands/element.ts +6 -20
- package/lib/commands/execute.ts +6 -13
- package/lib/commands/file-actions.ts +17 -50
- package/lib/commands/find.ts +4 -6
- package/lib/commands/geolocation.ts +9 -17
- package/lib/commands/gestures.ts +2 -1
- package/lib/commands/image-injection.ts +9 -19
- package/lib/commands/ime.ts +2 -7
- package/lib/commands/intent.ts +3 -3
- package/lib/commands/keyboard.ts +4 -14
- package/lib/commands/legacy.ts +1 -0
- package/lib/commands/lock/exports.ts +5 -10
- package/lib/commands/lock/helpers.ts +17 -52
- package/lib/commands/log.ts +12 -22
- package/lib/commands/media-projection.ts +9 -21
- package/lib/commands/memory.ts +2 -5
- package/lib/commands/misc.ts +3 -5
- package/lib/commands/network.ts +9 -27
- package/lib/commands/nfc.ts +1 -0
- package/lib/commands/performance.ts +12 -48
- package/lib/commands/permissions.ts +10 -22
- package/lib/commands/recordscreen.ts +16 -41
- package/lib/commands/resources.ts +3 -9
- package/lib/commands/shell.ts +3 -7
- package/lib/commands/streamscreen.ts +17 -37
- package/lib/commands/system-bars.ts +7 -13
- package/lib/commands/time.ts +4 -8
- package/lib/commands/types.ts +9 -10
- package/lib/doctor/checks.ts +11 -18
- package/lib/driver.ts +43 -65
- package/lib/execute-method-map.ts +1 -10
- package/lib/index.ts +1 -1
- package/lib/method-map.ts +1 -0
- package/lib/utils.ts +4 -6
- package/package.json +24 -38
|
@@ -257,16 +257,7 @@ export const executeMethodMap = {
|
|
|
257
257
|
'mobile: stopMediaProjectionRecording': {
|
|
258
258
|
command: 'mobileStopMediaProjectionRecording',
|
|
259
259
|
params: {
|
|
260
|
-
optional: [
|
|
261
|
-
'remotePath',
|
|
262
|
-
'user',
|
|
263
|
-
'pass',
|
|
264
|
-
'method',
|
|
265
|
-
'headers',
|
|
266
|
-
'fileFieldName',
|
|
267
|
-
'formFields',
|
|
268
|
-
'uploadTimeout',
|
|
269
|
-
],
|
|
260
|
+
optional: ['remotePath', 'user', 'pass', 'method', 'headers', 'fileFieldName', 'formFields', 'uploadTimeout'],
|
|
270
261
|
},
|
|
271
262
|
},
|
|
272
263
|
|
package/lib/index.ts
CHANGED
package/lib/method-map.ts
CHANGED
package/lib/utils.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {util} from '@appium/support';
|
|
2
2
|
import type {LogEntry} from 'appium-adb';
|
|
3
|
+
import {errors} from 'appium/driver.js';
|
|
4
|
+
|
|
3
5
|
import type {AndroidDriver} from './driver.js';
|
|
4
|
-
import {util} from '@appium/support';
|
|
5
6
|
|
|
6
7
|
export type {LogEntry};
|
|
7
8
|
|
|
@@ -25,10 +26,7 @@ interface LogEntryWithPrefix {
|
|
|
25
26
|
* @param opts the object to check
|
|
26
27
|
* @returns the same given object
|
|
27
28
|
*/
|
|
28
|
-
export function requireArgs(
|
|
29
|
-
argNames: string | string[],
|
|
30
|
-
opts: Record<string, any>,
|
|
31
|
-
): Record<string, any> {
|
|
29
|
+
export function requireArgs(argNames: string | string[], opts: Record<string, any>): Record<string, any> {
|
|
32
30
|
for (const argName of Array.isArray(argNames) ? argNames : [argNames]) {
|
|
33
31
|
if (util.isPlainObject(opts) && !Object.hasOwn(opts, argName)) {
|
|
34
32
|
throw new errors.InvalidArgumentError(`'${argName}' argument must be provided`);
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-android-driver",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"description": "Android UiAutomator and Chrome support for Appium",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"appium",
|
|
7
6
|
"android",
|
|
8
|
-
"
|
|
7
|
+
"appium",
|
|
9
8
|
"automation",
|
|
10
9
|
"mobile",
|
|
11
|
-
"mobile testing"
|
|
10
|
+
"mobile testing",
|
|
11
|
+
"testing"
|
|
12
12
|
],
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/appium/appium-android-driver/issues"
|
|
15
15
|
},
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"author": "Appium Contributors",
|
|
16
18
|
"repository": {
|
|
17
19
|
"type": "git",
|
|
18
20
|
"url": "https://github.com/appium/appium-android-driver.git"
|
|
19
21
|
},
|
|
20
|
-
"license": "Apache-2.0",
|
|
21
|
-
"author": "Appium Contributors",
|
|
22
|
-
"main": "./build/lib/index.js",
|
|
23
22
|
"bin": {},
|
|
24
23
|
"directories": {
|
|
25
24
|
"lib": "lib"
|
|
@@ -29,23 +28,28 @@
|
|
|
29
28
|
"build/lib",
|
|
30
29
|
"CHANGELOG.md"
|
|
31
30
|
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"main": "./build/lib/index.js",
|
|
33
|
+
"types": "./build/lib/index.d.ts",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"types": "./build/lib/index.d.ts",
|
|
37
|
+
"import": "./build/lib/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
32
41
|
"scripts": {
|
|
33
42
|
"build": "tsc -b",
|
|
34
43
|
"clean": "npm run build -- --clean",
|
|
35
44
|
"dev": "npm run build -- --watch",
|
|
36
|
-
"lint": "
|
|
37
|
-
"lint:fix": "
|
|
45
|
+
"lint": "oxlint -c oxlint.config.mjs .",
|
|
46
|
+
"lint:fix": "oxlint -c oxlint.config.mjs --fix .",
|
|
38
47
|
"prepare": "npm run rebuild",
|
|
39
48
|
"rebuild": "npm run clean; npm run build",
|
|
40
|
-
"format": "
|
|
41
|
-
"format:check": "
|
|
49
|
+
"format": "oxfmt -c oxfmt.config.mjs .",
|
|
50
|
+
"format:check": "oxfmt -c oxfmt.config.mjs --check .",
|
|
42
51
|
"test": "node --enable-source-maps --test --test-force-exit --test-timeout=60000 \"./build/test/unit/**/*.spec.js\""
|
|
43
52
|
},
|
|
44
|
-
"prettier": {
|
|
45
|
-
"bracketSpacing": false,
|
|
46
|
-
"printWidth": 100,
|
|
47
|
-
"singleQuote": true
|
|
48
|
-
},
|
|
49
53
|
"dependencies": {
|
|
50
54
|
"@appium/support": "^7.2.5",
|
|
51
55
|
"appium-adb": "^16.0.0",
|
|
@@ -61,26 +65,17 @@
|
|
|
61
65
|
"ws": "^8.0.0"
|
|
62
66
|
},
|
|
63
67
|
"devDependencies": {
|
|
64
|
-
"@appium/
|
|
65
|
-
"@appium/
|
|
68
|
+
"@appium/oxc-config": "^1.1.0",
|
|
69
|
+
"@appium/semantic-release-config": "^1.1.0",
|
|
70
|
+
"@appium/tsconfig": "^1.2.0",
|
|
66
71
|
"@appium/types": "^1.0.0-rc.1",
|
|
67
|
-
"@semantic-release/changelog": "^6.0.1",
|
|
68
|
-
"@semantic-release/git": "^10.0.1",
|
|
69
|
-
"@types/chai": "^5.2.3",
|
|
70
|
-
"@types/chai-as-promised": "^8.0.2",
|
|
71
72
|
"@types/node": "^26.0.0",
|
|
72
73
|
"@types/portscanner": "^2.1.1",
|
|
73
74
|
"@types/semver": "^7.5.0",
|
|
74
75
|
"@types/sinon": "^22.0.0",
|
|
75
76
|
"@types/ws": "^8.5.4",
|
|
76
|
-
"chai": "^6.0.0",
|
|
77
|
-
"chai-as-promised": "^8.0.0",
|
|
78
|
-
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
79
77
|
"esmock": "^2.7.6",
|
|
80
|
-
"
|
|
81
|
-
"semantic-release": "^25.0.2",
|
|
82
|
-
"sinon": "^22.0.0",
|
|
83
|
-
"typescript": "^6.0.2"
|
|
78
|
+
"sinon": "^22.0.0"
|
|
84
79
|
},
|
|
85
80
|
"peerDependencies": {
|
|
86
81
|
"appium": "^3.0.0-rc.2"
|
|
@@ -88,14 +83,5 @@
|
|
|
88
83
|
"engines": {
|
|
89
84
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
90
85
|
"npm": ">=10"
|
|
91
|
-
},
|
|
92
|
-
"types": "./build/lib/index.d.ts",
|
|
93
|
-
"type": "module",
|
|
94
|
-
"exports": {
|
|
95
|
-
".": {
|
|
96
|
-
"types": "./build/lib/index.d.ts",
|
|
97
|
-
"import": "./build/lib/index.js"
|
|
98
|
-
},
|
|
99
|
-
"./package.json": "./package.json"
|
|
100
86
|
}
|
|
101
87
|
}
|