appium-android-driver 5.14.7 → 6.0.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 +7 -0
- package/build/lib/commands/actions.d.ts +6 -224
- package/build/lib/commands/actions.d.ts.map +1 -1
- package/build/lib/commands/actions.js +306 -405
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts +7 -9
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +24 -18
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +7 -313
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +135 -293
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/context.d.ts +8 -92
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +381 -439
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/element.d.ts +8 -35
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +153 -136
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/emu-console.d.ts +6 -48
- package/build/lib/commands/emu-console.d.ts.map +1 -1
- package/build/lib/commands/emu-console.js +19 -34
- package/build/lib/commands/emu-console.js.map +1 -1
- package/build/lib/commands/execute.d.ts +6 -5
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +77 -66
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +7 -128
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js +183 -219
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.d.ts +8 -12
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +19 -23
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +9 -132
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/commands/general.js +281 -312
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/ime.d.ts +7 -10
- package/build/lib/commands/ime.d.ts.map +1 -1
- package/build/lib/commands/ime.js +47 -35
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/index.d.ts +27 -2
- package/build/lib/commands/index.d.ts.map +1 -1
- package/build/lib/commands/index.js +41 -19
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/commands/intent.d.ts +7 -417
- package/build/lib/commands/intent.d.ts.map +1 -1
- package/build/lib/commands/intent.js +104 -216
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +6 -5
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +16 -8
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/log.d.ts +7 -44
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +146 -108
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +7 -143
- package/build/lib/commands/media-projection.d.ts.map +1 -1
- package/build/lib/commands/media-projection.js +113 -140
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/mixins.d.ts +740 -0
- package/build/lib/commands/mixins.d.ts.map +1 -0
- package/build/lib/commands/mixins.js +19 -0
- package/build/lib/commands/mixins.js.map +1 -0
- package/build/lib/commands/network.d.ts +7 -138
- package/build/lib/commands/network.d.ts.map +1 -1
- package/build/lib/commands/network.js +212 -254
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/performance.d.ts +24 -70
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +144 -100
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +8 -92
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +75 -87
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +7 -193
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +151 -182
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/shell.d.ts +7 -7
- package/build/lib/commands/shell.d.ts.map +1 -1
- package/build/lib/commands/shell.js +40 -33
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +9 -103
- package/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js +261 -218
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +22 -90
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +76 -74
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/touch.d.ts +10 -29
- package/build/lib/commands/touch.d.ts.map +1 -1
- package/build/lib/commands/touch.js +301 -285
- package/build/lib/commands/touch.js.map +1 -1
- package/build/lib/commands/types.d.ts +978 -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/constraints.d.ts +291 -0
- package/build/lib/constraints.d.ts.map +1 -0
- package/build/lib/{desired-caps.js → constraints.js} +103 -102
- package/build/lib/constraints.js.map +1 -0
- package/build/lib/driver.d.ts +68 -37
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +123 -80
- package/build/lib/driver.js.map +1 -1
- package/build/lib/helpers/android.d.ts +164 -0
- package/build/lib/helpers/android.d.ts.map +1 -0
- package/build/lib/helpers/android.js +819 -0
- package/build/lib/helpers/android.js.map +1 -0
- package/build/lib/helpers/index.d.ts +7 -0
- package/build/lib/helpers/index.d.ts.map +1 -0
- package/build/lib/helpers/index.js +29 -0
- package/build/lib/helpers/index.js.map +1 -0
- package/build/lib/helpers/types.d.ts +121 -0
- package/build/lib/helpers/types.d.ts.map +1 -0
- package/build/lib/helpers/types.js +3 -0
- package/build/lib/helpers/types.js.map +1 -0
- package/build/lib/helpers/unlock.d.ts +32 -0
- package/build/lib/helpers/unlock.d.ts.map +1 -0
- package/build/lib/helpers/unlock.js +273 -0
- package/build/lib/helpers/unlock.js.map +1 -0
- package/build/lib/helpers/webview.d.ts +74 -0
- package/build/lib/helpers/webview.d.ts.map +1 -0
- package/build/lib/helpers/webview.js +421 -0
- package/build/lib/helpers/webview.js.map +1 -0
- package/build/lib/index.d.ts +9 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.js +37 -0
- package/build/lib/index.js.map +1 -0
- package/build/lib/method-map.d.ts +0 -8
- package/build/lib/method-map.d.ts.map +1 -1
- package/build/lib/method-map.js +63 -74
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/stubs.d.ts +0 -1
- package/build/lib/stubs.d.ts.map +1 -1
- package/build/lib/stubs.js +1 -0
- package/build/lib/stubs.js.map +1 -1
- package/build/lib/utils.d.ts +1 -1
- package/build/lib/utils.d.ts.map +1 -1
- package/lib/commands/actions.js +351 -464
- package/lib/commands/alert.js +27 -17
- package/lib/commands/app-management.js +156 -314
- package/lib/commands/context.js +457 -441
- package/lib/commands/element.js +201 -157
- package/lib/commands/emu-console.js +25 -45
- package/lib/commands/execute.js +106 -90
- package/lib/commands/file-actions.js +222 -240
- package/lib/commands/find.ts +103 -0
- package/lib/commands/general.js +327 -339
- package/lib/commands/ime.js +50 -34
- package/lib/commands/{index.js → index.ts} +20 -24
- package/lib/commands/intent.js +108 -249
- package/lib/commands/keyboard.js +20 -8
- package/lib/commands/log.js +172 -116
- package/lib/commands/media-projection.js +134 -161
- package/lib/commands/mixins.ts +966 -0
- package/lib/commands/network.js +252 -281
- package/lib/commands/performance.js +203 -132
- package/lib/commands/permissions.js +108 -109
- package/lib/commands/recordscreen.js +212 -209
- package/lib/commands/shell.js +51 -40
- package/lib/commands/streamscreen.js +355 -289
- package/lib/commands/system-bars.js +92 -83
- package/lib/commands/touch.js +357 -294
- package/lib/commands/types.ts +1097 -0
- package/lib/{desired-caps.js → constraints.ts} +106 -103
- package/lib/{driver.js → driver.ts} +278 -132
- package/lib/helpers/android.ts +1143 -0
- package/lib/helpers/index.ts +6 -0
- package/lib/helpers/types.ts +134 -0
- package/lib/helpers/unlock.ts +329 -0
- package/lib/helpers/webview.ts +582 -0
- package/lib/index.ts +18 -0
- package/lib/method-map.js +87 -98
- package/lib/stubs.ts +0 -1
- package/package.json +26 -19
- package/build/index.js +0 -51
- package/build/lib/android-helpers.d.ts +0 -136
- package/build/lib/android-helpers.d.ts.map +0 -1
- package/build/lib/android-helpers.js +0 -855
- package/build/lib/android-helpers.js.map +0 -1
- package/build/lib/commands/coverage.d.ts +0 -5
- package/build/lib/commands/coverage.d.ts.map +0 -1
- package/build/lib/commands/coverage.js +0 -19
- package/build/lib/commands/coverage.js.map +0 -1
- package/build/lib/desired-caps.d.ts +0 -353
- package/build/lib/desired-caps.d.ts.map +0 -1
- package/build/lib/desired-caps.js.map +0 -1
- package/build/lib/unlock-helpers.d.ts +0 -38
- package/build/lib/unlock-helpers.d.ts.map +0 -1
- package/build/lib/unlock-helpers.js +0 -266
- package/build/lib/unlock-helpers.js.map +0 -1
- package/build/lib/webview-helpers.d.ts +0 -224
- package/build/lib/webview-helpers.d.ts.map +0 -1
- package/build/lib/webview-helpers.js +0 -528
- package/build/lib/webview-helpers.js.map +0 -1
- package/index.js +0 -24
- package/lib/android-helpers.js +0 -983
- package/lib/commands/coverage.js +0 -18
- package/lib/commands/find.js +0 -82
- package/lib/unlock-helpers.js +0 -278
- package/lib/webview-helpers.js +0 -602
|
@@ -1,21 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// @ts-check
|
|
2
3
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
5
|
};
|
|
5
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
+
const mixins_1 = require("./mixins");
|
|
7
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
8
9
|
const driver_1 = require("appium/driver");
|
|
9
10
|
const NO_VALUE_ARG_TYPE = 'sn';
|
|
10
11
|
const SUPPORTED_EXTRA_TYPES = [
|
|
11
|
-
's',
|
|
12
|
-
|
|
12
|
+
's',
|
|
13
|
+
NO_VALUE_ARG_TYPE,
|
|
14
|
+
'z',
|
|
15
|
+
'i',
|
|
16
|
+
'l',
|
|
17
|
+
'f',
|
|
18
|
+
'u',
|
|
19
|
+
'cn',
|
|
20
|
+
'ia',
|
|
21
|
+
'ial',
|
|
22
|
+
'la',
|
|
23
|
+
'lal',
|
|
24
|
+
'fa',
|
|
25
|
+
'fal',
|
|
26
|
+
'sa',
|
|
27
|
+
'sal',
|
|
13
28
|
];
|
|
14
29
|
const API_LEVEL_ANDROID_8 = 26;
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param {import('./types').IntentOpts} opts
|
|
33
|
+
* @returns {string[]}
|
|
34
|
+
*/
|
|
17
35
|
function parseIntentSpec(opts = {}) {
|
|
18
|
-
const { intent, action, uri, mimeType, identifier, categories, component, extras, flags
|
|
36
|
+
const { intent, action, uri, mimeType, identifier, categories, component, extras, flags } = opts;
|
|
19
37
|
const resultArgs = [];
|
|
20
38
|
if (intent) {
|
|
21
39
|
resultArgs.push(intent);
|
|
@@ -34,7 +52,7 @@ function parseIntentSpec(opts = {}) {
|
|
|
34
52
|
}
|
|
35
53
|
if (categories) {
|
|
36
54
|
if (lodash_1.default.isArray(categories)) {
|
|
37
|
-
resultArgs.push(...
|
|
55
|
+
resultArgs.push(...lodash_1.default.flatMap(categories.map((cName) => ['-c', cName])));
|
|
38
56
|
}
|
|
39
57
|
else {
|
|
40
58
|
resultArgs.push('-c', categories);
|
|
@@ -80,217 +98,87 @@ function parseIntentSpec(opts = {}) {
|
|
|
80
98
|
return resultArgs;
|
|
81
99
|
}
|
|
82
100
|
/**
|
|
83
|
-
* @
|
|
84
|
-
* @
|
|
85
|
-
* The `current` user id is used by default
|
|
86
|
-
* @property {?boolean} wait [false] - Set it to `true` if you want to block the method call
|
|
87
|
-
* until the activity manager's process returns the control to the system.
|
|
88
|
-
* @property {?boolean} stop [false] - Set it to `true` to force stop the target
|
|
89
|
-
* app before starting the activity
|
|
90
|
-
* @property {?number|string} windowingMode - The windowing mode to launch the activity into.
|
|
91
|
-
* Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
92
|
-
* for more details on possible windowing modes (constants starting with `WINDOWING_MODE_`).
|
|
93
|
-
* @property {?number|string} activityType - The activity type to launch the activity as.
|
|
94
|
-
* Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
95
|
-
* for more details on possible activity types (constants starting with `ACTIVITY_TYPE_`).
|
|
96
|
-
* @property {?number|string} display - The display identifier to launch the activity into.
|
|
97
|
-
* @property {?string} intent - The name of the activity intent to start, for example
|
|
98
|
-
* `com.some.package.name/.YourServiceSubClassName`
|
|
99
|
-
* @property {?string} action - Action name
|
|
100
|
-
* @property {?string} package - Package name
|
|
101
|
-
* @property {?string} uri - Unified resource identifier
|
|
102
|
-
* @property {?string} mimeType - Mime type
|
|
103
|
-
* @property {?string} identifier - Optional identifier
|
|
104
|
-
* @property {?string|Array<string>} categories - One or more category names
|
|
105
|
-
* @property {?string} component - Component name
|
|
106
|
-
* @property {Array<string|Array<string>>} extras - Optional intent arguments. Must be represented
|
|
107
|
-
* as array of arrays, where each subarray item contains two or three string items:
|
|
108
|
-
* value type, key name and the value itself.
|
|
109
|
-
* Supported value types are:
|
|
110
|
-
* - s: string. Value must be a valid string
|
|
111
|
-
* - sn: null. Value is ignored for this type
|
|
112
|
-
* - z: boolean. Value must be either `true` or `false`
|
|
113
|
-
* - i: integer. Value must be a valid 4-byte integer number
|
|
114
|
-
* - l: long. Value must be a valid 8-byte long number
|
|
115
|
-
* - f: float: Value must be a valid float number
|
|
116
|
-
* - u: uri. Value must be a valid uniform resource identifier string
|
|
117
|
-
* - cn: component name. Value must be a valid component name string
|
|
118
|
-
* - ia: Integer[]. Value must be a string of comma-separated integers
|
|
119
|
-
* - ial: List<Integer>. Value must be a string of comma-separated integers
|
|
120
|
-
* - la: Long[]. Value must be a string of comma-separated long numbers
|
|
121
|
-
* - lal: List<Long>. Value must be a string of comma-separated long numbers
|
|
122
|
-
* - fa: Float[]. Value must be a string of comma-separated float numbers
|
|
123
|
-
* - fal: List<Float>. Value must be a string of comma-separated float numbers
|
|
124
|
-
* - sa: String[]. Value must be comma-separated strings. To embed a comma into a string,
|
|
125
|
-
* escape it using "\,"
|
|
126
|
-
* - sal: List<String>. Value must be comma-separated strings. To embed a comma into a string,
|
|
127
|
-
* escape it using "\,"
|
|
128
|
-
* For example: [['s', 'varName1', 'My String1'], ['s', 'varName2', 'My String2'], ['ia', 'arrName', '1,2,3,4']]
|
|
129
|
-
* @property {?string} flags - Intent startup-specific flags as a hexadecimal string.
|
|
130
|
-
* See https://developer.android.com/reference/android/content/Intent.html
|
|
131
|
-
* for the list of available flag values (constants starting with FLAG_ACTIVITY_).
|
|
132
|
-
* Flag values could be merged using the logical 'or' operation.
|
|
133
|
-
* For example, 0x10200000 is the combination of two flags:
|
|
134
|
-
* 0x10000000 `FLAG_ACTIVITY_NEW_TASK` | 0x00200000 `FLAG_ACTIVITY_RESET_TASK_IF_NEEDED`
|
|
101
|
+
* @type {import('./mixins').ActivityMixin & ThisType<import('../driver').AndroidDriver>}
|
|
102
|
+
* @satisfies {import('@appium/types').ExternalDriver}
|
|
135
103
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
cmd.push(...(parseIntentSpec(opts)));
|
|
212
|
-
return await this.adb.shell(cmd);
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* @typedef {Object} StartServiceOptions
|
|
216
|
-
* @property {?string|number} user ['current'] - The user ID for which the service is started.
|
|
217
|
-
* The `current` user id is used by default
|
|
218
|
-
* @property {?boolean} foreground [false] - Set it to `true` if your service must be
|
|
219
|
-
* started as foreground service. This option is ignored if the API level of the
|
|
220
|
-
* device under test is below 26 (Android 8).
|
|
221
|
-
* @property {?string} intent - The name of the service intent to start, for example
|
|
222
|
-
* `com.some.package.name/.YourServiceSubClassName`.
|
|
223
|
-
* @property {?string} action - Action name
|
|
224
|
-
* @property {?string} uri - Unified resource identifier
|
|
225
|
-
* @property {?string} mimeType - Mime type
|
|
226
|
-
* @property {?string} identifier - Optional identifier
|
|
227
|
-
* @property {?string|Array<string>} categories - One or more category names
|
|
228
|
-
* @property {?string} component - Component name
|
|
229
|
-
* @property {?string} package - Package name
|
|
230
|
-
* @property {Array<Array<string>>} extras - Optional intent arguments.
|
|
231
|
-
* See above for the detailed description.
|
|
232
|
-
* @property {?string} flags - Intent startup-specific flags as a hexadecimal string.
|
|
233
|
-
* See above for the detailed description.
|
|
234
|
-
*/
|
|
235
|
-
/**
|
|
236
|
-
* Starts the given service intent.
|
|
237
|
-
*
|
|
238
|
-
* @param {StartServiceOptions} opts
|
|
239
|
-
* @returns {string} The command output
|
|
240
|
-
* @throws {Error} If there was a failure while starting the service
|
|
241
|
-
* or required options are missing
|
|
242
|
-
*/
|
|
243
|
-
commands.mobileStartService = async function mobileStartService(opts = {}) {
|
|
244
|
-
const { user, foreground, } = opts;
|
|
245
|
-
const cmd = ['am'];
|
|
246
|
-
if (await this.adb.getApiLevel() < API_LEVEL_ANDROID_8) {
|
|
247
|
-
cmd.push('startservice');
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
cmd.push(foreground ? 'start-foreground-service' : 'start-service');
|
|
251
|
-
}
|
|
252
|
-
if (!lodash_1.default.isNil(user)) {
|
|
253
|
-
cmd.push('--user', user);
|
|
254
|
-
}
|
|
255
|
-
cmd.push(...(parseIntentSpec(opts)));
|
|
256
|
-
return await this.adb.shell(cmd);
|
|
104
|
+
const ActivityMixin = {
|
|
105
|
+
async mobileStartActivity(opts = {}) {
|
|
106
|
+
const { user, wait, stop, windowingMode, activityType, display } = opts;
|
|
107
|
+
const cmd = [
|
|
108
|
+
'am',
|
|
109
|
+
(await /** @type {ADB} */ (this.adb).getApiLevel()) < API_LEVEL_ANDROID_8
|
|
110
|
+
? 'start'
|
|
111
|
+
: 'start-activity',
|
|
112
|
+
];
|
|
113
|
+
if (!lodash_1.default.isNil(user)) {
|
|
114
|
+
cmd.push('--user', String(user));
|
|
115
|
+
}
|
|
116
|
+
if (wait) {
|
|
117
|
+
cmd.push('-W');
|
|
118
|
+
}
|
|
119
|
+
if (stop) {
|
|
120
|
+
cmd.push('-S');
|
|
121
|
+
}
|
|
122
|
+
if (!lodash_1.default.isNil(windowingMode)) {
|
|
123
|
+
cmd.push('--windowingMode', String(windowingMode));
|
|
124
|
+
}
|
|
125
|
+
if (!lodash_1.default.isNil(activityType)) {
|
|
126
|
+
cmd.push('--activityType', String(activityType));
|
|
127
|
+
}
|
|
128
|
+
if (!lodash_1.default.isNil(display)) {
|
|
129
|
+
cmd.push('--display', String(display));
|
|
130
|
+
}
|
|
131
|
+
cmd.push(...parseIntentSpec(opts));
|
|
132
|
+
return await /** @type {ADB} */ (this.adb).shell(cmd);
|
|
133
|
+
},
|
|
134
|
+
async mobileBroadcast(opts = {}) {
|
|
135
|
+
const { user, receiverPermission, allowBackgroundActivityStarts } = opts;
|
|
136
|
+
const cmd = ['am', 'broadcast'];
|
|
137
|
+
if (!lodash_1.default.isNil(user)) {
|
|
138
|
+
cmd.push('--user', String(user));
|
|
139
|
+
}
|
|
140
|
+
if (receiverPermission) {
|
|
141
|
+
cmd.push('--receiver-permission', receiverPermission);
|
|
142
|
+
}
|
|
143
|
+
if (allowBackgroundActivityStarts) {
|
|
144
|
+
cmd.push('--allow-background-activity-starts');
|
|
145
|
+
}
|
|
146
|
+
cmd.push(...parseIntentSpec(opts));
|
|
147
|
+
return await /** @type {ADB} */ (this.adb).shell(cmd);
|
|
148
|
+
},
|
|
149
|
+
async mobileStartService(opts = {}) {
|
|
150
|
+
const { user, foreground } = opts;
|
|
151
|
+
const cmd = ['am'];
|
|
152
|
+
if ((await /** @type {ADB} */ (this.adb).getApiLevel()) < API_LEVEL_ANDROID_8) {
|
|
153
|
+
cmd.push('startservice');
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
cmd.push(foreground ? 'start-foreground-service' : 'start-service');
|
|
157
|
+
}
|
|
158
|
+
if (!lodash_1.default.isNil(user)) {
|
|
159
|
+
cmd.push('--user', String(user));
|
|
160
|
+
}
|
|
161
|
+
cmd.push(...parseIntentSpec(opts));
|
|
162
|
+
return await /** @type {ADB} */ (this.adb).shell(cmd);
|
|
163
|
+
},
|
|
164
|
+
async mobileStopService(opts = {}) {
|
|
165
|
+
const { user } = opts;
|
|
166
|
+
const cmd = [
|
|
167
|
+
'am',
|
|
168
|
+
(await /** @type {ADB} */ (this.adb).getApiLevel()) < API_LEVEL_ANDROID_8
|
|
169
|
+
? 'stopservice'
|
|
170
|
+
: 'stop-service',
|
|
171
|
+
];
|
|
172
|
+
if (!lodash_1.default.isNil(user)) {
|
|
173
|
+
cmd.push('--user', String(user));
|
|
174
|
+
}
|
|
175
|
+
cmd.push(...parseIntentSpec(opts));
|
|
176
|
+
return await /** @type {ADB} */ (this.adb).shell(cmd);
|
|
177
|
+
},
|
|
257
178
|
};
|
|
179
|
+
(0, mixins_1.mixin)(ActivityMixin);
|
|
180
|
+
exports.default = ActivityMixin;
|
|
258
181
|
/**
|
|
259
|
-
* @typedef {
|
|
260
|
-
* @property {string|number} user ['current'] - The user ID for which the service is running.
|
|
261
|
-
* The `current` user id is used by default
|
|
262
|
-
* @property {?string} intent - The name of the service intent to stop, for example
|
|
263
|
-
* `com.some.package.name/.YourServiceSubClassName`.
|
|
264
|
-
* @property {?string} action - Action name
|
|
265
|
-
* @property {?string} uri - Unified resource identifier
|
|
266
|
-
* @property {?string} mimeType - Mime type
|
|
267
|
-
* @property {?string} identifier - Optional identifier
|
|
268
|
-
* @property {?string|Array<string>} categories - One or more category names
|
|
269
|
-
* @property {?string} component - Component name
|
|
270
|
-
* @property {?string} package - Package name
|
|
271
|
-
* @property {Array<Array<string>>} extras - Optional intent arguments.
|
|
272
|
-
* See above for the detailed description.
|
|
273
|
-
* @property {?string} flags - See above for the detailed description.
|
|
274
|
-
*/
|
|
275
|
-
/**
|
|
276
|
-
* Stops the given service intent.
|
|
277
|
-
*
|
|
278
|
-
* @param {StopServiceOptions} opts
|
|
279
|
-
* @returns {string} The command output
|
|
280
|
-
* @throws {Error} If there was a failure while stopping the service
|
|
281
|
-
* or required options are missing
|
|
182
|
+
* @typedef {import('appium-adb').ADB} ADB
|
|
282
183
|
*/
|
|
283
|
-
commands.mobileStopService = async function mobileStopService(opts = {}) {
|
|
284
|
-
const { user, } = opts;
|
|
285
|
-
const cmd = [
|
|
286
|
-
'am',
|
|
287
|
-
(await this.adb.getApiLevel() < API_LEVEL_ANDROID_8) ? 'stopservice' : 'stop-service'
|
|
288
|
-
];
|
|
289
|
-
if (!lodash_1.default.isNil(user)) {
|
|
290
|
-
cmd.push('--user', user);
|
|
291
|
-
}
|
|
292
|
-
cmd.push(...(parseIntentSpec(opts)));
|
|
293
|
-
return await this.adb.shell(cmd);
|
|
294
|
-
};
|
|
295
|
-
exports.default = commands;
|
|
296
184
|
//# sourceMappingURL=intent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":";AAAA,YAAY;;;;;AAEZ,qCAA+B;AAC/B,oDAAuB;AACvB,0CAAqC;AAErC,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAC/B,MAAM,qBAAqB,GAAG;IAC5B,GAAG;IACH,iBAAiB;IACjB,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;CACN,CAAC;AACF,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B;;;;GAIG;AACH,SAAS,eAAe,CAAC,IAAI,GAAG,EAAE;IAChC,MAAM,EAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC;IAC/F,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,IAAI,MA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AE;YAClB,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;SAClC;QACD,GAAG,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;QACnC,OAAO,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,IAAI,GAAG,EAAE;QAC/B,MAAM,EAAC,IAAI,EAAC,GAAG,IAAI,CAAC;QACpB,MAAM,GAAG,GAAG;YACV,IAAI;YACJ,CAAC,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,GAAG,mBAAmB;gBACvE,CAAC,CAAC,aAAa;gBACf,CAAC,CAAC,cAAc;SACnB,CAAC;QACF,IAAI,CAAC,gBAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;YAClB,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;SAClC;QACD,GAAG,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;QACnC,OAAO,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;CACF,CAAC;AAEF,IAAA,cAAK,EAAC,aAAa,CAAC,CAAC;AAErB,kBAAe,aAAa,CAAC;AAE7B;;GAEG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export default
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export default KeyboardMixin;
|
|
2
|
+
/**
|
|
3
|
+
* @type {import('./mixins').KeyboardMixin & ThisType<import('../driver').AndroidDriver>}
|
|
4
|
+
* @satisfies {import('@appium/types').ExternalDriver}
|
|
5
|
+
*/
|
|
6
|
+
declare const KeyboardMixin: import('./mixins').KeyboardMixin & ThisType<import('../driver').AndroidDriver>;
|
|
6
7
|
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":";AAIA;;;GAGG;AACH,6BAHU,OAAO,UAAU,EAAE,aAAa,GAAG,SAAS,OAAO,WAAW,EAAE,aAAa,CAAC,CActF"}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// @ts-check
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const mixins_1 = require("./mixins");
|
|
5
|
+
/**
|
|
6
|
+
* @type {import('./mixins').KeyboardMixin & ThisType<import('../driver').AndroidDriver>}
|
|
7
|
+
* @satisfies {import('@appium/types').ExternalDriver}
|
|
8
|
+
*/
|
|
9
|
+
const KeyboardMixin = {
|
|
10
|
+
async hideKeyboard() {
|
|
11
|
+
return await /** @type {import('appium-adb').ADB} */ (this.adb).hideKeyboard();
|
|
12
|
+
},
|
|
13
|
+
async isKeyboardShown() {
|
|
14
|
+
const { isKeyboardShown } = await /** @type {import('appium-adb').ADB} */ (this.adb).isSoftKeyboardPresent();
|
|
15
|
+
return isKeyboardShown;
|
|
16
|
+
},
|
|
6
17
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return isKeyboardShown;
|
|
10
|
-
};
|
|
11
|
-
exports.default = commands;
|
|
18
|
+
(0, mixins_1.mixin)(KeyboardMixin);
|
|
19
|
+
exports.default = KeyboardMixin;
|
|
12
20
|
//# sourceMappingURL=keyboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":";AAAA,YAAY;;AAEZ,qCAA+B;AAE/B;;;GAGG;AACH,MAAM,aAAa,GAAG;IACpB,KAAK,CAAC,YAAY;QAChB,OAAO,MAAM,uCAAuC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,CAAC;IACjF,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,MAAM,EAAC,eAAe,EAAC,GAAG,MAAM,uCAAuC,CAAC,CACtE,IAAI,CAAC,GAAG,CACT,CAAC,qBAAqB,EAAE,CAAC;QAC1B,OAAO,eAAe,CAAC;IACzB,CAAC;CACF,CAAC;AAEF,IAAA,cAAK,EAAC,aAAa,CAAC,CAAC;AAErB,kBAAe,aAAa,CAAC"}
|
|
@@ -1,45 +1,8 @@
|
|
|
1
|
-
export default
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* Each connected websocket listener will receive logcat log lines
|
|
9
|
-
* as soon as they are visible to Appium.
|
|
10
|
-
*/
|
|
11
|
-
function mobileStartLogsBroadcast(): Promise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* Stops the previously started logcat broadcasting wesocket server.
|
|
14
|
-
* This method will return immediately if no server is running.
|
|
15
|
-
*/
|
|
16
|
-
function mobileStopLogsBroadcast(): Promise<void>;
|
|
17
|
-
function getLogTypes(): Promise<any>;
|
|
18
|
-
function getLog(logType: any): Promise<any>;
|
|
19
|
-
}
|
|
20
|
-
export let helpers: {};
|
|
21
|
-
declare namespace extensions {
|
|
22
|
-
namespace supportedLogTypes {
|
|
23
|
-
namespace logcat {
|
|
24
|
-
let description: string;
|
|
25
|
-
function getter(self: any): Promise<any>;
|
|
26
|
-
}
|
|
27
|
-
namespace bugreport {
|
|
28
|
-
let description_1: string;
|
|
29
|
-
export { description_1 as description };
|
|
30
|
-
export function getter_1(self: any): Promise<any>;
|
|
31
|
-
export { getter_1 as getter };
|
|
32
|
-
}
|
|
33
|
-
namespace server {
|
|
34
|
-
let description_2: string;
|
|
35
|
-
export { description_2 as description };
|
|
36
|
-
export function getter_2(self: any): {
|
|
37
|
-
timestamp: any;
|
|
38
|
-
level: any;
|
|
39
|
-
message: any;
|
|
40
|
-
}[];
|
|
41
|
-
export { getter_2 as getter };
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
export default LogMixin;
|
|
2
|
+
export type ADB = import('appium-adb').ADB;
|
|
3
|
+
/**
|
|
4
|
+
* @type {import('./mixins').LogMixin & ThisType<import('../driver').AndroidDriver>}
|
|
5
|
+
* @satisfies {import('@appium/types').ExternalDriver}
|
|
6
|
+
*/
|
|
7
|
+
declare const LogMixin: import('./mixins').LogMixin & ThisType<import('../driver').AndroidDriver>;
|
|
45
8
|
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../lib/commands/log.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../lib/commands/log.js"],"names":[],"mappings":";kBAsMa,OAAO,YAAY,EAAE,GAAG;AAtKrC;;;GAGG;AACH,wBAHU,OAAO,UAAU,EAAE,QAAQ,GAAG,SAAS,OAAO,WAAW,EAAE,aAAa,CAAC,CA8JjF"}
|