appium-android-driver 12.4.7 → 12.4.9

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/file-actions.d.ts +37 -19
  3. package/build/lib/commands/file-actions.d.ts.map +1 -1
  4. package/build/lib/commands/file-actions.js +44 -58
  5. package/build/lib/commands/file-actions.js.map +1 -1
  6. package/build/lib/commands/geolocation.d.ts +44 -36
  7. package/build/lib/commands/geolocation.d.ts.map +1 -1
  8. package/build/lib/commands/geolocation.js +38 -32
  9. package/build/lib/commands/geolocation.js.map +1 -1
  10. package/build/lib/commands/intent.d.ts +103 -107
  11. package/build/lib/commands/intent.d.ts.map +1 -1
  12. package/build/lib/commands/intent.js +103 -97
  13. package/build/lib/commands/intent.js.map +1 -1
  14. package/build/lib/commands/log.d.ts +44 -48
  15. package/build/lib/commands/log.d.ts.map +1 -1
  16. package/build/lib/commands/log.js +30 -54
  17. package/build/lib/commands/log.js.map +1 -1
  18. package/build/lib/commands/network.d.ts +59 -39
  19. package/build/lib/commands/network.d.ts.map +1 -1
  20. package/build/lib/commands/network.js +65 -45
  21. package/build/lib/commands/network.js.map +1 -1
  22. package/build/lib/commands/recordscreen.d.ts +25 -40
  23. package/build/lib/commands/recordscreen.d.ts.map +1 -1
  24. package/build/lib/commands/recordscreen.js +46 -63
  25. package/build/lib/commands/recordscreen.js.map +1 -1
  26. package/build/lib/commands/types.d.ts.map +1 -1
  27. package/build/lib/driver.d.ts +11 -10
  28. package/build/lib/driver.d.ts.map +1 -1
  29. package/build/lib/driver.js.map +1 -1
  30. package/lib/commands/{file-actions.js → file-actions.ts} +88 -74
  31. package/lib/commands/{geolocation.js → geolocation.ts} +85 -54
  32. package/lib/commands/intent.ts +422 -0
  33. package/lib/commands/{log.js → log.ts} +68 -73
  34. package/lib/commands/{network.js → network.ts} +106 -59
  35. package/lib/commands/{recordscreen.js → recordscreen.ts} +77 -73
  36. package/lib/commands/types.ts +17 -0
  37. package/lib/driver.ts +2 -1
  38. package/package.json +1 -1
  39. package/lib/commands/intent.js +0 -409
@@ -31,18 +31,19 @@ const SUPPORTED_EXTRA_TYPES = [
31
31
  'sal',
32
32
  ];
33
33
  /**
34
- * @deprecated
35
- * @this {import('../driver').AndroidDriver}
36
- * @param {string} appPackage
37
- * @param {string} appActivity
38
- * @param {string} [appWaitPackage]
39
- * @param {string} [appWaitActivity]
40
- * @param {string} [intentAction]
41
- * @param {string} [intentCategory]
42
- * @param {string} [intentFlags]
43
- * @param {string} [optionalIntentArguments]
44
- * @param {boolean} [dontStopAppOnReset]
45
- * @returns {Promise<void>}
34
+ * Starts an Android activity.
35
+ *
36
+ * @deprecated Use {@link mobileStartActivity} instead.
37
+ * @param appPackage The package name of the application to start.
38
+ * @param appActivity The activity name to start.
39
+ * @param appWaitPackage The package name to wait for. Defaults to `appPackage` if not provided.
40
+ * @param appWaitActivity The activity name to wait for. Defaults to `appActivity` if not provided.
41
+ * @param intentAction The intent action to use.
42
+ * @param intentCategory The intent category to use.
43
+ * @param intentFlags The intent flags to use.
44
+ * @param optionalIntentArguments Optional intent arguments.
45
+ * @param dontStopAppOnReset If `true`, does not stop the app on reset. If not provided, uses the capability value.
46
+ * @returns Promise that resolves when the activity is started.
46
47
  */
47
48
  async function startActivity(appPackage, appActivity, appWaitPackage, appWaitActivity, intentAction, intentCategory, intentFlags, optionalIntentArguments, dontStopAppOnReset) {
48
49
  this.log.debug(`Starting package '${appPackage}' and activity '${appActivity}'`);
@@ -51,8 +52,7 @@ async function startActivity(appPackage, appActivity, appWaitPackage, appWaitAct
51
52
  if (!support_1.util.hasValue(dontStopAppOnReset)) {
52
53
  dontStopAppOnReset = !!this.opts.dontStopAppOnReset;
53
54
  }
54
- /** @type {import('appium-adb').StartAppOptions} */
55
- let args = {
55
+ const args = {
56
56
  pkg: appPackage,
57
57
  activity: appActivity,
58
58
  waitPkg: appWaitPackage || appPackage,
@@ -68,34 +68,35 @@ async function startActivity(appPackage, appActivity, appWaitPackage, appWaitAct
68
68
  await this.adb.startApp(args);
69
69
  }
70
70
  /**
71
- * @this {import('../driver').AndroidDriver}
72
- * @param {boolean} [wait] Set it to `true` if you want to block the method call
71
+ * Starts an Android activity using the activity manager.
72
+ *
73
+ * @param wait Set it to `true` if you want to block the method call
73
74
  * until the activity manager's process returns the control to the system.
74
- * false by default.
75
- * @param {boolean} [stop] Set it to `true` to force stop the target
76
- * app before starting the activity
77
- * false by default.
78
- * @param {string | number} [windowingMode] The windowing mode to launch the activity into.
79
- * Check
80
- * https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
81
- * for more details on possible windowing modes (constants starting with
82
- * `WINDOWING_MODE_`).
83
- * @param {string | number} [activityType] The activity type to launch the activity as.
75
+ * `false` by default.
76
+ * @param stop Set it to `true` to force stop the target
77
+ * app before starting the activity. `false` by default.
78
+ * @param windowingMode The windowing mode to launch the activity into.
79
+ * Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
80
+ * for more details on possible windowing modes (constants starting with `WINDOWING_MODE_`).
81
+ * @param activityType The activity type to launch the activity as.
84
82
  * Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
85
83
  * for more details on possible activity types (constants starting with `ACTIVITY_TYPE_`).
86
- * @param {number | string} [display] The display identifier to launch the activity into.
87
- * @param {string} [user]
88
- * @param {string} [intent]
89
- * @param {string} [action]
90
- * @param {string} [pkg]
91
- * @param {string} [uri]
92
- * @param {string} [mimeType]
93
- * @param {string} [identifier]
94
- * @param {string} [component]
95
- * @param {string | string[]} [categories]
96
- * @param {string[][]} [extras]
97
- * @param {string} [flags]
98
- * @returns {Promise<string>}
84
+ * @param display The display identifier to launch the activity into.
85
+ * @param user The user ID for which the activity is started.
86
+ * @param intent The name of the activity intent to start, for example
87
+ * `com.some.package.name/.YourActivitySubClassName`.
88
+ * @param action Action name.
89
+ * @param pkg Package name.
90
+ * @param uri Unified resource identifier.
91
+ * @param mimeType Mime type.
92
+ * @param identifier Optional identifier.
93
+ * @param component Component name.
94
+ * @param categories One or more category names.
95
+ * @param extras Optional intent arguments. Must be represented as array of arrays,
96
+ * where each subarray item contains two or three string items: value type, key name and the value itself.
97
+ * See {@link IntentOpts} for supported value types.
98
+ * @param flags Intent startup-specific flags as a hexadecimal string.
99
+ * @returns Promise that resolves to the command output string.
99
100
  */
100
101
  async function mobileStartActivity(wait, stop, windowingMode, activityType, display, user, intent, action, pkg, uri, mimeType, identifier, component, categories, extras, flags) {
101
102
  const cmd = [
@@ -135,23 +136,26 @@ async function mobileStartActivity(wait, stop, windowingMode, activityType, disp
135
136
  return await this.adb.shell(cmd);
136
137
  }
137
138
  /**
138
- * @this {import('../driver').AndroidDriver}
139
- * @param {string | number} [user] The user ID for which the broadcast is sent.
140
- * The `current` alias assumes the current user ID.
141
- * `all` by default.
142
- * @param {string} [receiverPermission] Require receiver to hold the given permission.
143
- * @param {boolean} [allowBackgroundActivityStarts] Whether the receiver may start activities even if in the background.
144
- * @param {string} [intent]
145
- * @param {string} [action]
146
- * @param {string} [pkg]
147
- * @param {string} [uri]
148
- * @param {string} [mimeType]
149
- * @param {string} [identifier]
150
- * @param {string} [component]
151
- * @param {string | string[]} [categories]
152
- * @param {string[][]} [extras]
153
- * @param {string} [flags]
154
- * @returns {Promise<string>}
139
+ * Sends a broadcast intent to the Android system.
140
+ *
141
+ * @param receiverPermission Require receiver to hold the given permission.
142
+ * @param allowBackgroundActivityStarts Whether the receiver may start activities even if in the background.
143
+ * @param user The user ID for which the broadcast is sent.
144
+ * The `current` alias assumes the current user ID. `all` by default.
145
+ * @param intent The name of the activity intent to broadcast, for example
146
+ * `com.some.package.name/.YourServiceSubClassName`.
147
+ * @param action Action name.
148
+ * @param pkg Package name.
149
+ * @param uri Unified resource identifier.
150
+ * @param mimeType Mime type.
151
+ * @param identifier Optional identifier.
152
+ * @param component Component name.
153
+ * @param categories One or more category names.
154
+ * @param extras Optional intent arguments. Must be represented as array of arrays,
155
+ * where each subarray item contains two or three string items: value type, key name and the value itself.
156
+ * See {@link IntentOpts} for supported value types.
157
+ * @param flags Intent startup-specific flags as a hexadecimal string.
158
+ * @returns Promise that resolves to the command output string.
155
159
  */
156
160
  async function mobileBroadcast(receiverPermission, allowBackgroundActivityStarts, user, intent, action, pkg, uri, mimeType, identifier, component, categories, extras, flags) {
157
161
  const cmd = ['am', 'broadcast'];
@@ -179,22 +183,26 @@ async function mobileBroadcast(receiverPermission, allowBackgroundActivityStarts
179
183
  return await this.adb.shell(cmd);
180
184
  }
181
185
  /**
182
- * @this {import('../driver').AndroidDriver}
183
- * @param {boolean} [foreground] Set it to `true` if your service must be started as foreground service.
184
- * This option is ignored if the API level of the device under test is below
185
- * 26 (Android 8).
186
- * @param {string} [user]
187
- * @param {string} [intent]
188
- * @param {string} [action]
189
- * @param {string} [pkg]
190
- * @param {string} [uri]
191
- * @param {string} [mimeType]
192
- * @param {string} [identifier]
193
- * @param {string} [component]
194
- * @param {string | string[]} [categories]
195
- * @param {string[][]} [extras]
196
- * @param {string} [flags]
197
- * @returns {Promise<string>}
186
+ * Starts an Android service.
187
+ *
188
+ * @param foreground Set it to `true` if your service must be started as foreground service.
189
+ * This option is ignored if the API level of the device under test is below 26 (Android 8).
190
+ * @param user The user ID for which the service is started.
191
+ * The `current` user id is used by default.
192
+ * @param intent The name of the activity intent to start, for example
193
+ * `com.some.package.name/.YourServiceSubClassName`.
194
+ * @param action Action name.
195
+ * @param pkg Package name.
196
+ * @param uri Unified resource identifier.
197
+ * @param mimeType Mime type.
198
+ * @param identifier Optional identifier.
199
+ * @param component Component name.
200
+ * @param categories One or more category names.
201
+ * @param extras Optional intent arguments. Must be represented as array of arrays,
202
+ * where each subarray item contains two or three string items: value type, key name and the value itself.
203
+ * See {@link IntentOpts} for supported value types.
204
+ * @param flags Intent startup-specific flags as a hexadecimal string.
205
+ * @returns Promise that resolves to the command output string.
198
206
  */
199
207
  async function mobileStartService(foreground, user, intent, action, pkg, uri, mimeType, identifier, component, categories, extras, flags) {
200
208
  const cmd = ['am'];
@@ -217,19 +225,24 @@ async function mobileStartService(foreground, user, intent, action, pkg, uri, mi
217
225
  return await this.adb.shell(cmd);
218
226
  }
219
227
  /**
220
- * @this {import('../driver').AndroidDriver}
221
- * @param {string} [user]
222
- * @param {string} [intent]
223
- * @param {string} [action]
224
- * @param {string} [pkg]
225
- * @param {string} [uri]
226
- * @param {string} [mimeType]
227
- * @param {string} [identifier]
228
- * @param {string} [component]
229
- * @param {string | string[]} [categories]
230
- * @param {string[][]} [extras]
231
- * @param {string} [flags]
232
- * @returns {Promise<string>}
228
+ * Stops an Android service.
229
+ *
230
+ * @param user The user ID for which the service is stopped.
231
+ * @param intent The name of the activity intent to stop, for example
232
+ * `com.some.package.name/.YourServiceSubClassName`.
233
+ * @param action Action name.
234
+ * @param pkg Package name.
235
+ * @param uri Unified resource identifier.
236
+ * @param mimeType Mime type.
237
+ * @param identifier Optional identifier.
238
+ * @param component Component name.
239
+ * @param categories One or more category names.
240
+ * @param extras Optional intent arguments. Must be represented as array of arrays,
241
+ * where each subarray item contains two or three string items: value type, key name and the value itself.
242
+ * See {@link IntentOpts} for supported value types.
243
+ * @param flags Intent startup-specific flags as a hexadecimal string.
244
+ * @returns Promise that resolves to the command output string.
245
+ * If the service was already stopped, returns the error message.
233
246
  */
234
247
  async function mobileStopService(user, intent, action, pkg, uri, mimeType, identifier, component, categories, extras, flags) {
235
248
  const cmd = [
@@ -256,18 +269,14 @@ async function mobileStopService(user, intent, action, pkg, uri, mimeType, ident
256
269
  }
257
270
  catch (e) {
258
271
  // https://github.com/appium/appium-uiautomator2-driver/issues/792
259
- if (e.code === 255 && e.stderr?.includes('Service stopped')) {
260
- return e.stderr;
272
+ const err = e;
273
+ if (err.code === 255 && err.stderr?.includes('Service stopped')) {
274
+ return err.stderr;
261
275
  }
262
276
  throw e;
263
277
  }
264
278
  }
265
279
  // #region Internal helpers
266
- /**
267
- *
268
- * @param {import('./types').IntentOpts} opts
269
- * @returns {string[]}
270
- */
271
280
  function parseIntentSpec(opts = {}) {
272
281
  const { intent, action, uri, mimeType, identifier, categories, component, extras, flags } = opts;
273
282
  const resultArgs = [];
@@ -309,9 +318,9 @@ function parseIntentSpec(opts = {}) {
309
318
  throw new driver_1.errors.InvalidArgumentError(`Extra argument '${item}' must be an array`);
310
319
  }
311
320
  const [type, key, value] = item;
312
- if (!lodash_1.default.includes(SUPPORTED_EXTRA_TYPES, type)) {
321
+ if (!SUPPORTED_EXTRA_TYPES.includes(type)) {
313
322
  throw new driver_1.errors.InvalidArgumentError(`Extra argument type '${type}' is not known. ` +
314
- `Supported intent argument types are: ${SUPPORTED_EXTRA_TYPES}`);
323
+ `Supported intent argument types are: ${SUPPORTED_EXTRA_TYPES.join(', ')}`);
315
324
  }
316
325
  if (lodash_1.default.isEmpty(key) || (lodash_1.default.isString(key) && lodash_1.default.trim(key) === '')) {
317
326
  throw new driver_1.errors.InvalidArgumentError(`Extra argument's key in '${JSON.stringify(item)}' must be a valid string identifier`);
@@ -334,7 +343,4 @@ function parseIntentSpec(opts = {}) {
334
343
  return resultArgs;
335
344
  }
336
345
  // #endregion
337
- /**
338
- * @typedef {import('appium-adb').ADB} ADB
339
- */
340
346
  //# sourceMappingURL=intent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":";;;;;AAsCA,sCAkCC;AAgCD,kDAqDC;AAqBD,0CAsCC;AAoBD,gDAgCC;AAiBD,8CAyCC;AAtUD,oDAAuB;AACvB,0CAAqC;AACrC,6CAAqC;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;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C,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC;YACrC,CAAC;iBAAM,IAAI,gBAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;gBAChC,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,yBAAyB,IAAI,SAAS,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe;oBACvE,4BAA4B,CAC/B,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,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"}
@@ -1,3 +1,20 @@
1
+ import type { EventEmitter } from 'node:events';
2
+ import { type LogEntry } from '../utils';
3
+ import type { AndroidDriver } from '../driver';
4
+ export declare const supportedLogTypes: {
5
+ readonly logcat: {
6
+ readonly description: "Logs for Android applications on real device and emulators via ADB";
7
+ readonly getter: (self: AndroidDriver) => LogEntry[];
8
+ };
9
+ readonly bugreport: {
10
+ readonly description: "'adb bugreport' output for advanced issues diagnostic";
11
+ readonly getter: (self: AndroidDriver) => Promise<LogEntry[]>;
12
+ };
13
+ readonly server: {
14
+ readonly description: "Appium server logs";
15
+ readonly getter: (self: AndroidDriver) => LogEntry[];
16
+ };
17
+ };
1
18
  /**
2
19
  * Starts Android logcat broadcast websocket on the same host and port
3
20
  * where Appium server is running at `/ws/session/:sessionId:/appium/logcat` endpoint. The method
@@ -6,66 +23,45 @@
6
23
  * Each connected websocket listener will receive logcat log lines
7
24
  * as soon as they are visible to Appium.
8
25
  *
9
- * @this {import('../driver').AndroidDriver}
10
- * @returns {Promise<void>}
26
+ * @returns Promise that resolves when the logcat broadcasting websocket is started.
11
27
  */
12
- export function mobileStartLogsBroadcast(this: import("../driver").AndroidDriver): Promise<void>;
13
- export class mobileStartLogsBroadcast {
14
- _logcatWebsocketListener: ((logRecord: import("appium-adb").LogEntry) => void) | undefined;
15
- }
28
+ export declare function mobileStartLogsBroadcast(this: AndroidDriver): Promise<void>;
16
29
  /**
17
30
  * Stops the previously started logcat broadcasting wesocket server.
18
31
  * This method will return immediately if no server is running.
19
32
  *
20
- * @this {import('../driver').AndroidDriver}
21
- * @returns {Promise<void>}
33
+ * @returns Promise that resolves when the logcat broadcasting websocket is stopped.
22
34
  */
23
- export function mobileStopLogsBroadcast(this: import("../driver").AndroidDriver): Promise<void>;
35
+ export declare function mobileStopLogsBroadcast(this: AndroidDriver): Promise<void>;
24
36
  /**
25
- * @this {import('../driver').AndroidDriver}
26
- * @returns {Promise<string[]>}
37
+ * Gets the list of available log types.
38
+ *
39
+ * @returns Promise that resolves to an array of log type names.
27
40
  */
28
- export function getLogTypes(this: import("../driver").AndroidDriver): Promise<string[]>;
41
+ export declare function getLogTypes(this: AndroidDriver): Promise<string[]>;
42
+ export interface BiDiListenerProperties {
43
+ type: string;
44
+ srcEventName?: string;
45
+ context?: string;
46
+ entryTransformer?: (x: LogEntry) => LogEntry;
47
+ }
48
+ export type LogListener = (logEntry: LogEntry) => any;
29
49
  /**
50
+ * Assigns a BiDi log listener to an event emitter.
51
+ *
30
52
  * https://w3c.github.io/webdriver-bidi/#event-log-entryAdded
31
53
  *
32
- * @template {import('node:events').EventEmitter} EE
33
- * @this {import('../driver').AndroidDriver}
34
- * @param {EE} logEmitter
35
- * @param {BiDiListenerProperties} properties
36
- * @returns {[EE, LogListener]}
54
+ * @template EE The event emitter type.
55
+ * @param logEmitter The event emitter to attach the listener to.
56
+ * @param properties The BiDi listener properties.
57
+ * @returns A tuple containing the event emitter and the listener function.
37
58
  */
38
- export function assignBiDiLogListener<EE extends import("node:events").EventEmitter>(this: import("../driver").AndroidDriver, logEmitter: EE, properties: BiDiListenerProperties): [EE, LogListener];
59
+ export declare function assignBiDiLogListener<EE extends EventEmitter>(this: AndroidDriver, logEmitter: EE, properties: BiDiListenerProperties): [EE, LogListener];
39
60
  /**
40
- * @this {import('../driver').AndroidDriver}
41
- * @param {string} logType
42
- * @returns {Promise<any>}
61
+ * Gets logs of a specific type.
62
+ *
63
+ * @param logType The type of logs to retrieve.
64
+ * @returns Promise that resolves to the logs for the specified type.
43
65
  */
44
- export function getLog(this: import("../driver").AndroidDriver, logType: string): Promise<any>;
45
- export namespace supportedLogTypes {
46
- namespace logcat {
47
- let description: string;
48
- function getter(self: import("../driver").AndroidDriver): import("appium-adb").LogEntry[];
49
- }
50
- namespace bugreport {
51
- let description_1: string;
52
- export { description_1 as description };
53
- export function getter_1(self: import("../driver").AndroidDriver): Promise<import("appium-adb").LogEntry[]>;
54
- export { getter_1 as getter };
55
- }
56
- namespace server {
57
- let description_2: string;
58
- export { description_2 as description };
59
- export function getter_2(self: import("../driver").AndroidDriver): import("appium-adb").LogEntry[];
60
- export { getter_2 as getter };
61
- }
62
- }
63
- export type ADB = import("appium-adb").ADB;
64
- export type BiDiListenerProperties = {
65
- type: string;
66
- srcEventName?: string | undefined;
67
- context?: string | undefined;
68
- entryTransformer?: ((x: any) => import("../utils").LogEntry) | undefined;
69
- };
70
- export type LogListener = (logEntry: import("../utils").LogEntry) => any;
66
+ export declare function getLog(this: AndroidDriver, logType: string): Promise<any>;
71
67
  //# sourceMappingURL=log.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../lib/commands/log.js"],"names":[],"mappings":"AAkDA;;;;;;;;;;GAUG;AACH,mFAFa,OAAO,CAAC,IAAI,CAAC,CAwDzB;;IA3BK,2FAIC;;AAyBP;;;;;;GAMG;AACH,kFAFa,OAAO,CAAC,IAAI,CAAC,CAczB;AAED;;;GAGG;AACH,sEAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAc7B;AAED;;;;;;;;GAQG;AACH,sCANkD,EA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,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,KAAK,QAAQ,CAAC;CAC9C;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,GAAG,CAAC;AAEtD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,YAAY,EAC3D,IAAI,EAAE,aAAa,EACnB,UAAU,EAAE,EAAE,EACd,UAAU,EAAE,sBAAsB,GACjC,CAAC,EAAE,EAAE,WAAW,CAAC,CAanB;AAED;;;;;GAKG;AACH,wBAAsB,MAAM,CAC1B,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CAKd"}
@@ -20,33 +20,18 @@ const models_1 = require("./bidi/models");
20
20
  exports.supportedLogTypes = {
21
21
  logcat: {
22
22
  description: 'Logs for Android applications on real device and emulators via ADB',
23
- /**
24
- *
25
- * @param {import('../driver').AndroidDriver} self
26
- * @returns
27
- */
28
- getter: (self) => /** @type {ADB} */ (self.adb).getLogcatLogs(),
23
+ getter: (self) => self.adb.getLogcatLogs(),
29
24
  },
30
25
  bugreport: {
31
26
  description: `'adb bugreport' output for advanced issues diagnostic`,
32
- /**
33
- *
34
- * @param {import('../driver').AndroidDriver} self
35
- * @returns
36
- */
37
27
  getter: async (self) => {
38
- const output = await /** @type {ADB} */ (self.adb).bugreport();
28
+ const output = await self.adb.bugreport();
39
29
  const timestamp = Date.now();
40
30
  return output.split(node_os_1.default.EOL).map((x) => (0, utils_1.toLogRecord)(timestamp, x));
41
31
  },
42
32
  },
43
33
  server: {
44
34
  description: 'Appium server logs',
45
- /**
46
- *
47
- * @param {import('../driver').AndroidDriver} self
48
- * @returns
49
- */
50
35
  getter: (self) => {
51
36
  self.assertFeatureEnabled(utils_1.GET_SERVER_LOGS_FEATURE);
52
37
  return self.log.unwrap().record.map(utils_1.nativeLogEntryToSeleniumEntry);
@@ -61,12 +46,11 @@ exports.supportedLogTypes = {
61
46
  * Each connected websocket listener will receive logcat log lines
62
47
  * as soon as they are visible to Appium.
63
48
  *
64
- * @this {import('../driver').AndroidDriver}
65
- * @returns {Promise<void>}
49
+ * @returns Promise that resolves when the logcat broadcasting websocket is started.
66
50
  */
67
51
  async function mobileStartLogsBroadcast() {
68
- const server = /** @type {import('@appium/types').AppiumServer} */ (this.server);
69
- const pathname = WEBSOCKET_ENDPOINT(/** @type {string} */ (this.sessionId));
52
+ const server = this.server;
53
+ const pathname = WEBSOCKET_ENDPOINT(this.sessionId);
70
54
  if (!lodash_1.default.isEmpty(await server.getWebSocketHandlers(pathname))) {
71
55
  this.log.debug(`The logcat broadcasting web socket server is already listening at ${pathname}`);
72
56
  return;
@@ -80,7 +64,7 @@ async function mobileStartLogsBroadcast() {
80
64
  wss.on('connection', (ws, req) => {
81
65
  if (req) {
82
66
  const remoteIp = lodash_1.default.isEmpty(req.headers['x-forwarded-for'])
83
- ? req.connection?.remoteAddress
67
+ ? req.socket.remoteAddress
84
68
  : req.headers['x-forwarded-for'];
85
69
  this.log.debug(`Established a new logcat listener web socket connection from ${remoteIp}`);
86
70
  }
@@ -113,18 +97,17 @@ async function mobileStartLogsBroadcast() {
113
97
  this.log.debug(closeMsg);
114
98
  });
115
99
  });
116
- await server.addWebSocketHandler(pathname, /** @type {import('@appium/types').WSServer} */ (wss));
100
+ await server.addWebSocketHandler(pathname, wss);
117
101
  }
118
102
  /**
119
103
  * Stops the previously started logcat broadcasting wesocket server.
120
104
  * This method will return immediately if no server is running.
121
105
  *
122
- * @this {import('../driver').AndroidDriver}
123
- * @returns {Promise<void>}
106
+ * @returns Promise that resolves when the logcat broadcasting websocket is stopped.
124
107
  */
125
108
  async function mobileStopLogsBroadcast() {
126
- const pathname = WEBSOCKET_ENDPOINT(/** @type {string} */ (this.sessionId));
127
- const server = /** @type {import('@appium/types').AppiumServer} */ (this.server);
109
+ const pathname = WEBSOCKET_ENDPOINT(this.sessionId);
110
+ const server = this.server;
128
111
  if (lodash_1.default.isEmpty(await server.getWebSocketHandlers(pathname))) {
129
112
  return;
130
113
  }
@@ -133,30 +116,32 @@ async function mobileStopLogsBroadcast() {
133
116
  await server.removeWebSocketHandler(pathname);
134
117
  }
135
118
  /**
136
- * @this {import('../driver').AndroidDriver}
137
- * @returns {Promise<string[]>}
119
+ * Gets the list of available log types.
120
+ *
121
+ * @returns Promise that resolves to an array of log type names.
138
122
  */
139
123
  async function getLogTypes() {
140
124
  // XXX why doesn't `super` work here?
141
125
  const nativeLogTypes = await driver_1.BaseDriver.prototype.getLogTypes.call(this);
142
126
  if (this.isWebContext()) {
143
- const webLogTypes = /** @type {string[]} */ (await /** @type {import('appium-chromedriver').Chromedriver} */ (this.chromedriver).jwproxy.command('/log/types', 'GET'));
127
+ const webLogTypes = await this.chromedriver.jwproxy.command('/log/types', 'GET');
144
128
  return [...nativeLogTypes, ...webLogTypes];
145
129
  }
146
130
  return nativeLogTypes;
147
131
  }
148
132
  /**
133
+ * Assigns a BiDi log listener to an event emitter.
134
+ *
149
135
  * https://w3c.github.io/webdriver-bidi/#event-log-entryAdded
150
136
  *
151
- * @template {import('node:events').EventEmitter} EE
152
- * @this {import('../driver').AndroidDriver}
153
- * @param {EE} logEmitter
154
- * @param {BiDiListenerProperties} properties
155
- * @returns {[EE, LogListener]}
137
+ * @template EE The event emitter type.
138
+ * @param logEmitter The event emitter to attach the listener to.
139
+ * @param properties The BiDi listener properties.
140
+ * @returns A tuple containing the event emitter and the listener function.
156
141
  */
157
142
  function assignBiDiLogListener(logEmitter, properties) {
158
143
  const { type, context = helpers_1.NATIVE_WIN, srcEventName = 'output', entryTransformer, } = properties;
159
- const listener = (/** @type {import('../utils').LogEntry} */ logEntry) => {
144
+ const listener = (logEntry) => {
160
145
  const finalEntry = entryTransformer ? entryTransformer(logEntry) : logEntry;
161
146
  this.eventEmitter.emit(constants_1.BIDI_EVENT_NAME, (0, models_1.makeLogEntryAddedEvent)(finalEntry, context, type));
162
147
  };
@@ -164,33 +149,24 @@ function assignBiDiLogListener(logEmitter, properties) {
164
149
  return [logEmitter, listener];
165
150
  }
166
151
  /**
167
- * @this {import('../driver').AndroidDriver}
168
- * @param {string} logType
169
- * @returns {Promise<any>}
152
+ * Gets logs of a specific type.
153
+ *
154
+ * @param logType The type of logs to retrieve.
155
+ * @returns Promise that resolves to the logs for the specified type.
170
156
  */
171
157
  async function getLog(logType) {
172
158
  if (this.isWebContext() && !lodash_1.default.keys(this.supportedLogTypes).includes(logType)) {
173
- return await /** @type {import('appium-chromedriver').Chromedriver} */ (this.chromedriver).jwproxy.command('/log', 'POST', { type: logType });
159
+ return await this.chromedriver.jwproxy.command('/log', 'POST', { type: logType });
174
160
  }
175
- // XXX why doesn't `super` work here?
176
161
  return await driver_1.BaseDriver.prototype.getLog.call(this, logType);
177
162
  }
178
163
  // #region Internal helpers
179
164
  /**
180
- * @param {string} sessionId
181
- * @returns {string}
165
+ * Generates the websocket endpoint path for logcat broadcasting.
166
+ *
167
+ * @param sessionId The session ID.
168
+ * @returns The websocket endpoint path.
182
169
  */
183
170
  const WEBSOCKET_ENDPOINT = (sessionId) => `${driver_1.DEFAULT_WS_PATHNAME_PREFIX}/session/${sessionId}/appium/device/logcat`;
184
171
  // #endregion
185
- /**
186
- * @typedef {import('appium-adb').ADB} ADB
187
- */
188
- /**
189
- * @typedef {Object} BiDiListenerProperties
190
- * @property {string} type
191
- * @property {string} [srcEventName='output']
192
- * @property {string} [context=NATIVE_WIN]
193
- * @property {(x: Object) => import('../utils').LogEntry} [entryTransformer]
194
- */
195
- /** @typedef {(logEntry: import('../utils').LogEntry) => any} LogListener */
196
172
  //# sourceMappingURL=log.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../../lib/commands/log.js"],"names":[],"mappings":";;;;;;AA6DA,4DAsDC;AASD,0DAYC;AAMD,kCAYC;AAWD,sDAaC;AAOD,wBAQC;AAjMD,0CAAqE;AACrE,oDAAuB;AACvB,sD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