appium-uiautomator2-driver 2.29.11 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/index.d.ts +4 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +8 -15
- package/build/index.js.map +1 -0
- package/build/lib/commands/actions.d.ts +2 -0
- package/build/lib/commands/actions.d.ts.map +1 -0
- package/build/lib/commands/actions.js +67 -62
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts +2 -0
- package/build/lib/commands/alert.d.ts.map +1 -0
- package/build/lib/commands/alert.js +28 -26
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-strings.d.ts +3 -0
- package/build/lib/commands/app-strings.d.ts.map +1 -0
- package/build/lib/commands/app-strings.js +86 -57
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/battery.d.ts +2 -0
- package/build/lib/commands/battery.d.ts.map +1 -0
- package/build/lib/commands/battery.js +26 -16
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/element.d.ts +2 -0
- package/build/lib/commands/element.d.ts.map +1 -0
- package/build/lib/commands/element.js +140 -159
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/find.d.ts +2 -0
- package/build/lib/commands/find.d.ts.map +1 -0
- package/build/lib/commands/find.js +39 -25
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +4 -0
- package/build/lib/commands/general.d.ts.map +1 -0
- package/build/lib/commands/general.js +209 -215
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/gestures.d.ts +2 -0
- package/build/lib/commands/gestures.d.ts.map +1 -0
- package/build/lib/commands/gestures.js +206 -193
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/index.d.ts +2 -0
- package/build/lib/commands/index.d.ts.map +1 -0
- package/build/lib/commands/index.js +13 -22
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/commands/mixins.d.ts +87 -0
- package/build/lib/commands/mixins.d.ts.map +1 -0
- package/build/lib/commands/mixins.js +26 -0
- package/build/lib/commands/mixins.js.map +1 -0
- package/build/lib/commands/screenshot.d.ts +2 -0
- package/build/lib/commands/screenshot.d.ts.map +1 -0
- package/build/lib/commands/screenshot.js +77 -62
- package/build/lib/commands/screenshot.js.map +1 -1
- package/build/lib/commands/touch.d.ts +2 -0
- package/build/lib/commands/touch.d.ts.map +1 -0
- package/build/lib/commands/touch.js +48 -38
- package/build/lib/commands/touch.js.map +1 -1
- package/build/lib/commands/types.d.ts +452 -0
- package/build/lib/commands/types.d.ts.map +1 -0
- package/build/lib/commands/types.js +3 -0
- package/build/lib/commands/types.js.map +1 -0
- package/build/lib/commands/viewport.d.ts +2 -0
- package/build/lib/commands/viewport.d.ts.map +1 -0
- package/build/lib/commands/viewport.js +37 -35
- package/build/lib/commands/viewport.js.map +1 -1
- package/build/lib/constraints.d.ts +325 -0
- package/build/lib/constraints.d.ts.map +1 -0
- package/build/lib/constraints.js +51 -0
- package/build/lib/constraints.js.map +1 -0
- package/build/lib/css-converter.d.ts +45 -0
- package/build/lib/css-converter.d.ts.map +1 -0
- package/build/lib/css-converter.js +272 -175
- package/build/lib/css-converter.js.map +1 -1
- package/build/lib/driver.d.ts +904 -0
- package/build/lib/driver.d.ts.map +1 -0
- package/build/lib/driver.js +726 -485
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +477 -0
- package/build/lib/execute-method-map.d.ts.map +1 -0
- package/build/lib/execute-method-map.js +542 -0
- package/build/lib/execute-method-map.js.map +1 -0
- package/build/lib/extensions.d.ts +3 -0
- package/build/lib/extensions.d.ts.map +1 -0
- package/build/lib/extensions.js +7 -9
- package/build/lib/extensions.js.map +1 -1
- package/build/lib/helpers.d.ts +7 -0
- package/build/lib/helpers.d.ts.map +1 -0
- package/build/lib/helpers.js +36 -29
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/logger.d.ts +3 -0
- package/build/lib/logger.d.ts.map +1 -0
- package/build/lib/logger.js +5 -10
- package/build/lib/logger.js.map +1 -1
- package/build/lib/method-map.d.ts +389 -0
- package/build/lib/method-map.d.ts.map +1 -0
- package/build/lib/method-map.js +11 -17
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/types.d.ts +44 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js +3 -0
- package/build/lib/types.js.map +1 -0
- package/build/lib/uiautomator2.d.ts +45 -0
- package/build/lib/uiautomator2.d.ts.map +1 -0
- package/build/lib/uiautomator2.js +340 -299
- package/build/lib/uiautomator2.js.map +1 -1
- package/build/lib/utils.d.ts +10 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js +23 -16
- package/build/lib/utils.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/index.js +5 -3
- package/lib/commands/actions.js +115 -101
- package/lib/commands/alert.js +36 -44
- package/lib/commands/app-strings.js +79 -58
- package/lib/commands/battery.js +27 -28
- package/lib/commands/element.js +231 -134
- package/lib/commands/find.js +40 -21
- package/lib/commands/general.js +262 -336
- package/lib/commands/gestures.js +252 -366
- package/lib/commands/index.js +11 -31
- package/lib/commands/mixins.ts +169 -0
- package/lib/commands/screenshot.js +80 -76
- package/lib/commands/touch.js +64 -31
- package/lib/commands/types.ts +473 -0
- package/lib/commands/viewport.js +43 -31
- package/lib/constraints.ts +53 -0
- package/lib/css-converter.js +9 -1
- package/lib/{driver.js → driver.ts} +374 -239
- package/lib/execute-method-map.ts +573 -0
- package/lib/method-map.ts +11 -0
- package/lib/types.ts +57 -0
- package/lib/uiautomator2.js +21 -2
- package/lib/utils.js +2 -2
- package/npm-shrinkwrap.json +395 -528
- package/package.json +96 -70
- package/build/lib/desired-caps.js +0 -71
- package/build/lib/desired-caps.js.map +0 -1
- package/lib/desired-caps.js +0 -70
- package/lib/method-map.js +0 -11
package/package.json
CHANGED
|
@@ -7,42 +7,18 @@
|
|
|
7
7
|
"automated testing",
|
|
8
8
|
"android"
|
|
9
9
|
],
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.31.0",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/appium/appium-uiautomator2-driver/issues"
|
|
13
|
+
},
|
|
11
14
|
"author": "Appium Contributors",
|
|
12
15
|
"license": "Apache-2.0",
|
|
13
16
|
"repository": {
|
|
14
17
|
"type": "git",
|
|
15
18
|
"url": "https://github.com/appium/appium-uiautomator2-driver.git"
|
|
16
19
|
},
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/appium/appium-uiautomator2-driver/issues"
|
|
19
|
-
},
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=14",
|
|
22
|
-
"npm": ">=8"
|
|
23
|
-
},
|
|
24
|
-
"lint-staged": {
|
|
25
|
-
"*.js": [
|
|
26
|
-
"eslint --fix"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"prettier": {
|
|
30
|
-
"bracketSpacing": false,
|
|
31
|
-
"printWidth": 100,
|
|
32
|
-
"singleQuote": true
|
|
33
|
-
},
|
|
34
|
-
"appium": {
|
|
35
|
-
"driverName": "uiautomator2",
|
|
36
|
-
"automationName": "UiAutomator2",
|
|
37
|
-
"platformNames": [
|
|
38
|
-
"Android"
|
|
39
|
-
],
|
|
40
|
-
"mainClass": "AndroidUiautomator2Driver",
|
|
41
|
-
"scripts": {
|
|
42
|
-
"reset": "scripts/reset.js"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
20
|
"main": "./build/index.js",
|
|
21
|
+
"types": "./build/index.d.ts",
|
|
46
22
|
"bin": {},
|
|
47
23
|
"directories": {
|
|
48
24
|
"lib": "lib"
|
|
@@ -50,17 +26,44 @@
|
|
|
50
26
|
"files": [
|
|
51
27
|
"index.js",
|
|
52
28
|
"lib",
|
|
53
|
-
"build
|
|
54
|
-
"build/lib",
|
|
29
|
+
"build",
|
|
55
30
|
"scripts",
|
|
56
31
|
"CHANGELOG.md",
|
|
57
32
|
"LICENSE",
|
|
58
33
|
"npm-shrinkwrap.json"
|
|
59
34
|
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc -b",
|
|
37
|
+
"clean": "npm run build -- --clean",
|
|
38
|
+
"dev": "npm run build -- --watch",
|
|
39
|
+
"e2e-test:commands": "mocha --exit --timeout 10m \"./test/functional/commands\"",
|
|
40
|
+
"e2e-test:commands:find": "mocha --exit --timeout 10m \"./test/functional/commands/find\"",
|
|
41
|
+
"e2e-test:commands:general": "mocha --exit --timeout 10m \"./test/functional/commands/general\"",
|
|
42
|
+
"e2e-test:commands:keyboard": "mocha --exit --timeout 10m \"./test/functional/commands/keyboard\"",
|
|
43
|
+
"e2e-test:driver": "mocha --exit --timeout 10m \"./test/functional/driver-e2e-specs.js\"",
|
|
44
|
+
"lint": "eslint .",
|
|
45
|
+
"lint:commit": "commitlint",
|
|
46
|
+
"lint:fix": "npm run lint -- --fix",
|
|
47
|
+
"lint:staged": "lint-staged",
|
|
48
|
+
"prepare": "husky install; npm run rebuild",
|
|
49
|
+
"rebuild": "npm run clean; npm run build",
|
|
50
|
+
"reset": "node ./scripts/reset.js",
|
|
51
|
+
"test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.js\""
|
|
52
|
+
},
|
|
53
|
+
"lint-staged": {
|
|
54
|
+
"*.(js|ts)": [
|
|
55
|
+
"eslint --fix",
|
|
56
|
+
"prettier --write"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"prettier": {
|
|
60
|
+
"bracketSpacing": false,
|
|
61
|
+
"printWidth": 100,
|
|
62
|
+
"singleQuote": true
|
|
63
|
+
},
|
|
60
64
|
"dependencies": {
|
|
61
|
-
"@babel/runtime": "^7.0.0",
|
|
62
65
|
"appium-adb": "^9.14.12",
|
|
63
|
-
"appium-android-driver": "^
|
|
66
|
+
"appium-android-driver": "^7.0.1",
|
|
64
67
|
"appium-chromedriver": "^5.6.5",
|
|
65
68
|
"appium-uiautomator2-server": "^5.12.2",
|
|
66
69
|
"asyncbox": "^2.3.1",
|
|
@@ -70,60 +73,83 @@
|
|
|
70
73
|
"lodash": "^4.17.4",
|
|
71
74
|
"portscanner": "^2.2.0",
|
|
72
75
|
"source-map-support": "^0.x",
|
|
73
|
-
"teen_process": "^2.0.0"
|
|
74
|
-
|
|
75
|
-
"scripts": {
|
|
76
|
-
"build": "rimraf build && babel --out-dir=build/lib lib && babel --out-dir=build index.js",
|
|
77
|
-
"reset": "node ./scripts/reset.js",
|
|
78
|
-
"dev": "npm run build -- --watch",
|
|
79
|
-
"lint": "eslint .",
|
|
80
|
-
"lint:fix": "npm run lint -- --fix",
|
|
81
|
-
"precommit-msg": "echo 'Pre-commit checks...' && exit 0",
|
|
82
|
-
"precommit-lint": "lint-staged",
|
|
83
|
-
"prepare": "npm run build",
|
|
84
|
-
"reinstall": "rm -rf node_modules && rm -rf package-lock.json && npm install",
|
|
85
|
-
"test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.js\"",
|
|
86
|
-
"e2e-test:driver": "mocha --exit --timeout 10m \"./test/functional/driver-e2e-specs.js\"",
|
|
87
|
-
"e2e-test:commands": "mocha --exit --timeout 10m \"./test/functional/commands\"",
|
|
88
|
-
"e2e-test:commands:find": "mocha --exit --timeout 10m \"./test/functional/commands/find\"",
|
|
89
|
-
"e2e-test:commands:general": "mocha --exit --timeout 10m \"./test/functional/commands/general\"",
|
|
90
|
-
"e2e-test:commands:keyboard": "mocha --exit --timeout 10m \"./test/functional/commands/keyboard\""
|
|
91
|
-
},
|
|
92
|
-
"pre-commit": [
|
|
93
|
-
"precommit-msg",
|
|
94
|
-
"precommit-lint"
|
|
95
|
-
],
|
|
96
|
-
"peerDependencies": {
|
|
97
|
-
"appium": "^2.0.0-beta.40"
|
|
76
|
+
"teen_process": "^2.0.0",
|
|
77
|
+
"type-fest": "^3.12.0"
|
|
98
78
|
},
|
|
99
79
|
"devDependencies": {
|
|
100
|
-
"@appium/
|
|
80
|
+
"@appium/docutils": "^0.4.4",
|
|
81
|
+
"@appium/eslint-config-appium": "^8.0.3",
|
|
82
|
+
"@appium/eslint-config-appium-ts": "^0.3.1",
|
|
83
|
+
"@appium/support": "^4.0.1",
|
|
101
84
|
"@appium/test-support": "^3.0.0",
|
|
102
|
-
"@
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"@babel/preset-env": "^7.18.10",
|
|
107
|
-
"@babel/register": "^7.18.9",
|
|
85
|
+
"@appium/tsconfig": "^0.3.0",
|
|
86
|
+
"@appium/types": "^0.13.0",
|
|
87
|
+
"@commitlint/cli": "^17.6.3",
|
|
88
|
+
"@commitlint/config-conventional": "^17.6.3",
|
|
108
89
|
"@semantic-release/changelog": "^6.0.1",
|
|
109
90
|
"@semantic-release/git": "^10.0.1",
|
|
91
|
+
"@types/bluebird": "^3.5.38",
|
|
92
|
+
"@types/chai": "^4.3.5",
|
|
93
|
+
"@types/chai-as-promised": "^7.1.5",
|
|
94
|
+
"@types/lodash": "^4.14.194",
|
|
95
|
+
"@types/mocha": "^10.0.1",
|
|
96
|
+
"@types/node": "^20.2.3",
|
|
97
|
+
"@types/portscanner": "^2.1.1",
|
|
98
|
+
"@types/semver": "^7.5.0",
|
|
99
|
+
"@types/sinon": "^10.0.15",
|
|
100
|
+
"@types/sinon-chai": "^3.2.9",
|
|
101
|
+
"@types/source-map-support": "^0.5.6",
|
|
102
|
+
"@types/teen_process": "^2.0.0",
|
|
103
|
+
"@types/ws": "^8.5.4",
|
|
104
|
+
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
105
|
+
"@typescript-eslint/parser": "^5.59.5",
|
|
110
106
|
"@xmldom/xmldom": "^0.x",
|
|
111
107
|
"android-apidemos": "^4.1.1",
|
|
112
|
-
"
|
|
113
|
-
"chai": "^4.1.
|
|
108
|
+
"appium": "^2.0.0-rc.3",
|
|
109
|
+
"chai": "^4.1.2",
|
|
114
110
|
"chai-as-promised": "^7.1.1",
|
|
115
111
|
"conventional-changelog-conventionalcommits": "^7.0.1",
|
|
116
|
-
"eslint
|
|
112
|
+
"eslint": "^8.40.0",
|
|
113
|
+
"eslint-config-prettier": "^8.8.0",
|
|
114
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
115
|
+
"eslint-plugin-import": "^2.27.5",
|
|
116
|
+
"eslint-plugin-mocha": "^10.1.0",
|
|
117
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
117
118
|
"fancy-log": "^2.0.0",
|
|
119
|
+
"husky": "^8.0.3",
|
|
118
120
|
"lint-staged": "^14.0.0",
|
|
119
121
|
"mocha": "^10.0.0",
|
|
120
|
-
"
|
|
122
|
+
"prettier": "^2.8.8",
|
|
121
123
|
"rimraf": "^5.0.0",
|
|
122
124
|
"semantic-release": "^21.1.0",
|
|
123
125
|
"sharp": "^0.x",
|
|
124
|
-
"sinon": "^
|
|
126
|
+
"sinon": "^16.1.0",
|
|
127
|
+
"sinon-chai": "^3.7.0",
|
|
128
|
+
"ts-node": "^10.9.1",
|
|
129
|
+
"typescript": "~5.0",
|
|
125
130
|
"unzipper": "^0.x",
|
|
126
131
|
"webdriverio": "^8.0.5",
|
|
127
132
|
"xpath": "^0.x"
|
|
133
|
+
},
|
|
134
|
+
"peerDependencies": {
|
|
135
|
+
"appium": "^2.0.0"
|
|
136
|
+
},
|
|
137
|
+
"engines": {
|
|
138
|
+
"node": ">=14",
|
|
139
|
+
"npm": ">=8"
|
|
140
|
+
},
|
|
141
|
+
"appium": {
|
|
142
|
+
"driverName": "uiautomator2",
|
|
143
|
+
"automationName": "UiAutomator2",
|
|
144
|
+
"platformNames": [
|
|
145
|
+
"Android"
|
|
146
|
+
],
|
|
147
|
+
"mainClass": "AndroidUiautomator2Driver",
|
|
148
|
+
"scripts": {
|
|
149
|
+
"reset": "scripts/reset.js"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"typedoc": {
|
|
153
|
+
"entryPoint": "index.js"
|
|
128
154
|
}
|
|
129
155
|
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
require("source-map-support/register");
|
|
8
|
-
var _appiumAndroidDriver = require("appium-android-driver");
|
|
9
|
-
let uiautomatorCapConstraints = {
|
|
10
|
-
app: {
|
|
11
|
-
isString: true
|
|
12
|
-
},
|
|
13
|
-
automationName: {
|
|
14
|
-
isString: true
|
|
15
|
-
},
|
|
16
|
-
browserName: {
|
|
17
|
-
isString: true
|
|
18
|
-
},
|
|
19
|
-
launchTimeout: {
|
|
20
|
-
isNumber: true
|
|
21
|
-
},
|
|
22
|
-
skipUnlock: {
|
|
23
|
-
isBoolean: true
|
|
24
|
-
},
|
|
25
|
-
uiautomator2ServerLaunchTimeout: {
|
|
26
|
-
isNumber: true
|
|
27
|
-
},
|
|
28
|
-
uiautomator2ServerInstallTimeout: {
|
|
29
|
-
isNumber: true
|
|
30
|
-
},
|
|
31
|
-
uiautomator2ServerReadTimeout: {
|
|
32
|
-
isNumber: true
|
|
33
|
-
},
|
|
34
|
-
disableWindowAnimation: {
|
|
35
|
-
isBoolean: true
|
|
36
|
-
},
|
|
37
|
-
systemPort: {
|
|
38
|
-
isNumber: true
|
|
39
|
-
},
|
|
40
|
-
mjpegServerPort: {
|
|
41
|
-
isNumber: true
|
|
42
|
-
},
|
|
43
|
-
mjpegScreenshotUrl: {
|
|
44
|
-
isString: true
|
|
45
|
-
},
|
|
46
|
-
skipServerInstallation: {
|
|
47
|
-
isBoolean: true
|
|
48
|
-
},
|
|
49
|
-
androidCoverageEndIntent: {
|
|
50
|
-
isString: true
|
|
51
|
-
},
|
|
52
|
-
userProfile: {
|
|
53
|
-
isNumber: true
|
|
54
|
-
},
|
|
55
|
-
appWaitForLaunch: {
|
|
56
|
-
isBoolean: true
|
|
57
|
-
},
|
|
58
|
-
disableSuppressAccessibilityService: {
|
|
59
|
-
isBoolean: true
|
|
60
|
-
},
|
|
61
|
-
forceAppLaunch: {
|
|
62
|
-
isBoolean: true
|
|
63
|
-
},
|
|
64
|
-
shouldTerminateApp: {
|
|
65
|
-
isBoolean: true
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
let desiredCapConstraints = {};
|
|
69
|
-
Object.assign(desiredCapConstraints, uiautomatorCapConstraints, _appiumAndroidDriver.commonCapConstraints);
|
|
70
|
-
var _default = exports.default = desiredCapConstraints;
|
|
71
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfYXBwaXVtQW5kcm9pZERyaXZlciIsInJlcXVpcmUiLCJ1aWF1dG9tYXRvckNhcENvbnN0cmFpbnRzIiwiYXBwIiwiaXNTdHJpbmciLCJhdXRvbWF0aW9uTmFtZSIsImJyb3dzZXJOYW1lIiwibGF1bmNoVGltZW91dCIsImlzTnVtYmVyIiwic2tpcFVubG9jayIsImlzQm9vbGVhbiIsInVpYXV0b21hdG9yMlNlcnZlckxhdW5jaFRpbWVvdXQiLCJ1aWF1dG9tYXRvcjJTZXJ2ZXJJbnN0YWxsVGltZW91dCIsInVpYXV0b21hdG9yMlNlcnZlclJlYWRUaW1lb3V0IiwiZGlzYWJsZVdpbmRvd0FuaW1hdGlvbiIsInN5c3RlbVBvcnQiLCJtanBlZ1NlcnZlclBvcnQiLCJtanBlZ1NjcmVlbnNob3RVcmwiLCJza2lwU2VydmVySW5zdGFsbGF0aW9uIiwiYW5kcm9pZENvdmVyYWdlRW5kSW50ZW50IiwidXNlclByb2ZpbGUiLCJhcHBXYWl0Rm9yTGF1bmNoIiwiZGlzYWJsZVN1cHByZXNzQWNjZXNzaWJpbGl0eVNlcnZpY2UiLCJmb3JjZUFwcExhdW5jaCIsInNob3VsZFRlcm1pbmF0ZUFwcCIsImRlc2lyZWRDYXBDb25zdHJhaW50cyIsIk9iamVjdCIsImFzc2lnbiIs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FDO0FBQUMsSUFBQUMsUUFBQSxHQUFBQyxPQUFBLENBQUFDLE9BQUEsR0FFYU4scUJBQXFCIn0=
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desired-caps.js","names":["_appiumAndroidDriver","require","uiautomatorCapConstraints","app","isString","automationName","browserName","launchTimeout","isNumber","skipUnlock","isBoolean","uiautomator2ServerLaunchTimeout","uiautomator2ServerInstallTimeout","uiautomator2ServerReadTimeout","disableWindowAnimation","systemPort","mjpegServerPort","mjpegScreenshotUrl","skipServerInstallation","androidCoverageEndIntent","userProfile","appWaitForLaunch","disableSuppressAccessibilityService","forceAppLaunch","shouldTerminateApp","desiredCapConstraints","Object","assign","commonCapConstraints","_default","exports","default"],"sources":["../../lib/desired-caps.js"],"sourcesContent":["import { commonCapConstraints } from 'appium-android-driver';\n\nlet uiautomatorCapConstraints = {\n app: {\n isString: true\n },\n automationName: {\n isString: true\n },\n browserName: {\n isString: true\n },\n launchTimeout: {\n isNumber: true\n },\n skipUnlock: {\n isBoolean: true\n },\n uiautomator2ServerLaunchTimeout: {\n isNumber: true\n },\n uiautomator2ServerInstallTimeout: {\n isNumber: true\n },\n uiautomator2ServerReadTimeout: {\n isNumber: true\n },\n disableWindowAnimation: {\n isBoolean: true\n },\n systemPort: {\n isNumber: true\n },\n mjpegServerPort: {\n isNumber: true\n },\n mjpegScreenshotUrl: {\n isString: true\n },\n skipServerInstallation: {\n isBoolean: true\n },\n androidCoverageEndIntent: {\n isString: true\n },\n userProfile: {\n isNumber: true\n },\n appWaitForLaunch: {\n isBoolean: true\n },\n disableSuppressAccessibilityService: {\n isBoolean: true\n },\n forceAppLaunch: {\n isBoolean: true\n },\n shouldTerminateApp: {\n isBoolean: true\n }\n};\n\nlet desiredCapConstraints = {};\nObject.assign(\n desiredCapConstraints,\n uiautomatorCapConstraints,\n commonCapConstraints\n);\n\nexport default desiredCapConstraints;\n"],"mappings":";;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;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|
1
|
-
import { commonCapConstraints } from 'appium-android-driver';
|
|
2
|
-
|
|
3
|
-
let uiautomatorCapConstraints = {
|
|
4
|
-
app: {
|
|
5
|
-
isString: true
|
|
6
|
-
},
|
|
7
|
-
automationName: {
|
|
8
|
-
isString: true
|
|
9
|
-
},
|
|
10
|
-
browserName: {
|
|
11
|
-
isString: true
|
|
12
|
-
},
|
|
13
|
-
launchTimeout: {
|
|
14
|
-
isNumber: true
|
|
15
|
-
},
|
|
16
|
-
skipUnlock: {
|
|
17
|
-
isBoolean: true
|
|
18
|
-
},
|
|
19
|
-
uiautomator2ServerLaunchTimeout: {
|
|
20
|
-
isNumber: true
|
|
21
|
-
},
|
|
22
|
-
uiautomator2ServerInstallTimeout: {
|
|
23
|
-
isNumber: true
|
|
24
|
-
},
|
|
25
|
-
uiautomator2ServerReadTimeout: {
|
|
26
|
-
isNumber: true
|
|
27
|
-
},
|
|
28
|
-
disableWindowAnimation: {
|
|
29
|
-
isBoolean: true
|
|
30
|
-
},
|
|
31
|
-
systemPort: {
|
|
32
|
-
isNumber: true
|
|
33
|
-
},
|
|
34
|
-
mjpegServerPort: {
|
|
35
|
-
isNumber: true
|
|
36
|
-
},
|
|
37
|
-
mjpegScreenshotUrl: {
|
|
38
|
-
isString: true
|
|
39
|
-
},
|
|
40
|
-
skipServerInstallation: {
|
|
41
|
-
isBoolean: true
|
|
42
|
-
},
|
|
43
|
-
androidCoverageEndIntent: {
|
|
44
|
-
isString: true
|
|
45
|
-
},
|
|
46
|
-
userProfile: {
|
|
47
|
-
isNumber: true
|
|
48
|
-
},
|
|
49
|
-
appWaitForLaunch: {
|
|
50
|
-
isBoolean: true
|
|
51
|
-
},
|
|
52
|
-
disableSuppressAccessibilityService: {
|
|
53
|
-
isBoolean: true
|
|
54
|
-
},
|
|
55
|
-
forceAppLaunch: {
|
|
56
|
-
isBoolean: true
|
|
57
|
-
},
|
|
58
|
-
shouldTerminateApp: {
|
|
59
|
-
isBoolean: true
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
let desiredCapConstraints = {};
|
|
64
|
-
Object.assign(
|
|
65
|
-
desiredCapConstraints,
|
|
66
|
-
uiautomatorCapConstraints,
|
|
67
|
-
commonCapConstraints
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
export default desiredCapConstraints;
|
package/lib/method-map.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AndroidDriver } from 'appium-android-driver';
|
|
2
|
-
|
|
3
|
-
export const newMethodMap = /** @type {const} */ ({
|
|
4
|
-
...AndroidDriver.newMethodMap,
|
|
5
|
-
'/session/:sessionId/appium/device/get_clipboard': {
|
|
6
|
-
POST: {
|
|
7
|
-
command: 'getClipboard',
|
|
8
|
-
payloadParams: { optional: ['contentType'] }
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
});
|