appium-android-driver 9.15.1 → 10.0.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 +115 -0
- package/build/lib/commands/app-management.d.ts +39 -26
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +59 -42
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/appearance.d.ts +10 -4
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js +10 -7
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/bluetooth.d.ts +2 -2
- package/build/lib/commands/bluetooth.d.ts.map +1 -1
- package/build/lib/commands/bluetooth.js +2 -3
- package/build/lib/commands/bluetooth.js.map +1 -1
- package/build/lib/commands/context/exports.d.ts +2 -2
- package/build/lib/commands/context/exports.d.ts.map +1 -1
- package/build/lib/commands/context/exports.js +3 -3
- package/build/lib/commands/context/exports.js.map +1 -1
- package/build/lib/commands/device/emulator-actions.d.ts +25 -18
- package/build/lib/commands/device/emulator-actions.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-actions.js +38 -40
- package/build/lib/commands/device/emulator-actions.js.map +1 -1
- package/build/lib/commands/device/emulator-console.d.ts +9 -2
- package/build/lib/commands/device/emulator-console.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-console.js +9 -3
- package/build/lib/commands/device/emulator-console.js.map +1 -1
- package/build/lib/commands/deviceidle.d.ts +3 -2
- package/build/lib/commands/deviceidle.d.ts.map +1 -1
- package/build/lib/commands/deviceidle.js +3 -3
- package/build/lib/commands/deviceidle.js.map +1 -1
- package/build/lib/commands/execute.d.ts +6 -15
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +36 -93
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +13 -24
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js +13 -38
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +9 -4
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +14 -6
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/image-injection.d.ts +2 -2
- package/build/lib/commands/image-injection.d.ts.map +1 -1
- package/build/lib/commands/image-injection.js +2 -3
- package/build/lib/commands/image-injection.js.map +1 -1
- package/build/lib/commands/intent.d.ts +70 -8
- package/build/lib/commands/intent.d.ts.map +1 -1
- package/build/lib/commands/intent.js +118 -16
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +2 -2
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +2 -4
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/lock/exports.d.ts +12 -8
- package/build/lib/commands/lock/exports.d.ts.map +1 -1
- package/build/lib/commands/lock/exports.js +12 -13
- package/build/lib/commands/lock/exports.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +41 -4
- package/build/lib/commands/media-projection.d.ts.map +1 -1
- package/build/lib/commands/media-projection.js +52 -11
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/memory.d.ts +4 -2
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +4 -3
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/network.d.ts +10 -4
- package/build/lib/commands/network.d.ts.map +1 -1
- package/build/lib/commands/network.js +17 -14
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/nfc.d.ts +2 -2
- package/build/lib/commands/nfc.d.ts.map +1 -1
- package/build/lib/commands/nfc.js +2 -3
- package/build/lib/commands/nfc.js.map +1 -1
- package/build/lib/commands/performance.d.ts +3 -2
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +3 -4
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +23 -5
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +27 -8
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/shell.d.ts +3 -9
- package/build/lib/commands/shell.d.ts.map +1 -1
- package/build/lib/commands/shell.js +3 -10
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +56 -6
- package/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js +28 -4
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +6 -2
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +7 -7
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/time.d.ts +2 -2
- package/build/lib/commands/time.d.ts.map +1 -1
- package/build/lib/commands/time.js +3 -3
- package/build/lib/commands/time.js.map +1 -1
- package/build/lib/commands/types.d.ts +0 -588
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/driver.d.ts +364 -12
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +2 -8
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +361 -0
- package/build/lib/execute-method-map.d.ts.map +1 -0
- package/build/lib/execute-method-map.js +437 -0
- package/build/lib/execute-method-map.js.map +1 -0
- package/lib/commands/app-management.js +68 -42
- package/lib/commands/appearance.js +10 -8
- package/lib/commands/bluetooth.js +2 -3
- package/lib/commands/context/exports.js +3 -3
- package/lib/commands/device/emulator-actions.js +28 -30
- package/lib/commands/device/emulator-console.js +9 -4
- package/lib/commands/deviceidle.js +3 -4
- package/lib/commands/execute.js +42 -124
- package/lib/commands/file-actions.js +13 -38
- package/lib/commands/geolocation.js +14 -6
- package/lib/commands/image-injection.js +2 -3
- package/lib/commands/intent.js +174 -16
- package/lib/commands/keyboard.js +2 -4
- package/lib/commands/lock/exports.js +12 -13
- package/lib/commands/media-projection.js +62 -11
- package/lib/commands/memory.js +4 -4
- package/lib/commands/network.js +14 -10
- package/lib/commands/nfc.js +2 -3
- package/lib/commands/performance.js +3 -4
- package/lib/commands/permissions.js +33 -14
- package/lib/commands/{shell.js → shell.ts} +8 -11
- package/lib/commands/streamscreen.js +39 -15
- package/lib/commands/system-bars.js +7 -9
- package/lib/commands/time.js +3 -3
- package/lib/commands/types.ts +0 -646
- package/lib/driver.ts +4 -16
- package/lib/execute-method-map.ts +464 -0
- package/package.json +1 -1
|
@@ -33,27 +33,89 @@ export class startActivity {
|
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* @this {import('../driver').AndroidDriver}
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {boolean} [wait] Set it to `true` if you want to block the method call
|
|
37
|
+
* until the activity manager's process returns the control to the system.
|
|
38
|
+
* false by default.
|
|
39
|
+
* @param {boolean} [stop] Set it to `true` to force stop the target
|
|
40
|
+
* app before starting the activity
|
|
41
|
+
* false by default.
|
|
42
|
+
* @param {string | number} [windowingMode] The windowing mode to launch the activity into.
|
|
43
|
+
* Check
|
|
44
|
+
* https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
45
|
+
* for more details on possible windowing modes (constants starting with
|
|
46
|
+
* `WINDOWING_MODE_`).
|
|
47
|
+
* @param {string | number} [activityType] The activity type to launch the activity as.
|
|
48
|
+
* Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
49
|
+
* for more details on possible activity types (constants starting with `ACTIVITY_TYPE_`).
|
|
50
|
+
* @param {number | string} [display] The display identifier to launch the activity into.
|
|
51
|
+
* @param {string} [user]
|
|
52
|
+
* @param {string} [intent]
|
|
53
|
+
* @param {string} [action]
|
|
54
|
+
* @param {string} [pkg]
|
|
55
|
+
* @param {string} [uri]
|
|
56
|
+
* @param {string} [mimeType]
|
|
57
|
+
* @param {string} [identifier]
|
|
58
|
+
* @param {string} [component]
|
|
59
|
+
* @param {string | string[]} [categories]
|
|
60
|
+
* @param {string[][]} [extras]
|
|
61
|
+
* @param {string} [flags]
|
|
37
62
|
* @returns {Promise<string>}
|
|
38
63
|
*/
|
|
39
|
-
export function mobileStartActivity(this: import("../driver").AndroidDriver,
|
|
64
|
+
export function mobileStartActivity(this: import("../driver").AndroidDriver, wait?: boolean, stop?: boolean, windowingMode?: string | number, activityType?: string | number, display?: number | string, user?: string, intent?: string, action?: string, pkg?: string, uri?: string, mimeType?: string, identifier?: string, component?: string, categories?: string | string[], extras?: string[][], flags?: string): Promise<string>;
|
|
40
65
|
/**
|
|
41
66
|
* @this {import('../driver').AndroidDriver}
|
|
42
|
-
* @param {
|
|
67
|
+
* @param {string | number} [user] The user ID for which the broadcast is sent.
|
|
68
|
+
* The `current` alias assumes the current user ID.
|
|
69
|
+
* `all` by default.
|
|
70
|
+
* @param {string} [receiverPermission] Require receiver to hold the given permission.
|
|
71
|
+
* @param {boolean} [allowBackgroundActivityStarts] Whether the receiver may start activities even if in the background.
|
|
72
|
+
* @param {string} [intent]
|
|
73
|
+
* @param {string} [action]
|
|
74
|
+
* @param {string} [pkg]
|
|
75
|
+
* @param {string} [uri]
|
|
76
|
+
* @param {string} [mimeType]
|
|
77
|
+
* @param {string} [identifier]
|
|
78
|
+
* @param {string} [component]
|
|
79
|
+
* @param {string | string[]} [categories]
|
|
80
|
+
* @param {string[][]} [extras]
|
|
81
|
+
* @param {string} [flags]
|
|
43
82
|
* @returns {Promise<string>}
|
|
44
83
|
*/
|
|
45
|
-
export function mobileBroadcast(this: import("../driver").AndroidDriver,
|
|
84
|
+
export function mobileBroadcast(this: import("../driver").AndroidDriver, receiverPermission?: string, allowBackgroundActivityStarts?: boolean, user?: string | number, intent?: string, action?: string, pkg?: string, uri?: string, mimeType?: string, identifier?: string, component?: string, categories?: string | string[], extras?: string[][], flags?: string): Promise<string>;
|
|
46
85
|
/**
|
|
47
86
|
* @this {import('../driver').AndroidDriver}
|
|
48
|
-
* @param {
|
|
87
|
+
* @param {boolean} [foreground] Set it to `true` if your service must be started as foreground service.
|
|
88
|
+
* This option is ignored if the API level of the device under test is below
|
|
89
|
+
* 26 (Android 8).
|
|
90
|
+
* @param {string} [user]
|
|
91
|
+
* @param {string} [intent]
|
|
92
|
+
* @param {string} [action]
|
|
93
|
+
* @param {string} [pkg]
|
|
94
|
+
* @param {string} [uri]
|
|
95
|
+
* @param {string} [mimeType]
|
|
96
|
+
* @param {string} [identifier]
|
|
97
|
+
* @param {string} [component]
|
|
98
|
+
* @param {string | string[]} [categories]
|
|
99
|
+
* @param {string[][]} [extras]
|
|
100
|
+
* @param {string} [flags]
|
|
49
101
|
* @returns {Promise<string>}
|
|
50
102
|
*/
|
|
51
|
-
export function mobileStartService(this: import("../driver").AndroidDriver,
|
|
103
|
+
export function mobileStartService(this: import("../driver").AndroidDriver, foreground?: boolean, user?: string, intent?: string, action?: string, pkg?: string, uri?: string, mimeType?: string, identifier?: string, component?: string, categories?: string | string[], extras?: string[][], flags?: string): Promise<string>;
|
|
52
104
|
/**
|
|
53
105
|
* @this {import('../driver').AndroidDriver}
|
|
54
|
-
* @param {
|
|
106
|
+
* @param {string} [user]
|
|
107
|
+
* @param {string} [intent]
|
|
108
|
+
* @param {string} [action]
|
|
109
|
+
* @param {string} [pkg]
|
|
110
|
+
* @param {string} [uri]
|
|
111
|
+
* @param {string} [mimeType]
|
|
112
|
+
* @param {string} [identifier]
|
|
113
|
+
* @param {string} [component]
|
|
114
|
+
* @param {string | string[]} [categories]
|
|
115
|
+
* @param {string[][]} [extras]
|
|
116
|
+
* @param {string} [flags]
|
|
55
117
|
* @returns {Promise<string>}
|
|
56
118
|
*/
|
|
57
|
-
export function mobileStopService(this: import("../driver").AndroidDriver,
|
|
119
|
+
export function mobileStopService(this: import("../driver").AndroidDriver, user?: string, intent?: string, action?: string, pkg?: string, uri?: string, mimeType?: string, identifier?: string, component?: string, categories?: string | string[], extras?: string[][], flags?: string): Promise<string>;
|
|
58
120
|
export type ADB = import("appium-adb").ADB;
|
|
59
121
|
//# sourceMappingURL=intent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;GAaG;AACH,mFAXW,MAAM,eACN,MAAM,mBACN,MAAM,oBACN,MAAM,iBACN,MAAM,mBACN,MAAM,gBACN,MAAM,4BACN,MAAM,uBACN,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CAoCzB;;IAhDD;;;;;;;;;;;;;OAaG;IACH,iEAXW,MAAM,eACN,MAAM,mBACN,MAAM,oBACN,MAAM,iBACN,MAAM,mBACN,MAAM,gBACN,MAAM,4BACN,MAAM,uBACN,OAAO,EAqCjB;IAHC,0DAAyD;;AAK3D
|
|
1
|
+
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;GAaG;AACH,mFAXW,MAAM,eACN,MAAM,mBACN,MAAM,oBACN,MAAM,iBACN,MAAM,mBACN,MAAM,gBACN,MAAM,4BACN,MAAM,uBACN,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CAoCzB;;IAhDD;;;;;;;;;;;;;OAaG;IACH,iEAXW,MAAM,eACN,MAAM,mBACN,MAAM,oBACN,MAAM,iBACN,MAAM,mBACN,MAAM,gBACN,MAAM,4BACN,MAAM,uBACN,OAAO,EAqCjB;IAHC,0DAAyD;;AAK3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,oFA5BW,OAAO,SAGP,OAAO,kBAGP,MAAM,GAAG,MAAM,iBAKf,MAAM,GAAG,MAAM,YAGf,MAAM,GAAG,MAAM,SACf,MAAM,WACN,MAAM,WACN,MAAM,QACN,MAAM,QACN,MAAM,aACN,MAAM,eACN,MAAM,cACN,MAAM,eACN,MAAM,GAAG,MAAM,EAAE,WACjB,MAAM,EAAE,EAAE,UACV,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAuD3B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,8FAdW,MAAM,kCACN,OAAO,SAJP,MAAM,GAAG,MAAM,WAKf,MAAM,WACN,MAAM,QACN,MAAM,QACN,MAAM,aACN,MAAM,eACN,MAAM,cACN,MAAM,eACN,MAAM,GAAG,MAAM,EAAE,WACjB,MAAM,EAAE,EAAE,UACV,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAwC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,yFAhBW,OAAO,SAGP,MAAM,WACN,MAAM,WACN,MAAM,QACN,MAAM,QACN,MAAM,aACN,MAAM,eACN,MAAM,cACN,MAAM,eACN,MAAM,GAAG,MAAM,EAAE,WACjB,MAAM,EAAE,EAAE,UACV,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAsC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,kFAbW,MAAM,WACN,MAAM,WACN,MAAM,QACN,MAAM,QACN,MAAM,aACN,MAAM,eACN,MAAM,cACN,MAAM,eACN,MAAM,GAAG,MAAM,EAAE,WACjB,MAAM,EAAE,EAAE,UACV,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CA2C3B;kBAiFY,OAAO,YAAY,EAAE,GAAG"}
|
|
@@ -70,11 +70,35 @@ async function startActivity(appPackage, appActivity, appWaitPackage, appWaitAct
|
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* @this {import('../driver').AndroidDriver}
|
|
73
|
-
* @param {
|
|
73
|
+
* @param {boolean} [wait] Set it to `true` if you want to block the method call
|
|
74
|
+
* until the activity manager's process returns the control to the system.
|
|
75
|
+
* false by default.
|
|
76
|
+
* @param {boolean} [stop] Set it to `true` to force stop the target
|
|
77
|
+
* app before starting the activity
|
|
78
|
+
* false by default.
|
|
79
|
+
* @param {string | number} [windowingMode] The windowing mode to launch the activity into.
|
|
80
|
+
* Check
|
|
81
|
+
* https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
82
|
+
* for more details on possible windowing modes (constants starting with
|
|
83
|
+
* `WINDOWING_MODE_`).
|
|
84
|
+
* @param {string | number} [activityType] The activity type to launch the activity as.
|
|
85
|
+
* Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
86
|
+
* for more details on possible activity types (constants starting with `ACTIVITY_TYPE_`).
|
|
87
|
+
* @param {number | string} [display] The display identifier to launch the activity into.
|
|
88
|
+
* @param {string} [user]
|
|
89
|
+
* @param {string} [intent]
|
|
90
|
+
* @param {string} [action]
|
|
91
|
+
* @param {string} [pkg]
|
|
92
|
+
* @param {string} [uri]
|
|
93
|
+
* @param {string} [mimeType]
|
|
94
|
+
* @param {string} [identifier]
|
|
95
|
+
* @param {string} [component]
|
|
96
|
+
* @param {string | string[]} [categories]
|
|
97
|
+
* @param {string[][]} [extras]
|
|
98
|
+
* @param {string} [flags]
|
|
74
99
|
* @returns {Promise<string>}
|
|
75
100
|
*/
|
|
76
|
-
async function mobileStartActivity(
|
|
77
|
-
const { user, wait, stop, windowingMode, activityType, display } = opts;
|
|
101
|
+
async function mobileStartActivity(wait, stop, windowingMode, activityType, display, user, intent, action, pkg, uri, mimeType, identifier, component, categories, extras, flags) {
|
|
78
102
|
const cmd = [
|
|
79
103
|
'am',
|
|
80
104
|
(await this.adb.getApiLevel()) < API_LEVEL_ANDROID_8 ? 'start' : 'start-activity',
|
|
@@ -97,16 +121,40 @@ async function mobileStartActivity(opts = {}) {
|
|
|
97
121
|
if (!lodash_1.default.isNil(display)) {
|
|
98
122
|
cmd.push('--display', String(display));
|
|
99
123
|
}
|
|
100
|
-
cmd.push(...parseIntentSpec(
|
|
124
|
+
cmd.push(...parseIntentSpec({
|
|
125
|
+
intent,
|
|
126
|
+
action,
|
|
127
|
+
package: pkg,
|
|
128
|
+
uri,
|
|
129
|
+
mimeType,
|
|
130
|
+
identifier,
|
|
131
|
+
component,
|
|
132
|
+
categories,
|
|
133
|
+
extras,
|
|
134
|
+
flags,
|
|
135
|
+
}));
|
|
101
136
|
return await this.adb.shell(cmd);
|
|
102
137
|
}
|
|
103
138
|
/**
|
|
104
139
|
* @this {import('../driver').AndroidDriver}
|
|
105
|
-
* @param {
|
|
140
|
+
* @param {string | number} [user] The user ID for which the broadcast is sent.
|
|
141
|
+
* The `current` alias assumes the current user ID.
|
|
142
|
+
* `all` by default.
|
|
143
|
+
* @param {string} [receiverPermission] Require receiver to hold the given permission.
|
|
144
|
+
* @param {boolean} [allowBackgroundActivityStarts] Whether the receiver may start activities even if in the background.
|
|
145
|
+
* @param {string} [intent]
|
|
146
|
+
* @param {string} [action]
|
|
147
|
+
* @param {string} [pkg]
|
|
148
|
+
* @param {string} [uri]
|
|
149
|
+
* @param {string} [mimeType]
|
|
150
|
+
* @param {string} [identifier]
|
|
151
|
+
* @param {string} [component]
|
|
152
|
+
* @param {string | string[]} [categories]
|
|
153
|
+
* @param {string[][]} [extras]
|
|
154
|
+
* @param {string} [flags]
|
|
106
155
|
* @returns {Promise<string>}
|
|
107
156
|
*/
|
|
108
|
-
async function mobileBroadcast(
|
|
109
|
-
const { user, receiverPermission, allowBackgroundActivityStarts } = opts;
|
|
157
|
+
async function mobileBroadcast(receiverPermission, allowBackgroundActivityStarts, user, intent, action, pkg, uri, mimeType, identifier, component, categories, extras, flags) {
|
|
110
158
|
const cmd = ['am', 'broadcast'];
|
|
111
159
|
if (!lodash_1.default.isNil(user)) {
|
|
112
160
|
cmd.push('--user', String(user));
|
|
@@ -117,16 +165,39 @@ async function mobileBroadcast(opts = {}) {
|
|
|
117
165
|
if (allowBackgroundActivityStarts) {
|
|
118
166
|
cmd.push('--allow-background-activity-starts');
|
|
119
167
|
}
|
|
120
|
-
cmd.push(...parseIntentSpec(
|
|
168
|
+
cmd.push(...parseIntentSpec({
|
|
169
|
+
intent,
|
|
170
|
+
action,
|
|
171
|
+
package: pkg,
|
|
172
|
+
uri,
|
|
173
|
+
mimeType,
|
|
174
|
+
identifier,
|
|
175
|
+
component,
|
|
176
|
+
categories,
|
|
177
|
+
extras,
|
|
178
|
+
flags,
|
|
179
|
+
}));
|
|
121
180
|
return await this.adb.shell(cmd);
|
|
122
181
|
}
|
|
123
182
|
/**
|
|
124
183
|
* @this {import('../driver').AndroidDriver}
|
|
125
|
-
* @param {
|
|
184
|
+
* @param {boolean} [foreground] Set it to `true` if your service must be started as foreground service.
|
|
185
|
+
* This option is ignored if the API level of the device under test is below
|
|
186
|
+
* 26 (Android 8).
|
|
187
|
+
* @param {string} [user]
|
|
188
|
+
* @param {string} [intent]
|
|
189
|
+
* @param {string} [action]
|
|
190
|
+
* @param {string} [pkg]
|
|
191
|
+
* @param {string} [uri]
|
|
192
|
+
* @param {string} [mimeType]
|
|
193
|
+
* @param {string} [identifier]
|
|
194
|
+
* @param {string} [component]
|
|
195
|
+
* @param {string | string[]} [categories]
|
|
196
|
+
* @param {string[][]} [extras]
|
|
197
|
+
* @param {string} [flags]
|
|
126
198
|
* @returns {Promise<string>}
|
|
127
199
|
*/
|
|
128
|
-
async function mobileStartService(
|
|
129
|
-
const { user, foreground } = opts;
|
|
200
|
+
async function mobileStartService(foreground, user, intent, action, pkg, uri, mimeType, identifier, component, categories, extras, flags) {
|
|
130
201
|
const cmd = ['am'];
|
|
131
202
|
if ((await this.adb.getApiLevel()) < API_LEVEL_ANDROID_8) {
|
|
132
203
|
cmd.push('startservice');
|
|
@@ -137,16 +208,36 @@ async function mobileStartService(opts = {}) {
|
|
|
137
208
|
if (!lodash_1.default.isNil(user)) {
|
|
138
209
|
cmd.push('--user', String(user));
|
|
139
210
|
}
|
|
140
|
-
cmd.push(...parseIntentSpec(
|
|
211
|
+
cmd.push(...parseIntentSpec({
|
|
212
|
+
intent,
|
|
213
|
+
action,
|
|
214
|
+
package: pkg,
|
|
215
|
+
uri,
|
|
216
|
+
mimeType,
|
|
217
|
+
identifier,
|
|
218
|
+
component,
|
|
219
|
+
categories,
|
|
220
|
+
extras,
|
|
221
|
+
flags,
|
|
222
|
+
}));
|
|
141
223
|
return await this.adb.shell(cmd);
|
|
142
224
|
}
|
|
143
225
|
/**
|
|
144
226
|
* @this {import('../driver').AndroidDriver}
|
|
145
|
-
* @param {
|
|
227
|
+
* @param {string} [user]
|
|
228
|
+
* @param {string} [intent]
|
|
229
|
+
* @param {string} [action]
|
|
230
|
+
* @param {string} [pkg]
|
|
231
|
+
* @param {string} [uri]
|
|
232
|
+
* @param {string} [mimeType]
|
|
233
|
+
* @param {string} [identifier]
|
|
234
|
+
* @param {string} [component]
|
|
235
|
+
* @param {string | string[]} [categories]
|
|
236
|
+
* @param {string[][]} [extras]
|
|
237
|
+
* @param {string} [flags]
|
|
146
238
|
* @returns {Promise<string>}
|
|
147
239
|
*/
|
|
148
|
-
async function mobileStopService(
|
|
149
|
-
const { user } = opts;
|
|
240
|
+
async function mobileStopService(user, intent, action, pkg, uri, mimeType, identifier, component, categories, extras, flags) {
|
|
150
241
|
const cmd = [
|
|
151
242
|
'am',
|
|
152
243
|
(await this.adb.getApiLevel()) < API_LEVEL_ANDROID_8 ? 'stopservice' : 'stop-service',
|
|
@@ -154,7 +245,18 @@ async function mobileStopService(opts = {}) {
|
|
|
154
245
|
if (!lodash_1.default.isNil(user)) {
|
|
155
246
|
cmd.push('--user', String(user));
|
|
156
247
|
}
|
|
157
|
-
cmd.push(...parseIntentSpec(
|
|
248
|
+
cmd.push(...parseIntentSpec({
|
|
249
|
+
intent,
|
|
250
|
+
action,
|
|
251
|
+
package: pkg,
|
|
252
|
+
uri,
|
|
253
|
+
mimeType,
|
|
254
|
+
identifier,
|
|
255
|
+
component,
|
|
256
|
+
categories,
|
|
257
|
+
extras,
|
|
258
|
+
flags,
|
|
259
|
+
}));
|
|
158
260
|
try {
|
|
159
261
|
return await this.adb.shell(cmd);
|
|
160
262
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":";;;;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C,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;IACH,CAAC;IACD,IAAI,KAAK,EAAE,CAAC;QACV,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,aAAa;AAEb;;GAEG"}
|
|
@@ -43,10 +43,10 @@ export function pressKeyCode(this: import("../driver").AndroidDriver, keycode: s
|
|
|
43
43
|
export function longPressKeyCode(this: import("../driver").AndroidDriver, keycode: string | number, metastate?: number): Promise<void>;
|
|
44
44
|
/**
|
|
45
45
|
* @this {import('../driver').AndroidDriver}
|
|
46
|
-
* @param {
|
|
46
|
+
* @param {string | number} action
|
|
47
47
|
* @returns {Promise<void>}
|
|
48
48
|
*/
|
|
49
|
-
export function mobilePerformEditorAction(this: import("../driver").AndroidDriver,
|
|
49
|
+
export function mobilePerformEditorAction(this: import("../driver").AndroidDriver, action: string | number): Promise<void>;
|
|
50
50
|
/**
|
|
51
51
|
* @deprecated
|
|
52
52
|
* @this {import('../driver').AndroidDriver}
|
|
@@ -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":"AAKA;;;GAGG;AACH,uEAFa,OAAO,CAAC,OAAO,CAAC,CAI5B;AAED;;;GAGG;AACH,0EAFa,OAAO,CAAC,OAAO,CAAC,CAO5B;AAED;;;;GAIG;AACH,oEAHW,MAAM,GAAC,MAAM,EAAE,GACb,OAAO,CAAC,IAAI,CAAC,CASzB;AAED;;;;GAIG;AACH,4EAHW,OAAO,SAAS,EAAE,YAAY,GAC5B,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;GAKG;AACH,2EAJW,MAAM,GAAC,MAAM,cACb,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAMzB;AAED;;;;;GAKG;AACH,+EAJW,MAAM,GAAC,MAAM,cACb,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;GAKG;AACH,mFAJW,MAAM,GAAC,MAAM,cACb,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;GAIG;AACH,2FAHW,MAAM,GAAG,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAIzB;AAID;;;;GAIG;AACH,8EAFa,OAAO,CAAC,MAAM,OAAC,CAAC,CAa5B;AAED;;;GAGG;AACH,iFAFa,OAAO,CAAC,IAAI,CAAC,CAMzB"}
|
|
@@ -16,7 +16,6 @@ exports.hideKeyboardCompletely = hideKeyboardCompletely;
|
|
|
16
16
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
17
|
const lodash_1 = __importDefault(require("lodash"));
|
|
18
18
|
const driver_1 = require("appium/driver");
|
|
19
|
-
const utils_1 = require("../utils");
|
|
20
19
|
const io_appium_settings_1 = require("io.appium.settings");
|
|
21
20
|
/**
|
|
22
21
|
* @this {import('../driver').AndroidDriver}
|
|
@@ -85,11 +84,10 @@ async function longPressKeyCode(keycode, metastate) {
|
|
|
85
84
|
}
|
|
86
85
|
/**
|
|
87
86
|
* @this {import('../driver').AndroidDriver}
|
|
88
|
-
* @param {
|
|
87
|
+
* @param {string | number} action
|
|
89
88
|
* @returns {Promise<void>}
|
|
90
89
|
*/
|
|
91
|
-
async function mobilePerformEditorAction(
|
|
92
|
-
const { action } = (0, utils_1.requireArgs)('action', opts);
|
|
90
|
+
async function mobilePerformEditorAction(action) {
|
|
93
91
|
await this.settingsApp.performEditorAction(action);
|
|
94
92
|
}
|
|
95
93
|
// #region Internal Helpers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],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,CAAC,CAAC;AACnC,CAAC;AAED,aAAa"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @this {AndroidDriver}
|
|
3
|
-
* @param {import('../types').LockOpts} opts
|
|
4
|
-
* @returns {Promise<void>}
|
|
5
|
-
*/
|
|
6
|
-
export function mobileLock(this: import("../../driver").AndroidDriver, opts?: import("../types").LockOpts): Promise<void>;
|
|
7
1
|
/**
|
|
8
2
|
* @this {AndroidDriver}
|
|
9
3
|
* @param {number} [seconds]
|
|
@@ -22,10 +16,20 @@ export function isLocked(this: import("../../driver").AndroidDriver): Promise<bo
|
|
|
22
16
|
export function unlock(this: import("../../driver").AndroidDriver): Promise<void>;
|
|
23
17
|
/**
|
|
24
18
|
* @this {AndroidDriver}
|
|
25
|
-
* @param {
|
|
19
|
+
* @param {string} [key] The unlock key. The value of this key depends on the actual unlock type and
|
|
20
|
+
* could be a pin/password/pattern value or a biometric finger id.
|
|
21
|
+
* If not provided then the corresponding value from session capabilities is
|
|
22
|
+
* used.
|
|
23
|
+
* @param {import('../types').UnlockType} [type] The unlock type.
|
|
24
|
+
* If not provided then the corresponding value from session capabilities is used.
|
|
25
|
+
* @param {string} [strategy] Setting it to 'uiautomator' will enforce the driver to avoid using special
|
|
26
|
+
* ADB shortcuts in order to speed up the unlock procedure.
|
|
27
|
+
* 'uiautomator' by default.
|
|
28
|
+
* @param {number} [timeoutMs] The maximum time in milliseconds to wait until the screen gets unlocked
|
|
29
|
+
* 2000ms byde fault.
|
|
26
30
|
* @returns {Promise<void>}
|
|
27
31
|
*/
|
|
28
|
-
export function mobileUnlock(this: import("../../driver").AndroidDriver,
|
|
32
|
+
export function mobileUnlock(this: import("../../driver").AndroidDriver, key?: string, type?: import("../types").UnlockType, strategy?: string, timeoutMs?: number): Promise<void>;
|
|
29
33
|
/**
|
|
30
34
|
* @this {AndroidDriver}
|
|
31
35
|
* @param {AndroidDriverCaps?} [caps=null]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,2EAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAczB;AAED;;;GAGG;AACH,sEAFa,OAAO,CAAC,OAAO,CAAC,CAI5B;AAED;;;GAGG;AACH,oEAFa,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;;;;;;;;;;GAcG;AACH,+EAbW,MAAM,SAIN,OAAO,UAAU,EAAE,UAAU,aAE7B,MAAM,cAGN,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAazB;AAID;;;;GAIG;AACH,qFAHW,iBAAiB,OAAC,GAChB,OAAO,CAAC,IAAI,CAAC,CA0CzB;gCAKY,OAAO,eAAe,EAAE,YAAY,CAAC,OAAO,mBAAmB,EAAE,wBAAwB,CAAC;4BAC1F,OAAO,cAAc,EAAE,aAAa"}
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.mobileLock = mobileLock;
|
|
7
6
|
exports.lock = lock;
|
|
8
7
|
exports.isLocked = isLocked;
|
|
9
8
|
exports.unlock = unlock;
|
|
@@ -12,15 +11,6 @@ exports.unlockWithOptions = unlockWithOptions;
|
|
|
12
11
|
const bluebird_1 = __importDefault(require("bluebird"));
|
|
13
12
|
const helpers_1 = require("./helpers");
|
|
14
13
|
const lodash_1 = __importDefault(require("lodash"));
|
|
15
|
-
/**
|
|
16
|
-
* @this {AndroidDriver}
|
|
17
|
-
* @param {import('../types').LockOpts} opts
|
|
18
|
-
* @returns {Promise<void>}
|
|
19
|
-
*/
|
|
20
|
-
async function mobileLock(opts = {}) {
|
|
21
|
-
const { seconds } = opts;
|
|
22
|
-
return await this.lock(seconds);
|
|
23
|
-
}
|
|
24
14
|
/**
|
|
25
15
|
* @this {AndroidDriver}
|
|
26
16
|
* @param {number} [seconds]
|
|
@@ -54,11 +44,20 @@ async function unlock() {
|
|
|
54
44
|
}
|
|
55
45
|
/**
|
|
56
46
|
* @this {AndroidDriver}
|
|
57
|
-
* @param {
|
|
47
|
+
* @param {string} [key] The unlock key. The value of this key depends on the actual unlock type and
|
|
48
|
+
* could be a pin/password/pattern value or a biometric finger id.
|
|
49
|
+
* If not provided then the corresponding value from session capabilities is
|
|
50
|
+
* used.
|
|
51
|
+
* @param {import('../types').UnlockType} [type] The unlock type.
|
|
52
|
+
* If not provided then the corresponding value from session capabilities is used.
|
|
53
|
+
* @param {string} [strategy] Setting it to 'uiautomator' will enforce the driver to avoid using special
|
|
54
|
+
* ADB shortcuts in order to speed up the unlock procedure.
|
|
55
|
+
* 'uiautomator' by default.
|
|
56
|
+
* @param {number} [timeoutMs] The maximum time in milliseconds to wait until the screen gets unlocked
|
|
57
|
+
* 2000ms byde fault.
|
|
58
58
|
* @returns {Promise<void>}
|
|
59
59
|
*/
|
|
60
|
-
async function mobileUnlock(
|
|
61
|
-
const { key, type, strategy, timeoutMs } = opts;
|
|
60
|
+
async function mobileUnlock(key, type, strategy, timeoutMs) {
|
|
62
61
|
if (!key && !type) {
|
|
63
62
|
await this.unlock();
|
|
64
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":";;;;;AAwBA,
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../lib/commands/lock/exports.js"],"names":[],"mappings":";;;;;AAwBA,oBAYC;AAMD,4BAEC;AAMD,wBAEC;AAiBD,oCAWC;AASD,8CAwCC;AAjID,wDAAyB;AACzB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BAAiB;SACxC,CAAC,UAAU,CAAC,CAAC;QACd,MAAM,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC;IAC9C,CAAC;IACD,MAAM,sBAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC;AACtD,CAAC;AAED,aAAa;AAEb;;;GAGG"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @this {import('../driver').AndroidDriver}
|
|
3
|
-
* @param {
|
|
3
|
+
* @param {string} [resolution] Maximum supported resolution on-device (Detected automatically by the app
|
|
4
|
+
* itself), which usually equals to Full HD 1920x1080 on most phones however
|
|
5
|
+
* you can change it to following supported resolutions as well: "1920x1080",
|
|
6
|
+
* "1280x720", "720x480", "320x240", "176x144".
|
|
7
|
+
* @param {'high' | 'normal' | 'low'} [priority] Recording thread priority.
|
|
8
|
+
* If you face performance drops during testing with recording enabled, you
|
|
9
|
+
* can reduce recording priority
|
|
10
|
+
* 'high' by default
|
|
11
|
+
* @param {number} [maxDurationSec] Maximum allowed duration is 15 minutes; you can increase it if your test
|
|
12
|
+
* takes longer than that. 900s by default.
|
|
13
|
+
* @param {string} [filename] You can type recording video file name as you want, but recording currently
|
|
14
|
+
* supports only "mp4" format so your filename must end with ".mp4". An
|
|
15
|
+
* invalid file name will fail to start the recording. If not provided then
|
|
16
|
+
* the current timestamp will be used as file name.
|
|
4
17
|
* @returns {Promise<boolean>}
|
|
5
18
|
*/
|
|
6
|
-
export function mobileStartMediaProjectionRecording(this: import("../driver").AndroidDriver,
|
|
19
|
+
export function mobileStartMediaProjectionRecording(this: import("../driver").AndroidDriver, resolution?: string, priority?: "high" | "normal" | "low", maxDurationSec?: number, filename?: string): Promise<boolean>;
|
|
7
20
|
/**
|
|
8
21
|
* @this {import('../driver').AndroidDriver}
|
|
9
22
|
* @returns {Promise<boolean>}
|
|
@@ -11,9 +24,33 @@ export function mobileStartMediaProjectionRecording(this: import("../driver").An
|
|
|
11
24
|
export function mobileIsMediaProjectionRecordingRunning(this: import("../driver").AndroidDriver): Promise<boolean>;
|
|
12
25
|
/**
|
|
13
26
|
* @this {import('../driver').AndroidDriver}
|
|
14
|
-
* @param {
|
|
27
|
+
* @param {string} [remotePath] The path to the remote location, where the resulting video should be
|
|
28
|
+
* uploaded. The following protocols are supported: http/https, ftp. Null or
|
|
29
|
+
* empty string value (the default setting) means the content of resulting
|
|
30
|
+
* file should be encoded as Base64 and passed as the endpoont response value.
|
|
31
|
+
* An exception will be thrown if the generated media file is too big to fit
|
|
32
|
+
* into the available process memory.
|
|
33
|
+
* @param {string} [user] The name of the user for the remote authentication.
|
|
34
|
+
* @param {string} [pass] The password for the remote authentication.
|
|
35
|
+
* @param {import('@appium/types').HTTPMethod} [method] The http multipart upload method name.
|
|
36
|
+
* 'PUT' by default.
|
|
37
|
+
* @param {import('@appium/types').StringRecord} [headers] Additional headers mapping for multipart http(s) uploads
|
|
38
|
+
* @param {string} [fileFieldName] The name of the form field, where the file content BLOB should be stored
|
|
39
|
+
* for http(s) uploads. 'file' by default.
|
|
40
|
+
* @param {import('./types').FormFields} [formFields] Additional form fields for multipart http(s) uploads
|
|
41
|
+
* @param {number} [uploadTimeout] The actual media upload request timeout in milliseconds.
|
|
42
|
+
* Defaults to `@appium/support.net.DEFAULT_TIMEOUT_MS`
|
|
15
43
|
* @returns {Promise<string>}
|
|
16
44
|
*/
|
|
17
|
-
export function mobileStopMediaProjectionRecording(this: import("../driver").AndroidDriver,
|
|
45
|
+
export function mobileStopMediaProjectionRecording(this: import("../driver").AndroidDriver, remotePath?: string, user?: string, pass?: string, method?: import("@appium/types").HTTPMethod, headers?: import("@appium/types").StringRecord, fileFieldName?: string, formFields?: import("./types").FormFields, uploadTimeout?: number): Promise<string>;
|
|
46
|
+
export type UploadOptions = {
|
|
47
|
+
user?: string | undefined;
|
|
48
|
+
pass?: string | undefined;
|
|
49
|
+
method?: import("@appium/types").HTTPMethod | undefined;
|
|
50
|
+
headers?: import("@appium/types").StringRecord<any> | undefined;
|
|
51
|
+
fileFieldName?: string | undefined;
|
|
52
|
+
formFields?: import("./types").FormFields | undefined;
|
|
53
|
+
uploadTimeout?: number | undefined;
|
|
54
|
+
};
|
|
18
55
|
export type ADB = import("appium-adb").ADB;
|
|
19
56
|
//# sourceMappingURL=media-projection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-projection.d.ts","sourceRoot":"","sources":["../../../lib/commands/media-projection.js"],"names":[],"mappings":"AAUA
|
|
1
|
+
{"version":3,"file":"media-projection.d.ts","sourceRoot":"","sources":["../../../lib/commands/media-projection.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;GAiBG;AACH,0GAhBW,MAAM,aAIN,MAAM,GAAG,QAAQ,GAAG,KAAK,mBAIzB,MAAM,aAEN,MAAM,GAIJ,OAAO,CAAC,OAAO,CAAC,CAqB5B;AAED;;;GAGG;AACH,kGAFa,OAAO,CAAC,OAAO,CAAC,CAO5B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yGAlBW,MAAM,SAMN,MAAM,SACN,MAAM,WACN,OAAO,eAAe,EAAE,UAAU,YAElC,OAAO,eAAe,EAAE,YAAY,kBACpC,MAAM,eAEN,OAAO,SAAS,EAAE,UAAU,kBAC5B,MAAM,GAEJ,OAAO,CAAC,MAAM,CAAC,CA4C3B;;;;;;;;;;kBA4EY,OAAO,YAAY,EAAE,GAAG"}
|