appium-android-driver 5.14.6 → 6.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.
Files changed (193) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/index.d.ts +282 -0
  3. package/build/index.d.ts.map +1 -0
  4. package/build/index.js.map +1 -0
  5. package/build/lib/commands/actions.d.ts +6 -224
  6. package/build/lib/commands/actions.d.ts.map +1 -1
  7. package/build/lib/commands/actions.js +306 -405
  8. package/build/lib/commands/actions.js.map +1 -1
  9. package/build/lib/commands/alert.d.ts +7 -9
  10. package/build/lib/commands/alert.d.ts.map +1 -1
  11. package/build/lib/commands/alert.js +24 -18
  12. package/build/lib/commands/alert.js.map +1 -1
  13. package/build/lib/commands/app-management.d.ts +7 -313
  14. package/build/lib/commands/app-management.d.ts.map +1 -1
  15. package/build/lib/commands/app-management.js +135 -293
  16. package/build/lib/commands/app-management.js.map +1 -1
  17. package/build/lib/commands/context.d.ts +8 -92
  18. package/build/lib/commands/context.d.ts.map +1 -1
  19. package/build/lib/commands/context.js +381 -439
  20. package/build/lib/commands/context.js.map +1 -1
  21. package/build/lib/commands/element.d.ts +8 -35
  22. package/build/lib/commands/element.d.ts.map +1 -1
  23. package/build/lib/commands/element.js +153 -136
  24. package/build/lib/commands/element.js.map +1 -1
  25. package/build/lib/commands/emu-console.d.ts +6 -48
  26. package/build/lib/commands/emu-console.d.ts.map +1 -1
  27. package/build/lib/commands/emu-console.js +19 -34
  28. package/build/lib/commands/emu-console.js.map +1 -1
  29. package/build/lib/commands/execute.d.ts +6 -5
  30. package/build/lib/commands/execute.d.ts.map +1 -1
  31. package/build/lib/commands/execute.js +77 -66
  32. package/build/lib/commands/execute.js.map +1 -1
  33. package/build/lib/commands/file-actions.d.ts +7 -128
  34. package/build/lib/commands/file-actions.d.ts.map +1 -1
  35. package/build/lib/commands/file-actions.js +183 -219
  36. package/build/lib/commands/file-actions.js.map +1 -1
  37. package/build/lib/commands/find.d.ts +8 -12
  38. package/build/lib/commands/find.d.ts.map +1 -1
  39. package/build/lib/commands/find.js +19 -23
  40. package/build/lib/commands/find.js.map +1 -1
  41. package/build/lib/commands/general.d.ts +9 -132
  42. package/build/lib/commands/general.d.ts.map +1 -1
  43. package/build/lib/commands/general.js +281 -312
  44. package/build/lib/commands/general.js.map +1 -1
  45. package/build/lib/commands/ime.d.ts +7 -10
  46. package/build/lib/commands/ime.d.ts.map +1 -1
  47. package/build/lib/commands/ime.js +47 -35
  48. package/build/lib/commands/ime.js.map +1 -1
  49. package/build/lib/commands/index.d.ts +27 -2
  50. package/build/lib/commands/index.d.ts.map +1 -1
  51. package/build/lib/commands/index.js +41 -19
  52. package/build/lib/commands/index.js.map +1 -1
  53. package/build/lib/commands/intent.d.ts +7 -417
  54. package/build/lib/commands/intent.d.ts.map +1 -1
  55. package/build/lib/commands/intent.js +104 -216
  56. package/build/lib/commands/intent.js.map +1 -1
  57. package/build/lib/commands/keyboard.d.ts +6 -5
  58. package/build/lib/commands/keyboard.d.ts.map +1 -1
  59. package/build/lib/commands/keyboard.js +16 -8
  60. package/build/lib/commands/keyboard.js.map +1 -1
  61. package/build/lib/commands/log.d.ts +7 -44
  62. package/build/lib/commands/log.d.ts.map +1 -1
  63. package/build/lib/commands/log.js +146 -108
  64. package/build/lib/commands/log.js.map +1 -1
  65. package/build/lib/commands/media-projection.d.ts +7 -143
  66. package/build/lib/commands/media-projection.d.ts.map +1 -1
  67. package/build/lib/commands/media-projection.js +113 -140
  68. package/build/lib/commands/media-projection.js.map +1 -1
  69. package/build/lib/commands/mixins.d.ts +740 -0
  70. package/build/lib/commands/mixins.d.ts.map +1 -0
  71. package/build/lib/commands/mixins.js +19 -0
  72. package/build/lib/commands/mixins.js.map +1 -0
  73. package/build/lib/commands/network.d.ts +7 -138
  74. package/build/lib/commands/network.d.ts.map +1 -1
  75. package/build/lib/commands/network.js +212 -254
  76. package/build/lib/commands/network.js.map +1 -1
  77. package/build/lib/commands/performance.d.ts +24 -70
  78. package/build/lib/commands/performance.d.ts.map +1 -1
  79. package/build/lib/commands/performance.js +144 -100
  80. package/build/lib/commands/performance.js.map +1 -1
  81. package/build/lib/commands/permissions.d.ts +8 -92
  82. package/build/lib/commands/permissions.d.ts.map +1 -1
  83. package/build/lib/commands/permissions.js +75 -87
  84. package/build/lib/commands/permissions.js.map +1 -1
  85. package/build/lib/commands/recordscreen.d.ts +7 -193
  86. package/build/lib/commands/recordscreen.d.ts.map +1 -1
  87. package/build/lib/commands/recordscreen.js +151 -182
  88. package/build/lib/commands/recordscreen.js.map +1 -1
  89. package/build/lib/commands/shell.d.ts +7 -7
  90. package/build/lib/commands/shell.d.ts.map +1 -1
  91. package/build/lib/commands/shell.js +40 -33
  92. package/build/lib/commands/shell.js.map +1 -1
  93. package/build/lib/commands/streamscreen.d.ts +9 -103
  94. package/build/lib/commands/streamscreen.d.ts.map +1 -1
  95. package/build/lib/commands/streamscreen.js +261 -218
  96. package/build/lib/commands/streamscreen.js.map +1 -1
  97. package/build/lib/commands/system-bars.d.ts +22 -90
  98. package/build/lib/commands/system-bars.d.ts.map +1 -1
  99. package/build/lib/commands/system-bars.js +76 -74
  100. package/build/lib/commands/system-bars.js.map +1 -1
  101. package/build/lib/commands/touch.d.ts +10 -29
  102. package/build/lib/commands/touch.d.ts.map +1 -1
  103. package/build/lib/commands/touch.js +301 -285
  104. package/build/lib/commands/touch.js.map +1 -1
  105. package/build/lib/commands/types.d.ts +978 -0
  106. package/build/lib/commands/types.d.ts.map +1 -0
  107. package/build/lib/commands/types.js +3 -0
  108. package/build/lib/commands/types.js.map +1 -0
  109. package/build/lib/constraints.d.ts +291 -0
  110. package/build/lib/constraints.d.ts.map +1 -0
  111. package/build/lib/constraints.js +300 -0
  112. package/build/lib/constraints.js.map +1 -0
  113. package/build/lib/driver.d.ts +68 -37
  114. package/build/lib/driver.d.ts.map +1 -1
  115. package/build/lib/driver.js +123 -80
  116. package/build/lib/driver.js.map +1 -1
  117. package/build/lib/helpers/android.d.ts +164 -0
  118. package/build/lib/helpers/android.d.ts.map +1 -0
  119. package/build/lib/helpers/android.js +819 -0
  120. package/build/lib/helpers/android.js.map +1 -0
  121. package/build/lib/helpers/index.d.ts +7 -0
  122. package/build/lib/helpers/index.d.ts.map +1 -0
  123. package/build/lib/helpers/index.js +29 -0
  124. package/build/lib/helpers/index.js.map +1 -0
  125. package/build/lib/helpers/types.d.ts +121 -0
  126. package/build/lib/helpers/types.d.ts.map +1 -0
  127. package/build/lib/helpers/types.js +3 -0
  128. package/build/lib/helpers/types.js.map +1 -0
  129. package/build/lib/helpers/unlock.d.ts +32 -0
  130. package/build/lib/helpers/unlock.d.ts.map +1 -0
  131. package/build/lib/helpers/unlock.js +273 -0
  132. package/build/lib/helpers/unlock.js.map +1 -0
  133. package/build/lib/helpers/webview.d.ts +74 -0
  134. package/build/lib/helpers/webview.d.ts.map +1 -0
  135. package/build/lib/helpers/webview.js +421 -0
  136. package/build/lib/helpers/webview.js.map +1 -0
  137. package/build/lib/index.d.ts +9 -0
  138. package/build/lib/index.d.ts.map +1 -0
  139. package/build/lib/index.js +37 -0
  140. package/build/lib/index.js.map +1 -0
  141. package/build/lib/method-map.d.ts +0 -8
  142. package/build/lib/method-map.d.ts.map +1 -1
  143. package/build/lib/method-map.js +63 -74
  144. package/build/lib/method-map.js.map +1 -1
  145. package/build/lib/stubs.d.ts +0 -1
  146. package/build/lib/stubs.d.ts.map +1 -1
  147. package/build/lib/stubs.js +1 -0
  148. package/build/lib/stubs.js.map +1 -1
  149. package/build/lib/utils.d.ts +1 -1
  150. package/build/lib/utils.d.ts.map +1 -1
  151. package/lib/commands/actions.js +351 -464
  152. package/lib/commands/alert.js +27 -17
  153. package/lib/commands/app-management.js +156 -314
  154. package/lib/commands/context.js +457 -441
  155. package/lib/commands/element.js +201 -157
  156. package/lib/commands/emu-console.js +25 -45
  157. package/lib/commands/execute.js +106 -90
  158. package/lib/commands/file-actions.js +222 -240
  159. package/lib/commands/find.ts +103 -0
  160. package/lib/commands/general.js +327 -339
  161. package/lib/commands/ime.js +50 -34
  162. package/lib/commands/{index.js → index.ts} +20 -24
  163. package/lib/commands/intent.js +108 -249
  164. package/lib/commands/keyboard.js +20 -8
  165. package/lib/commands/log.js +172 -116
  166. package/lib/commands/media-projection.js +134 -161
  167. package/lib/commands/mixins.ts +966 -0
  168. package/lib/commands/network.js +252 -281
  169. package/lib/commands/performance.js +203 -132
  170. package/lib/commands/permissions.js +108 -109
  171. package/lib/commands/recordscreen.js +212 -209
  172. package/lib/commands/shell.js +51 -40
  173. package/lib/commands/streamscreen.js +355 -289
  174. package/lib/commands/system-bars.js +92 -83
  175. package/lib/commands/touch.js +357 -294
  176. package/lib/commands/types.ts +1097 -0
  177. package/lib/{desired-caps.js → constraints.ts} +106 -103
  178. package/lib/{driver.js → driver.ts} +278 -132
  179. package/lib/helpers/android.ts +1143 -0
  180. package/lib/helpers/index.ts +6 -0
  181. package/lib/helpers/types.ts +134 -0
  182. package/lib/helpers/unlock.ts +329 -0
  183. package/lib/helpers/webview.ts +582 -0
  184. package/lib/index.ts +18 -0
  185. package/lib/method-map.js +87 -98
  186. package/lib/stubs.ts +0 -1
  187. package/package.json +26 -19
  188. package/index.js +0 -24
  189. package/lib/android-helpers.js +0 -983
  190. package/lib/commands/coverage.js +0 -18
  191. package/lib/commands/find.js +0 -82
  192. package/lib/unlock-helpers.js +0 -278
  193. package/lib/webview-helpers.js +0 -602
@@ -1,104 +1,10 @@
1
- export default commands;
2
- export type StartScreenStreamingOptions = {
3
- /**
4
- * - The scaled width of the device's screen. If unset then the script will assign it
5
- * to the actual screen width measured in pixels.
6
- */
7
- width: number | null;
8
- /**
9
- * - The scaled height of the device's screen. If unset then the script will assign it
10
- * to the actual screen height measured in pixels.
11
- */
12
- height: number | null;
13
- /**
14
- * - The video bit rate for the video, in bits per second.
15
- * The default value is 4000000 (4 Mb/s). You can increase the bit rate to improve video quality,
16
- * but doing so results in larger movie files.
17
- */
18
- bitRate: number | null;
19
- /**
20
- * [127.0.0.1] - The IP address/host name to start the MJPEG server on.
21
- * You can set it to `0.0.0.0` to trigger the broadcast on all available network interfaces.
22
- */
23
- host: string | null;
24
- /**
25
- * - The HTTP request path the MJPEG server should be available on.
26
- * If unset then any pathname on the given `host`/`port` combination will work. Note that the value
27
- * should always start with a single slash: `/`
28
- */
29
- pathname: string | null;
30
- /**
31
- * [8094] - The port number to start the internal TCP MJPEG broadcast on.
32
- * This type of broadcast always starts on the loopback interface (`127.0.0.1`).
33
- */
34
- tcpPort: number | null;
35
- /**
36
- * [8093] - The port number to start the MJPEG server on.
37
- */
38
- port: number | null;
39
- /**
40
- * [70] - The quality value for the streamed JPEG images.
41
- * This number should be in range [1, 100], where 100 is the best quality.
42
- */
43
- quality: number | null;
44
- /**
45
- * [false] - If set to `true` then GStreamer pipeline will
46
- * increase the dimensions of the resulting images to properly fit images in both landscape and
47
- * portrait orientations. Set it to `true` if the device rotation is not going to be the same during the
48
- * broadcasting session.
49
- */
50
- considerRotation: boolean | null;
51
- /**
52
- * [false] - Whether to log GStreamer pipeline events into
53
- * the standard log output. Might be useful for debugging purposes.
54
- */
55
- logPipelineDetails: boolean | null;
56
- };
57
- declare namespace commands {
58
- /**
59
- * @typedef {Object} StartScreenStreamingOptions
60
- *
61
- * @property {?number} width - The scaled width of the device's screen. If unset then the script will assign it
62
- * to the actual screen width measured in pixels.
63
- * @property {?number} height - The scaled height of the device's screen. If unset then the script will assign it
64
- * to the actual screen height measured in pixels.
65
- * @property {?number} bitRate - The video bit rate for the video, in bits per second.
66
- * The default value is 4000000 (4 Mb/s). You can increase the bit rate to improve video quality,
67
- * but doing so results in larger movie files.
68
- * @property {?string} host [127.0.0.1] - The IP address/host name to start the MJPEG server on.
69
- * You can set it to `0.0.0.0` to trigger the broadcast on all available network interfaces.
70
- * @property {?string} pathname - The HTTP request path the MJPEG server should be available on.
71
- * If unset then any pathname on the given `host`/`port` combination will work. Note that the value
72
- * should always start with a single slash: `/`
73
- * @property {?number} tcpPort [8094] - The port number to start the internal TCP MJPEG broadcast on.
74
- * This type of broadcast always starts on the loopback interface (`127.0.0.1`).
75
- * @property {?number} port [8093] - The port number to start the MJPEG server on.
76
- * @property {?number} quality [70] - The quality value for the streamed JPEG images.
77
- * This number should be in range [1, 100], where 100 is the best quality.
78
- * @property {?boolean} considerRotation [false] - If set to `true` then GStreamer pipeline will
79
- * increase the dimensions of the resulting images to properly fit images in both landscape and
80
- * portrait orientations. Set it to `true` if the device rotation is not going to be the same during the
81
- * broadcasting session.
82
- * @property {?boolean} logPipelineDetails [false] - Whether to log GStreamer pipeline events into
83
- * the standard log output. Might be useful for debugging purposes.
84
- */
85
- /**
86
- * Starts device screen broadcast by creating MJPEG server.
87
- * Multiple calls to this method have no effect unless the previous streaming
88
- * session is stopped.
89
- * This method only works if the `adb_screen_streaming` feature is
90
- * enabled on the server side.
91
- *
92
- * @param {?StartScreenStreamingOptions} options - The available options.
93
- * @throws {Error} If screen streaming has failed to start or
94
- * is not supported on the host system or
95
- * the corresponding server feature is not enabled.
96
- */
97
- function mobileStartScreenStreaming(options?: StartScreenStreamingOptions | null): Promise<void>;
98
- /**
99
- * Stop screen streaming.
100
- * If no screen streaming server has been started then nothing is done.
101
- */
102
- function mobileStopScreenStreaming(): Promise<void>;
103
- }
1
+ export default StreamScreenMixin;
2
+ export type ADB = import('appium-adb').ADB;
3
+ export type AppiumLogger = import('@appium/types').AppiumLogger;
4
+ export type DeviceInfo = import('./types').DeviceInfo;
5
+ /**
6
+ * @type {import('./mixins').StreamScreenMixin & ThisType<import('../driver').AndroidDriver>}
7
+ * @satisfies {import('@appium/types').ExternalDriver}
8
+ */
9
+ declare const StreamScreenMixin: import('./mixins').StreamScreenMixin & ThisType<import('../driver').AndroidDriver>;
104
10
  //# sourceMappingURL=streamscreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"streamscreen.d.ts","sourceRoot":"","sources":["../../../lib/commands/streamscreen.js"],"names":[],"mappings":";;;;;;WA2Oe,MAAM;;;;;YAEN,MAAM;;;;;;aAEN,MAAM;;;;;UAGN,MAAM;;;;;;cAEN,MAAM;;;;;aAGN,MAAM;;;;UAEN,MAAM;;;;;aACN,MAAM;;;;;;;sBAEN,OAAO;;;;;wBAIP,OAAO;;;IAxBtB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IAEH;;;;;;;;;;;OAWG;IACH,iGAoIC;IAED;;;OAGG;IACH,oDAuCC"}
1
+ {"version":3,"file":"streamscreen.d.ts","sourceRoot":"","sources":["../../../lib/commands/streamscreen.js"],"names":[],"mappings":";kBAmgBa,OAAO,YAAY,EAAE,GAAG;2BACxB,OAAO,eAAe,EAAE,YAAY;yBACpC,OAAO,SAAS,EAAE,UAAU;AAvMzC;;;GAGG;AACH,iCAHU,OAAO,UAAU,EAAE,iBAAiB,GAAG,SAAS,OAAO,WAAW,EAAE,aAAa,CAAC,CA6L1F"}