appium-uiautomator2-driver 6.7.5 → 6.7.7

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 (76) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/actions.d.ts +26 -29
  3. package/build/lib/commands/actions.d.ts.map +1 -1
  4. package/build/lib/commands/actions.js +19 -27
  5. package/build/lib/commands/actions.js.map +1 -1
  6. package/build/lib/commands/alert.d.ts +14 -22
  7. package/build/lib/commands/alert.d.ts.map +1 -1
  8. package/build/lib/commands/alert.js +8 -19
  9. package/build/lib/commands/alert.js.map +1 -1
  10. package/build/lib/commands/app-management.d.ts +7 -10
  11. package/build/lib/commands/app-management.d.ts.map +1 -1
  12. package/build/lib/commands/app-management.js +4 -14
  13. package/build/lib/commands/app-management.js.map +1 -1
  14. package/build/lib/commands/battery.d.ts +4 -5
  15. package/build/lib/commands/battery.d.ts.map +1 -1
  16. package/build/lib/commands/battery.js +4 -9
  17. package/build/lib/commands/battery.js.map +1 -1
  18. package/build/lib/commands/clipboard.d.ts +9 -13
  19. package/build/lib/commands/clipboard.d.ts.map +1 -1
  20. package/build/lib/commands/clipboard.js +7 -14
  21. package/build/lib/commands/clipboard.js.map +1 -1
  22. package/build/lib/commands/element.d.ts +64 -69
  23. package/build/lib/commands/element.d.ts.map +1 -1
  24. package/build/lib/commands/element.js +64 -84
  25. package/build/lib/commands/element.js.map +1 -1
  26. package/build/lib/commands/find.d.ts +13 -9
  27. package/build/lib/commands/find.d.ts.map +1 -1
  28. package/build/lib/commands/find.js +4 -16
  29. package/build/lib/commands/find.js.map +1 -1
  30. package/build/lib/commands/gestures.d.ts +87 -189
  31. package/build/lib/commands/gestures.d.ts.map +1 -1
  32. package/build/lib/commands/gestures.js +77 -204
  33. package/build/lib/commands/gestures.js.map +1 -1
  34. package/build/lib/commands/keyboard.d.ts +30 -41
  35. package/build/lib/commands/keyboard.d.ts.map +1 -1
  36. package/build/lib/commands/keyboard.js +22 -37
  37. package/build/lib/commands/keyboard.js.map +1 -1
  38. package/build/lib/commands/misc.d.ts +19 -35
  39. package/build/lib/commands/misc.d.ts.map +1 -1
  40. package/build/lib/commands/misc.js +15 -30
  41. package/build/lib/commands/misc.js.map +1 -1
  42. package/build/lib/commands/navigation.d.ts +11 -16
  43. package/build/lib/commands/navigation.d.ts.map +1 -1
  44. package/build/lib/commands/navigation.js +9 -17
  45. package/build/lib/commands/navigation.js.map +1 -1
  46. package/build/lib/commands/viewport.d.ts +23 -22
  47. package/build/lib/commands/viewport.d.ts.map +1 -1
  48. package/build/lib/commands/viewport.js +17 -24
  49. package/build/lib/commands/viewport.js.map +1 -1
  50. package/build/tsconfig.tsbuildinfo +1 -1
  51. package/lib/commands/actions.ts +95 -0
  52. package/lib/commands/alert.ts +46 -0
  53. package/lib/commands/app-management.ts +25 -0
  54. package/lib/commands/battery.ts +19 -0
  55. package/lib/commands/clipboard.ts +29 -0
  56. package/lib/commands/element.ts +180 -0
  57. package/lib/commands/find.ts +48 -0
  58. package/lib/commands/gestures.ts +297 -0
  59. package/lib/commands/keyboard.ts +102 -0
  60. package/lib/commands/misc.ts +67 -0
  61. package/lib/commands/navigation.ts +32 -0
  62. package/lib/commands/viewport.ts +78 -0
  63. package/npm-shrinkwrap.json +16 -46
  64. package/package.json +1 -1
  65. package/lib/commands/actions.js +0 -107
  66. package/lib/commands/alert.js +0 -63
  67. package/lib/commands/app-management.js +0 -32
  68. package/lib/commands/battery.js +0 -23
  69. package/lib/commands/clipboard.js +0 -37
  70. package/lib/commands/element.js +0 -261
  71. package/lib/commands/find.js +0 -47
  72. package/lib/commands/gestures.js +0 -446
  73. package/lib/commands/keyboard.js +0 -108
  74. package/lib/commands/misc.js +0 -109
  75. package/lib/commands/navigation.js +0 -33
  76. package/lib/commands/viewport.js +0 -100
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../lib/commands/keyboard.js"],"names":[],"mappings":";;;;;AAUA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AS;QACT,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,UAAU,CAE9B,IAA+B;IAE/B,IAAI,gBAAC,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,eAAM,CAAC,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,UAAU,CAAkC,MAAoB;IACpF,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACnE,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,QAAQ,CAE5B,OAAwB,EACxB,SAAkB;IAElB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC;IAClD,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC"}
@@ -1,51 +1,35 @@
1
+ import type { Orientation, StringRecord } from '@appium/types';
2
+ import type { AndroidUiautomator2Driver } from '../driver';
1
3
  /**
2
- * @this {AndroidUiautomator2Driver}
3
- * @returns {Promise<string>}
4
+ * Retrieves the current page source.
5
+ * @returns The XML page source of the current screen.
4
6
  */
5
- export function getPageSource(this: import("../driver").AndroidUiautomator2Driver): Promise<string>;
7
+ export declare function getPageSource(this: AndroidUiautomator2Driver): Promise<string>;
6
8
  /**
7
- * @this {AndroidUiautomator2Driver}
8
- * @returns {Promise<import('@appium/types').Orientation>}
9
+ * Gets the current device orientation.
10
+ * @returns The current device orientation ('LANDSCAPE' or 'PORTRAIT').
9
11
  */
10
- export function getOrientation(this: import("../driver").AndroidUiautomator2Driver): Promise<import("@appium/types").Orientation>;
12
+ export declare function getOrientation(this: AndroidUiautomator2Driver): Promise<Orientation>;
11
13
  /**
12
- * @this {AndroidUiautomator2Driver}
13
- * @param {import('@appium/types').Orientation} orientation
14
- * @returns {Promise<void>}
14
+ * Sets the device orientation.
15
+ * @param orientation - The desired orientation ('LANDSCAPE' or 'PORTRAIT').
15
16
  */
16
- export function setOrientation(this: import("../driver").AndroidUiautomator2Driver, orientation: import("@appium/types").Orientation): Promise<void>;
17
+ export declare function setOrientation(this: AndroidUiautomator2Driver, orientation: Orientation): Promise<void>;
17
18
  /**
18
- * @this {AndroidUiautomator2Driver}
19
- * @returns {Promise<void>}
19
+ * Opens the device notification shade.
20
20
  */
21
- export function openNotifications(this: import("../driver").AndroidUiautomator2Driver): Promise<void>;
21
+ export declare function openNotifications(this: AndroidUiautomator2Driver): Promise<void>;
22
22
  /**
23
- * Stop proxying to any Chromedriver and redirect to uiautomator2
24
- * @this {AndroidUiautomator2Driver}
25
- * @returns {void}
23
+ * Stops proxying to Chromedriver and restores UIA2 proxy.
26
24
  */
27
- export function suspendChromedriverProxy(this: import("../driver").AndroidUiautomator2Driver): void;
28
- export class suspendChromedriverProxy {
29
- chromedriver: any;
30
- proxyReqRes: any;
31
- proxyCommand: (<TReq = any, TRes = unknown>(url: string, method: import("@appium/types").HTTPMethod, body?: TReq) => Promise<TRes>) | undefined;
32
- jwpProxyActive: boolean | undefined;
33
- }
25
+ export declare function suspendChromedriverProxy(this: AndroidUiautomator2Driver): void;
34
26
  /**
35
- * The list of available info entries can be found at
36
- * https://github.com/appium/appium-uiautomator2-server/blob/master/app/src/main/java/io/appium/uiautomator2/handler/GetDeviceInfo.java
37
- * @this {AndroidUiautomator2Driver}
38
- * @returns {Promise<StringRecord>}
27
+ * Retrieves device info via the UIA2 server.
28
+ * @returns Device information as a string record.
39
29
  */
40
- export function mobileGetDeviceInfo(this: import("../driver").AndroidUiautomator2Driver): Promise<StringRecord>;
30
+ export declare function mobileGetDeviceInfo(this: AndroidUiautomator2Driver): Promise<StringRecord>;
41
31
  /**
42
32
  * Resets the accessibility cache on the device.
43
- * This can be useful when the accessibility service cache becomes stale
44
- * and needs to be refreshed to reflect the current UI state.
45
- * @this {AndroidUiautomator2Driver}
46
- * @returns {Promise<void>}
47
33
  */
48
- export function mobileResetAccessibilityCache(this: import("../driver").AndroidUiautomator2Driver): Promise<void>;
49
- export type StringRecord<T = any> = import("@appium/types").StringRecord<T>;
50
- export type AndroidUiautomator2Driver<T = any> = import("../driver").AndroidUiautomator2Driver;
34
+ export declare function mobileResetAccessibilityCache(this: AndroidUiautomator2Driver): Promise<void>;
51
35
  //# sourceMappingURL=misc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../lib/commands/misc.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oFAFa,OAAO,CAAC,MAAM,CAAC,CAU3B;AAED;;;GAGG;AACH,qFAFa,OAAO,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC,CAUxD;AAED;;;;GAIG;AACH,iGAHW,OAAO,eAAe,EAAE,WAAW,GACjC,OAAO,CAAC,IAAI,CAAC,CASzB;AAED;;;GAGG;AACH,wFAFa,OAAO,CAAC,IAAI,CAAC,CAQzB;AAED;;;;GAIG;AACH,+FAFa,IAAI,CAehB;;IARC,kBAA6B;IAC7B,iBAEC;IACD,gJAEC;IACD,oCAA0B;;AAG5B;;;;;GAKG;AACH,0FAFa,OAAO,CAAC,YAAY,CAAC,CASjC;AAED;;;;;;GAMG;AACH,oGAFa,OAAO,CAAC,IAAI,CAAC,CAQzB;yBAGa,CAAC,UACF,OAAO,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC;sCADtC,CAAC,UAEF,OAAO,WAAW,EAAE,yBAAyB"}
1
+ {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../lib/commands/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,WAAW,CAAC;AAEzD;;;GAGG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,CAEpF;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,WAAW,CAAC,CAE1F;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,yBAAyB,EAC/B,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,CAS9E;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAEhG;AAED;;GAEG;AACH,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAElG"}
@@ -8,39 +8,35 @@ exports.suspendChromedriverProxy = suspendChromedriverProxy;
8
8
  exports.mobileGetDeviceInfo = mobileGetDeviceInfo;
9
9
  exports.mobileResetAccessibilityCache = mobileResetAccessibilityCache;
10
10
  /**
11
- * @this {AndroidUiautomator2Driver}
12
- * @returns {Promise<string>}
11
+ * Retrieves the current page source.
12
+ * @returns The XML page source of the current screen.
13
13
  */
14
14
  async function getPageSource() {
15
15
  return String(await this.uiautomator2.jwproxy.command('/source', 'GET', {}));
16
16
  }
17
17
  /**
18
- * @this {AndroidUiautomator2Driver}
19
- * @returns {Promise<import('@appium/types').Orientation>}
18
+ * Gets the current device orientation.
19
+ * @returns The current device orientation ('LANDSCAPE' or 'PORTRAIT').
20
20
  */
21
21
  async function getOrientation() {
22
- return /** @type {import('@appium/types').Orientation} */ (await this.uiautomator2.jwproxy.command(`/orientation`, 'GET', {}));
22
+ return (await this.uiautomator2.jwproxy.command(`/orientation`, 'GET', {}));
23
23
  }
24
24
  /**
25
- * @this {AndroidUiautomator2Driver}
26
- * @param {import('@appium/types').Orientation} orientation
27
- * @returns {Promise<void>}
25
+ * Sets the device orientation.
26
+ * @param orientation - The desired orientation ('LANDSCAPE' or 'PORTRAIT').
28
27
  */
29
28
  async function setOrientation(orientation) {
30
- orientation = /** @type {import('@appium/types').Orientation} */ (orientation.toUpperCase());
31
- await this.uiautomator2.jwproxy.command(`/orientation`, 'POST', { orientation });
29
+ const normalizedOrientation = orientation.toUpperCase();
30
+ await this.uiautomator2.jwproxy.command(`/orientation`, 'POST', { orientation: normalizedOrientation });
32
31
  }
33
32
  /**
34
- * @this {AndroidUiautomator2Driver}
35
- * @returns {Promise<void>}
33
+ * Opens the device notification shade.
36
34
  */
37
35
  async function openNotifications() {
38
36
  await this.uiautomator2.jwproxy.command('/appium/device/open_notifications', 'POST', {});
39
37
  }
40
38
  /**
41
- * Stop proxying to any Chromedriver and redirect to uiautomator2
42
- * @this {AndroidUiautomator2Driver}
43
- * @returns {void}
39
+ * Stops proxying to Chromedriver and restores UIA2 proxy.
44
40
  */
45
41
  function suspendChromedriverProxy() {
46
42
  if (!this.uiautomator2?.proxyReqRes || !this.uiautomator2?.proxyCommand) {
@@ -48,31 +44,20 @@ function suspendChromedriverProxy() {
48
44
  }
49
45
  this.chromedriver = undefined;
50
46
  this.proxyReqRes = this.uiautomator2.proxyReqRes.bind(this.uiautomator2);
51
- this.proxyCommand = /** @type {typeof this.proxyCommand} */ (this.uiautomator2.proxyCommand.bind(this.uiautomator2));
47
+ this.proxyCommand = this.uiautomator2.proxyCommand.bind(this.uiautomator2);
52
48
  this.jwpProxyActive = true;
53
49
  }
54
50
  /**
55
- * The list of available info entries can be found at
56
- * https://github.com/appium/appium-uiautomator2-server/blob/master/app/src/main/java/io/appium/uiautomator2/handler/GetDeviceInfo.java
57
- * @this {AndroidUiautomator2Driver}
58
- * @returns {Promise<StringRecord>}
51
+ * Retrieves device info via the UIA2 server.
52
+ * @returns Device information as a string record.
59
53
  */
60
54
  async function mobileGetDeviceInfo() {
61
- return /** @type {StringRecord} */ (await this.uiautomator2.jwproxy.command('/appium/device/info', 'GET'));
55
+ return (await this.uiautomator2.jwproxy.command('/appium/device/info', 'GET'));
62
56
  }
63
57
  /**
64
58
  * Resets the accessibility cache on the device.
65
- * This can be useful when the accessibility service cache becomes stale
66
- * and needs to be refreshed to reflect the current UI state.
67
- * @this {AndroidUiautomator2Driver}
68
- * @returns {Promise<void>}
69
59
  */
70
60
  async function mobileResetAccessibilityCache() {
71
61
  await this.uiautomator2.jwproxy.command('/appium/reset_ax_cache', 'POST', {});
72
62
  }
73
- /**
74
- * @template [T=any]
75
- * @typedef {import('@appium/types').StringRecord<T>} StringRecord
76
- * @typedef {import('../driver').AndroidUiautomator2Driver} AndroidUiautomator2Driver
77
- */
78
63
  //# sourceMappingURL=misc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"misc.js","sourceRoot":"","sources":["../../../lib/commands/misc.js"],"names":[],"mappings":";;AAIA,sCAQC;AAMD,wCAQC;AAOD,wCAOC;AAMD,8CAMC;AAOD,4DAaC;AAQD,kDAOC;AASD,sEAMC;AAtGD;;;GAGG;AACI,KAAK,UAAU,aAAa;IACjC,OAAO,MAAM,CACX,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CACrC,SAAS,EACT,KAAK,EACL,EAAE,CACH,CACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,cAAc;IAClC,OAAO,kDAAkD,CAAC,CACxD,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CACrC,cAAc,EACd,KAAK,EACL,EAAE,CACH,CACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,cAAc,CAAC,WAAW;IAC9C,WAAW,GAAG,kDAAkD,C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AI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC3E,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;AAC7B,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,mBAAmB;IACvC,OAAO,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAiB,CAAC;AACjG,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,6BAA6B;IACjD,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;AAChF,CAAC"}
@@ -1,23 +1,18 @@
1
+ import type { AndroidUiautomator2Driver } from '../driver';
1
2
  /**
2
- * @this {AndroidUiautomator2Driver}
3
- * @param {string} url
4
- * @returns {Promise<void>}
3
+ * Sets the URL for the current app.
4
+ * @param url - The URL to navigate to.
5
5
  */
6
- export function setUrl(this: import("../driver").AndroidUiautomator2Driver, url: string): Promise<void>;
6
+ export declare function setUrl(this: AndroidUiautomator2Driver, url: string): Promise<void>;
7
7
  /**
8
- * Start URL that take users directly to specific content in the app
9
- * @this {AndroidUiautomator2Driver}
10
- * @param {string} url The name of URL to start.
11
- * @param {string} [pkg] The name of the package to start the URI with.
12
- * @param {boolean} [waitForLaunch=true] If `false` then adb won't wait for
13
- * the started activity to return the control.
14
- * @returns {Promise<void>}
8
+ * Starts a URL that takes users directly to specific content in the app.
9
+ * @param url - The deep link URL to start.
10
+ * @param pkg - Optional package name to start the URI with. If not provided, uses the current app package.
11
+ * @param waitForLaunch - If false, adb won't wait for the started activity to return control. Defaults to true.
15
12
  */
16
- export function mobileDeepLink(this: import("../driver").AndroidUiautomator2Driver, url: string, pkg?: string, waitForLaunch?: boolean): Promise<void>;
13
+ export declare function mobileDeepLink(this: AndroidUiautomator2Driver, url: string, pkg?: string, waitForLaunch?: boolean): Promise<void>;
17
14
  /**
18
- * @this {AndroidUiautomator2Driver}
19
- * @returns {Promise<void>}
15
+ * Navigates back in the app.
20
16
  */
21
- export function back(this: import("../driver").AndroidUiautomator2Driver): Promise<void>;
22
- export type AndroidUiautomator2Driver = import("../driver").AndroidUiautomator2Driver;
17
+ export declare function back(this: AndroidUiautomator2Driver): Promise<void>;
23
18
  //# sourceMappingURL=navigation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../lib/commands/navigation.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,iFAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;;;;GAQG;AACH,yFANW,MAAM,QACN,MAAM,kBACN,OAAO,GAEL,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;GAGG;AACH,2EAFa,OAAO,CAAC,IAAI,CAAC,CAIzB;wCAGY,OAAO,WAAW,EAAE,yBAAyB"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../lib/commands/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,WAAW,CAAC;AAEzD;;;GAGG;AACH,wBAAsB,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAExF;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,yBAAyB,EAC/B,GAAG,EAAE,MAAM,EACX,GAAG,CAAC,EAAE,MAAM,EACZ,aAAa,GAAE,OAAc,GAC5B,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;GAEG;AACH,wBAAsB,IAAI,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEzE"}
@@ -4,33 +4,25 @@ exports.setUrl = setUrl;
4
4
  exports.mobileDeepLink = mobileDeepLink;
5
5
  exports.back = back;
6
6
  /**
7
- * @this {AndroidUiautomator2Driver}
8
- * @param {string} url
9
- * @returns {Promise<void>}
7
+ * Sets the URL for the current app.
8
+ * @param url - The URL to navigate to.
10
9
  */
11
10
  async function setUrl(url) {
12
- await this.adb.startUri(url, /** @type {string} */ (this.opts.appPackage));
11
+ await this.adb.startUri(url, this.opts.appPackage);
13
12
  }
14
13
  /**
15
- * Start URL that take users directly to specific content in the app
16
- * @this {AndroidUiautomator2Driver}
17
- * @param {string} url The name of URL to start.
18
- * @param {string} [pkg] The name of the package to start the URI with.
19
- * @param {boolean} [waitForLaunch=true] If `false` then adb won't wait for
20
- * the started activity to return the control.
21
- * @returns {Promise<void>}
14
+ * Starts a URL that takes users directly to specific content in the app.
15
+ * @param url - The deep link URL to start.
16
+ * @param pkg - Optional package name to start the URI with. If not provided, uses the current app package.
17
+ * @param waitForLaunch - If false, adb won't wait for the started activity to return control. Defaults to true.
22
18
  */
23
- async function mobileDeepLink(url, pkg, waitForLaunch) {
19
+ async function mobileDeepLink(url, pkg, waitForLaunch = true) {
24
20
  return await this.adb.startUri(url, pkg, { waitForLaunch });
25
21
  }
26
22
  /**
27
- * @this {AndroidUiautomator2Driver}
28
- * @returns {Promise<void>}
23
+ * Navigates back in the app.
29
24
  */
30
25
  async function back() {
31
26
  await this.adb.keyevent(4);
32
27
  }
33
- /**
34
- * @typedef {import('../driver').AndroidUiautomator2Driver} AndroidUiautomator2Driver
35
- */
36
28
  //# sourceMappingURL=navigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../lib/commands/navigation.js"],"names":[],"mappings":";;AAKA,wBAEC;AAWD,wCAEC;AAMD,oBAEC;AA5BD;;;;GAIG;AACI,KAAK,UAAU,MAAM,CAAC,GAAG;IAC9B,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,aAAa;IAC1D,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,EAAC,aAAa,EAAC,CAAC,CAAC;AAC5D,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,IAAI;IACxB,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC7B,CAAC;AAED;;GAEG"}
1
+ {"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../lib/commands/navigation.ts"],"names":[],"mappings":";;AAMA,wBAEC;AAQD,wCAOC;AAKD,oBAEC;AA5BD;;;GAGG;AACI,KAAK,UAAU,MAAM,CAAkC,GAAW;IACvE,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,UAAoB,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,cAAc,CAElC,GAAW,EACX,GAAY,EACZ,gBAAyB,IAAI;IAE7B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,EAAC,aAAa,EAAC,CAAC,CAAC;AAC5D,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,IAAI;IACxB,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC7B,CAAC"}
@@ -1,38 +1,39 @@
1
+ import type { Rect, Size } from '@appium/types';
2
+ import type { AndroidUiautomator2Driver } from '../driver';
3
+ import type { RelativeRect } from './types';
1
4
  /**
2
- * @this {AndroidUiautomator2Driver}
3
- * @returns {Promise<number>}
5
+ * Gets the status bar height in pixels.
6
+ * @returns The status bar height in pixels.
4
7
  */
5
- export function getStatusBarHeight(this: import("../driver").AndroidUiautomator2Driver): Promise<number>;
8
+ export declare function getStatusBarHeight(this: AndroidUiautomator2Driver): Promise<number>;
6
9
  /**
7
- * @this {AndroidUiautomator2Driver}
8
- * @returns {Promise<string>}
10
+ * Gets the device pixel ratio.
11
+ * @returns The device pixel ratio as a string.
9
12
  */
10
- export function getDevicePixelRatio(this: import("../driver").AndroidUiautomator2Driver): Promise<string>;
13
+ export declare function getDevicePixelRatio(this: AndroidUiautomator2Driver): Promise<string>;
11
14
  /**
12
- * @this {AndroidUiautomator2Driver}
13
- * @returns {Promise<import('./types').RelativeRect>}
15
+ * Gets the viewport rectangle coordinates.
16
+ * @returns The viewport rectangle (left, top, width, height), accounting for status bar height.
14
17
  */
15
- export function getViewPortRect(this: import("../driver").AndroidUiautomator2Driver): Promise<import("./types").RelativeRect>;
18
+ export declare function getViewPortRect(this: AndroidUiautomator2Driver): Promise<RelativeRect>;
16
19
  /**
17
20
  * Returns the viewport coordinates.
18
- * @this {AndroidUiautomator2Driver}
19
- * @returns {Promise<import('./types').RelativeRect>} The viewport coordinates.
21
+ * @returns The viewport rectangle (left, top, width, height).
20
22
  */
21
- export function mobileViewPortRect(this: import("../driver").AndroidUiautomator2Driver): Promise<import("./types").RelativeRect>;
23
+ export declare function mobileViewPortRect(this: AndroidUiautomator2Driver): Promise<RelativeRect>;
22
24
  /**
23
- * @this {AndroidUiautomator2Driver}
24
- * @returns {Promise<import('@appium/types').Rect>}
25
+ * Gets the window rectangle (W3C endpoint).
26
+ * @returns The window rectangle (x, y, width, height).
25
27
  */
26
- export function getWindowRect(this: import("../driver").AndroidUiautomator2Driver): Promise<import("@appium/types").Rect>;
28
+ export declare function getWindowRect(this: AndroidUiautomator2Driver): Promise<Rect>;
27
29
  /**
28
- * @this {AndroidUiautomator2Driver}
29
- * @returns {Promise<number>}
30
+ * Gets the display density.
31
+ * @returns The display density value.
30
32
  */
31
- export function getDisplayDensity(this: import("../driver").AndroidUiautomator2Driver): Promise<number>;
33
+ export declare function getDisplayDensity(this: AndroidUiautomator2Driver): Promise<number>;
32
34
  /**
33
- * @this {AndroidUiautomator2Driver}
34
- * @returns {Promise<import('@appium/types').Size>}
35
+ * Gets the window size.
36
+ * @returns The window size (width, height).
35
37
  */
36
- export function getWindowSize(this: import("../driver").AndroidUiautomator2Driver): Promise<import("@appium/types").Size>;
37
- export type AndroidUiautomator2Driver = import("../driver").AndroidUiautomator2Driver;
38
+ export declare function getWindowSize(this: AndroidUiautomator2Driver): Promise<Size>;
38
39
  //# sourceMappingURL=viewport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../lib/commands/viewport.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,yFAFa,OAAO,CAAC,MAAM,CAAC,CAS3B;AAGD;;;GAGG;AACH,0FAFa,OAAO,CAAC,MAAM,CAAC,CAQ3B;AAED;;;GAGG;AACH,sFAFa,OAAO,CAAC,OAAO,SAAS,EAAE,YAAY,CAAC,CAanD;AAED;;;;GAIG;AACH,yFAFa,OAAO,CAAC,OAAO,SAAS,EAAE,YAAY,CAAC,CAInD;AAGD;;;GAGG;AACH,oFAFa,OAAO,CAAC,OAAO,eAAe,EAAE,IAAI,CAAC,CAUjD;AAED;;;GAGG;AACH,wFAFa,OAAO,CAAC,MAAM,CAAC,CAU3B;AAED;;;GAGG;AACH,oFAFa,OAAO,CAAC,OAAO,eAAe,EAAE,IAAI,CAAC,CAUjD;wCAGY,OAAO,WAAW,EAAE,yBAAyB"}
1
+ {"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../lib/commands/viewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,CAKzF;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,CAE1F;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAW5F;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAE/F;AAED;;;GAGG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQlF;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,CAExF;AAED;;;GAGG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAElF"}
@@ -7,26 +7,24 @@ exports.mobileViewPortRect = mobileViewPortRect;
7
7
  exports.getWindowRect = getWindowRect;
8
8
  exports.getDisplayDensity = getDisplayDensity;
9
9
  exports.getWindowSize = getWindowSize;
10
- // memoized in constructor
11
10
  /**
12
- * @this {AndroidUiautomator2Driver}
13
- * @returns {Promise<number>}
11
+ * Gets the status bar height in pixels.
12
+ * @returns The status bar height in pixels.
14
13
  */
15
14
  async function getStatusBarHeight() {
16
- const { statusBar } = /** @type {{statusBar: number}} */ (await /** @type {import('../uiautomator2').UiAutomator2Server} */ (this.uiautomator2).jwproxy.command(`/appium/device/system_bars`, 'GET', {}));
15
+ const { statusBar } = (await this.uiautomator2.jwproxy.command(`/appium/device/system_bars`, 'GET', {}));
17
16
  return statusBar;
18
17
  }
19
- // memoized in constructor
20
18
  /**
21
- * @this {AndroidUiautomator2Driver}
22
- * @returns {Promise<string>}
19
+ * Gets the device pixel ratio.
20
+ * @returns The device pixel ratio as a string.
23
21
  */
24
22
  async function getDevicePixelRatio() {
25
- return String(await /** @type {import('../uiautomator2').UiAutomator2Server} */ (this.uiautomator2).jwproxy.command('/appium/device/pixel_ratio', 'GET', {}));
23
+ return String(await this.uiautomator2.jwproxy.command('/appium/device/pixel_ratio', 'GET', {}));
26
24
  }
27
25
  /**
28
- * @this {AndroidUiautomator2Driver}
29
- * @returns {Promise<import('./types').RelativeRect>}
26
+ * Gets the viewport rectangle coordinates.
27
+ * @returns The viewport rectangle (left, top, width, height), accounting for status bar height.
30
28
  */
31
29
  async function getViewPortRect() {
32
30
  const windowSize = await this.getWindowSize();
@@ -42,16 +40,14 @@ async function getViewPortRect() {
42
40
  }
43
41
  /**
44
42
  * Returns the viewport coordinates.
45
- * @this {AndroidUiautomator2Driver}
46
- * @returns {Promise<import('./types').RelativeRect>} The viewport coordinates.
43
+ * @returns The viewport rectangle (left, top, width, height).
47
44
  */
48
45
  async function mobileViewPortRect() {
49
46
  return await this.getViewPortRect();
50
47
  }
51
- // For W3C
52
48
  /**
53
- * @this {AndroidUiautomator2Driver}
54
- * @returns {Promise<import('@appium/types').Rect>}
49
+ * Gets the window rectangle (W3C endpoint).
50
+ * @returns The window rectangle (x, y, width, height).
55
51
  */
56
52
  async function getWindowRect() {
57
53
  const { width, height } = await this.getWindowSize();
@@ -63,20 +59,17 @@ async function getWindowRect() {
63
59
  };
64
60
  }
65
61
  /**
66
- * @this {AndroidUiautomator2Driver}
67
- * @returns {Promise<number>}
62
+ * Gets the display density.
63
+ * @returns The display density value.
68
64
  */
69
65
  async function getDisplayDensity() {
70
- return /** @type {number} */ (await this.uiautomator2.jwproxy.command('/appium/device/display_density', 'GET', {}));
66
+ return (await this.uiautomator2.jwproxy.command('/appium/device/display_density', 'GET', {}));
71
67
  }
72
68
  /**
73
- * @this {AndroidUiautomator2Driver}
74
- * @returns {Promise<import('@appium/types').Size>}
69
+ * Gets the window size.
70
+ * @returns The window size (width, height).
75
71
  */
76
72
  async function getWindowSize() {
77
- return /** @type {import('@appium/types').Size} */ (await this.uiautomator2.jwproxy.command('/window/current/size', 'GET', {}));
73
+ return (await this.uiautomator2.jwproxy.command('/window/current/size', 'GET', {}));
78
74
  }
79
- /**
80
- * @typedef {import('../driver').AndroidUiautomator2Driver} AndroidUiautomator2Driver
81
- */
82
75
  //# sourceMappingURL=viewport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"viewport.js","sourceRoot":"","sources":["../../../lib/commands/viewport.js"],"names":[],"mappings":";;AAMA,gDAOC;AAOD,kDAMC;AAMD,0CAWC;AAOD,gDAEC;AAOD,sCAQC;AAMD,8CAQC;AAMD,sCAQC;AA9FD,0BAA0B;AAC1B;;;GAGG;AACI,KAAK,UAAU,kBAAkB;IACtC,MAAM,EAAC,SAAS,EAAC,GAAG,kCAAkC,CAAC,CACrD,MAAM,2DAA2D,CAAC,CAChE,IAAI,CAAC,YAAY,CAClB,CAAC,OAAO,CAAC,OAAO,CAAC,4BAA4B,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3D,CAAC;IACF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,0BAA0B;AAC1B;;;GAGG;AACI,KAAK,UAAU,mBAAmB;IACvC,OAAO,MAAM,CACX,MAAM,2DAA2D,CAAC,CAChE,IAAI,CAAC,YAAY,CAClB,CAAC,OAAO,CAAC,OAAO,CAAC,4BAA4B,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3D,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,eAAe;IACnC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9C,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACxD,2EAA2E;IAC3E,4BAA4B;IAC5B,OAAO;QACL,IAAI,EAAE,CAAC;QACP,GAAG,EAAE,eAAe;QACpB,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,eAAe;KAC5C,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,kBAAkB;IACtC,OAAO,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;AACtC,CAAC;AAED,UAAU;AACV;;;GAGG;AACI,KAAK,UAAU,aAAa;IACjC,MAAM,EAAC,KAAK,EAAE,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;IACnD,OAAO;QACL,KAAK;QACL,MAAM;QACN,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,iBAAiB;IACrC,OAAO,qBAAqB,CAAC,CAC3B,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CACrC,gCAAgC,EAChC,KAAK,EACL,EAAE,CACH,CACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,aAAa;IACjC,OAAO,2CAA2C,CAAC,CACjD,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CACrC,sBAAsB,EACtB,KAAK,EACL,EAAE,CACH,CACF,CAAC;AACJ,CAAC;AAED;;GAEG"}
1
+ {"version":3,"file":"viewport.js","sourceRoot":"","sources":["../../../lib/commands/viewport.ts"],"names":[],"mappings":";;AAQA,gDAKC;AAMD,kDAEC;AAMD,0CAWC;AAMD,gDAEC;AAMD,sCAQC;AAMD,8CAEC;AAMD,sCAEC;AAxED;;;GAGG;AACI,KAAK,UAAU,kBAAkB;IACtC,MAAM,EAAC,SAAS,EAAC,GAAG,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,4BAA4B,EAAE,KAAK,EAAE,EAAE,CAAC,CAEpG,CAAC;IACF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,mBAAmB;IACvC,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,4BAA4B,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;AAClG,CAAC;AAED;;;GAGG;A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