appium-android-driver 5.14.7 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/build/lib/commands/actions.d.ts +6 -224
- package/build/lib/commands/actions.d.ts.map +1 -1
- package/build/lib/commands/actions.js +306 -405
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts +7 -9
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +24 -18
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +7 -313
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +135 -293
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/context.d.ts +8 -92
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +381 -439
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/element.d.ts +8 -35
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +153 -136
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/emu-console.d.ts +6 -48
- package/build/lib/commands/emu-console.d.ts.map +1 -1
- package/build/lib/commands/emu-console.js +19 -34
- package/build/lib/commands/emu-console.js.map +1 -1
- package/build/lib/commands/execute.d.ts +6 -5
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +77 -66
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +7 -128
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js +183 -219
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.d.ts +8 -12
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +19 -23
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +9 -132
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/commands/general.js +281 -312
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/ime.d.ts +7 -10
- package/build/lib/commands/ime.d.ts.map +1 -1
- package/build/lib/commands/ime.js +47 -35
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/index.d.ts +27 -2
- package/build/lib/commands/index.d.ts.map +1 -1
- package/build/lib/commands/index.js +41 -19
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/commands/intent.d.ts +7 -417
- package/build/lib/commands/intent.d.ts.map +1 -1
- package/build/lib/commands/intent.js +104 -216
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +6 -5
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +16 -8
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/log.d.ts +7 -44
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +146 -108
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +7 -143
- package/build/lib/commands/media-projection.d.ts.map +1 -1
- package/build/lib/commands/media-projection.js +113 -140
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/mixins.d.ts +740 -0
- package/build/lib/commands/mixins.d.ts.map +1 -0
- package/build/lib/commands/mixins.js +19 -0
- package/build/lib/commands/mixins.js.map +1 -0
- package/build/lib/commands/network.d.ts +7 -138
- package/build/lib/commands/network.d.ts.map +1 -1
- package/build/lib/commands/network.js +212 -254
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/performance.d.ts +24 -70
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +144 -100
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +8 -92
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +75 -87
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +7 -193
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +151 -182
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/shell.d.ts +7 -7
- package/build/lib/commands/shell.d.ts.map +1 -1
- package/build/lib/commands/shell.js +40 -33
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +9 -103
- package/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js +261 -218
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +22 -90
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +76 -74
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/touch.d.ts +10 -29
- package/build/lib/commands/touch.d.ts.map +1 -1
- package/build/lib/commands/touch.js +301 -285
- package/build/lib/commands/touch.js.map +1 -1
- package/build/lib/commands/types.d.ts +978 -0
- package/build/lib/commands/types.d.ts.map +1 -0
- package/build/lib/commands/types.js +3 -0
- package/build/lib/commands/types.js.map +1 -0
- package/build/lib/constraints.d.ts +291 -0
- package/build/lib/constraints.d.ts.map +1 -0
- package/build/lib/{desired-caps.js → constraints.js} +103 -102
- package/build/lib/constraints.js.map +1 -0
- package/build/lib/driver.d.ts +68 -37
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +123 -80
- package/build/lib/driver.js.map +1 -1
- package/build/lib/helpers/android.d.ts +164 -0
- package/build/lib/helpers/android.d.ts.map +1 -0
- package/build/lib/helpers/android.js +819 -0
- package/build/lib/helpers/android.js.map +1 -0
- package/build/lib/helpers/index.d.ts +7 -0
- package/build/lib/helpers/index.d.ts.map +1 -0
- package/build/lib/helpers/index.js +29 -0
- package/build/lib/helpers/index.js.map +1 -0
- package/build/lib/helpers/types.d.ts +121 -0
- package/build/lib/helpers/types.d.ts.map +1 -0
- package/build/lib/helpers/types.js +3 -0
- package/build/lib/helpers/types.js.map +1 -0
- package/build/lib/helpers/unlock.d.ts +32 -0
- package/build/lib/helpers/unlock.d.ts.map +1 -0
- package/build/lib/helpers/unlock.js +273 -0
- package/build/lib/helpers/unlock.js.map +1 -0
- package/build/lib/helpers/webview.d.ts +74 -0
- package/build/lib/helpers/webview.d.ts.map +1 -0
- package/build/lib/helpers/webview.js +421 -0
- package/build/lib/helpers/webview.js.map +1 -0
- package/build/lib/index.d.ts +9 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.js +37 -0
- package/build/lib/index.js.map +1 -0
- package/build/lib/method-map.d.ts +0 -8
- package/build/lib/method-map.d.ts.map +1 -1
- package/build/lib/method-map.js +63 -74
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/stubs.d.ts +0 -1
- package/build/lib/stubs.d.ts.map +1 -1
- package/build/lib/stubs.js +1 -0
- package/build/lib/stubs.js.map +1 -1
- package/build/lib/utils.d.ts +1 -1
- package/build/lib/utils.d.ts.map +1 -1
- package/lib/commands/actions.js +351 -464
- package/lib/commands/alert.js +27 -17
- package/lib/commands/app-management.js +156 -314
- package/lib/commands/context.js +457 -441
- package/lib/commands/element.js +201 -157
- package/lib/commands/emu-console.js +25 -45
- package/lib/commands/execute.js +106 -90
- package/lib/commands/file-actions.js +222 -240
- package/lib/commands/find.ts +103 -0
- package/lib/commands/general.js +327 -339
- package/lib/commands/ime.js +50 -34
- package/lib/commands/{index.js → index.ts} +20 -24
- package/lib/commands/intent.js +108 -249
- package/lib/commands/keyboard.js +20 -8
- package/lib/commands/log.js +172 -116
- package/lib/commands/media-projection.js +134 -161
- package/lib/commands/mixins.ts +966 -0
- package/lib/commands/network.js +252 -281
- package/lib/commands/performance.js +203 -132
- package/lib/commands/permissions.js +108 -109
- package/lib/commands/recordscreen.js +212 -209
- package/lib/commands/shell.js +51 -40
- package/lib/commands/streamscreen.js +355 -289
- package/lib/commands/system-bars.js +92 -83
- package/lib/commands/touch.js +357 -294
- package/lib/commands/types.ts +1097 -0
- package/lib/{desired-caps.js → constraints.ts} +106 -103
- package/lib/{driver.js → driver.ts} +278 -132
- package/lib/helpers/android.ts +1143 -0
- package/lib/helpers/index.ts +6 -0
- package/lib/helpers/types.ts +134 -0
- package/lib/helpers/unlock.ts +329 -0
- package/lib/helpers/webview.ts +582 -0
- package/lib/index.ts +18 -0
- package/lib/method-map.js +87 -98
- package/lib/stubs.ts +0 -1
- package/package.json +26 -19
- package/build/index.js +0 -51
- package/build/lib/android-helpers.d.ts +0 -136
- package/build/lib/android-helpers.d.ts.map +0 -1
- package/build/lib/android-helpers.js +0 -855
- package/build/lib/android-helpers.js.map +0 -1
- package/build/lib/commands/coverage.d.ts +0 -5
- package/build/lib/commands/coverage.d.ts.map +0 -1
- package/build/lib/commands/coverage.js +0 -19
- package/build/lib/commands/coverage.js.map +0 -1
- package/build/lib/desired-caps.d.ts +0 -353
- package/build/lib/desired-caps.d.ts.map +0 -1
- package/build/lib/desired-caps.js.map +0 -1
- package/build/lib/unlock-helpers.d.ts +0 -38
- package/build/lib/unlock-helpers.d.ts.map +0 -1
- package/build/lib/unlock-helpers.js +0 -266
- package/build/lib/unlock-helpers.js.map +0 -1
- package/build/lib/webview-helpers.d.ts +0 -224
- package/build/lib/webview-helpers.d.ts.map +0 -1
- package/build/lib/webview-helpers.js +0 -528
- package/build/lib/webview-helpers.js.map +0 -1
- package/index.js +0 -24
- package/lib/android-helpers.js +0 -983
- package/lib/commands/coverage.js +0 -18
- package/lib/commands/find.js +0 -82
- package/lib/unlock-helpers.js +0 -278
- package/lib/webview-helpers.js +0 -602
|
@@ -1,104 +1,10 @@
|
|
|
1
|
-
export default
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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":"
|
|
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"}
|