webdriverio 9.24.0 → 9.26.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 (107) hide show
  1. package/build/commands/browser.d.ts +36 -0
  2. package/build/commands/browser.d.ts.map +1 -1
  3. package/build/commands/element/getValue.d.ts +1 -1
  4. package/build/commands/element/getValue.d.ts.map +1 -1
  5. package/build/commands/mobile/background.d.ts +26 -0
  6. package/build/commands/mobile/background.d.ts.map +1 -0
  7. package/build/commands/mobile/closeApp.d.ts +17 -0
  8. package/build/commands/mobile/closeApp.d.ts.map +1 -0
  9. package/build/commands/mobile/deepLink.d.ts +2 -0
  10. package/build/commands/mobile/deepLink.d.ts.map +1 -1
  11. package/build/commands/mobile/dragAndDrop.d.ts +2 -0
  12. package/build/commands/mobile/dragAndDrop.d.ts.map +1 -1
  13. package/build/commands/mobile/fingerPrint.d.ts +20 -0
  14. package/build/commands/mobile/fingerPrint.d.ts.map +1 -0
  15. package/build/commands/mobile/getClipboard.d.ts +24 -0
  16. package/build/commands/mobile/getClipboard.d.ts.map +1 -0
  17. package/build/commands/mobile/getContext.d.ts +2 -0
  18. package/build/commands/mobile/getContext.d.ts.map +1 -1
  19. package/build/commands/mobile/getContexts.d.ts +2 -0
  20. package/build/commands/mobile/getContexts.d.ts.map +1 -1
  21. package/build/commands/mobile/getCurrentActivity.d.ts +20 -0
  22. package/build/commands/mobile/getCurrentActivity.d.ts.map +1 -0
  23. package/build/commands/mobile/getCurrentPackage.d.ts +20 -0
  24. package/build/commands/mobile/getCurrentPackage.d.ts.map +1 -0
  25. package/build/commands/mobile/getDisplayDensity.d.ts +18 -0
  26. package/build/commands/mobile/getDisplayDensity.d.ts.map +1 -0
  27. package/build/commands/mobile/getPerformanceData.d.ts +28 -0
  28. package/build/commands/mobile/getPerformanceData.d.ts.map +1 -0
  29. package/build/commands/mobile/getPerformanceDataTypes.d.ts +21 -0
  30. package/build/commands/mobile/getPerformanceDataTypes.d.ts.map +1 -0
  31. package/build/commands/mobile/getStrings.d.ts +26 -0
  32. package/build/commands/mobile/getStrings.d.ts.map +1 -0
  33. package/build/commands/mobile/getSystemBars.d.ts +19 -0
  34. package/build/commands/mobile/getSystemBars.d.ts.map +1 -0
  35. package/build/commands/mobile/gsmCall.d.ts +23 -0
  36. package/build/commands/mobile/gsmCall.d.ts.map +1 -0
  37. package/build/commands/mobile/gsmSignal.d.ts +20 -0
  38. package/build/commands/mobile/gsmSignal.d.ts.map +1 -0
  39. package/build/commands/mobile/gsmVoice.d.ts +20 -0
  40. package/build/commands/mobile/gsmVoice.d.ts.map +1 -0
  41. package/build/commands/mobile/isLocked.d.ts +20 -0
  42. package/build/commands/mobile/isLocked.d.ts.map +1 -0
  43. package/build/commands/mobile/launchApp.d.ts +17 -0
  44. package/build/commands/mobile/launchApp.d.ts.map +1 -0
  45. package/build/commands/mobile/lock.d.ts +28 -0
  46. package/build/commands/mobile/lock.d.ts.map +1 -0
  47. package/build/commands/mobile/longPress.d.ts +2 -0
  48. package/build/commands/mobile/longPress.d.ts.map +1 -1
  49. package/build/commands/mobile/longPressKeyCode.d.ts +21 -0
  50. package/build/commands/mobile/longPressKeyCode.d.ts.map +1 -0
  51. package/build/commands/mobile/openNotifications.d.ts +17 -0
  52. package/build/commands/mobile/openNotifications.d.ts.map +1 -0
  53. package/build/commands/mobile/pinch.d.ts +2 -0
  54. package/build/commands/mobile/pinch.d.ts.map +1 -1
  55. package/build/commands/mobile/powerAC.d.ts +19 -0
  56. package/build/commands/mobile/powerAC.d.ts.map +1 -0
  57. package/build/commands/mobile/powerCapacity.d.ts +19 -0
  58. package/build/commands/mobile/powerCapacity.d.ts.map +1 -0
  59. package/build/commands/mobile/pressKeyCode.d.ts +24 -0
  60. package/build/commands/mobile/pressKeyCode.d.ts.map +1 -0
  61. package/build/commands/mobile/queryAppState.d.ts +32 -0
  62. package/build/commands/mobile/queryAppState.d.ts.map +1 -0
  63. package/build/commands/mobile/relaunchActiveApp.d.ts +2 -0
  64. package/build/commands/mobile/relaunchActiveApp.d.ts.map +1 -1
  65. package/build/commands/mobile/sendKeyEvent.d.ts +24 -0
  66. package/build/commands/mobile/sendKeyEvent.d.ts.map +1 -0
  67. package/build/commands/mobile/sendSms.d.ts +20 -0
  68. package/build/commands/mobile/sendSms.d.ts.map +1 -0
  69. package/build/commands/mobile/setClipboard.d.ts +26 -0
  70. package/build/commands/mobile/setClipboard.d.ts.map +1 -0
  71. package/build/commands/mobile/shake.d.ts +17 -0
  72. package/build/commands/mobile/shake.d.ts.map +1 -0
  73. package/build/commands/mobile/startActivity.d.ts +30 -0
  74. package/build/commands/mobile/startActivity.d.ts.map +1 -0
  75. package/build/commands/mobile/swipe.d.ts +2 -0
  76. package/build/commands/mobile/swipe.d.ts.map +1 -1
  77. package/build/commands/mobile/switchContext.d.ts +2 -0
  78. package/build/commands/mobile/switchContext.d.ts.map +1 -1
  79. package/build/commands/mobile/tap.d.ts +2 -0
  80. package/build/commands/mobile/tap.d.ts.map +1 -1
  81. package/build/commands/mobile/toggleAirplaneMode.d.ts +29 -0
  82. package/build/commands/mobile/toggleAirplaneMode.d.ts.map +1 -0
  83. package/build/commands/mobile/toggleData.d.ts +27 -0
  84. package/build/commands/mobile/toggleData.d.ts.map +1 -0
  85. package/build/commands/mobile/toggleEnrollTouchId.d.ts +27 -0
  86. package/build/commands/mobile/toggleEnrollTouchId.d.ts.map +1 -0
  87. package/build/commands/mobile/toggleLocationServices.d.ts +17 -0
  88. package/build/commands/mobile/toggleLocationServices.d.ts.map +1 -0
  89. package/build/commands/mobile/toggleNetworkSpeed.d.ts +20 -0
  90. package/build/commands/mobile/toggleNetworkSpeed.d.ts.map +1 -0
  91. package/build/commands/mobile/toggleWiFi.d.ts +27 -0
  92. package/build/commands/mobile/toggleWiFi.d.ts.map +1 -0
  93. package/build/commands/mobile/touchId.d.ts +27 -0
  94. package/build/commands/mobile/touchId.d.ts.map +1 -0
  95. package/build/commands/mobile/unlock.d.ts +17 -0
  96. package/build/commands/mobile/unlock.d.ts.map +1 -0
  97. package/build/commands/mobile/zoom.d.ts +2 -0
  98. package/build/commands/mobile/zoom.d.ts.map +1 -1
  99. package/build/commands/mobile.d.ts +36 -0
  100. package/build/commands/mobile.d.ts.map +1 -1
  101. package/build/index.d.ts.map +1 -1
  102. package/build/index.js +902 -141
  103. package/build/node.js +912 -151
  104. package/build/session/dialog.d.ts.map +1 -1
  105. package/build/utils/mobile.d.ts +15 -0
  106. package/build/utils/mobile.d.ts.map +1 -1
  107. package/package.json +7 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"longPressKeyCode.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/longPressKeyCode.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,gBAAgB,CAClC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,MAAM,oBAsBjB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ *
3
+ * Open Android notifications.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :openNotifications.js
9
+ it('should open the Android notification shade', async () => {
10
+ await browser.openNotifications()
11
+ })
12
+ * </example>
13
+ *
14
+ * @support ["android"]
15
+ */
16
+ export declare function openNotifications(this: WebdriverIO.Browser): Promise<unknown>;
17
+ //# sourceMappingURL=openNotifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openNotifications.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/openNotifications.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CACnC,IAAI,EAAE,WAAW,CAAC,OAAO,oBAsB5B"}
@@ -34,6 +34,8 @@ import type { PinchAndZoomOptions } from '../../types.js';
34
34
  * @param {number=} options.duration The duration in millisecond of how fast the pinch should be executed, minimal is 500 ms and max is 10000 ms. The default is 1500 ms (1.5 seconds) (optional)
35
35
  * @param {number=} options.scale The scale of how big the pinch should be according to the screen. Valid values must be float numbers in range 0..1, where 1.0 is 100% (optional)
36
36
  * @mobileElement
37
+ *
38
+ * @support ["ios","android"]
37
39
  */
38
40
  export declare function pinch(this: WebdriverIO.Element, options?: Partial<PinchAndZoomOptions>): Promise<unknown>;
39
41
  //# sourceMappingURL=pinch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pinch.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/pinch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,KAAK,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,GAAE,OAAO,CAAC,mBAAmB,CAAM,oBAuB7C"}
1
+ {"version":3,"file":"pinch.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/pinch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,KAAK,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,GAAE,OAAO,CAAC,mBAAmB,CAAM,oBAuB7C"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ *
3
+ * Set the state of the battery charger on the Android emulator. Valid values: 'on', 'off'.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :powerAC.js
9
+ it('should enable the AC charger', async () => {
10
+ await browser.powerAC('on')
11
+ })
12
+ * </example>
13
+ *
14
+ * @param {string} state The charger state to set ('on' or 'off')
15
+ *
16
+ * @support ["android"]
17
+ */
18
+ export declare function powerAC(this: WebdriverIO.Browser, state: string): Promise<unknown>;
19
+ //# sourceMappingURL=powerAC.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powerAC.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/powerAC.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,EAAE,MAAM,oBAsBhB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ *
3
+ * Set the battery percentage on the Android emulator. Value must be in the range [0, 100].
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :powerCapacity.js
9
+ it('should set battery to 75%', async () => {
10
+ await browser.powerCapacity(75)
11
+ })
12
+ * </example>
13
+ *
14
+ * @param {number} percent The battery percentage to set (0–100)
15
+ *
16
+ * @support ["android"]
17
+ */
18
+ export declare function powerCapacity(this: WebdriverIO.Browser, percent: number): Promise<unknown>;
19
+ //# sourceMappingURL=powerCapacity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powerCapacity.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/powerCapacity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,aAAa,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,oBAsBlB"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Press a particular key on the device. The keycode values correspond to Android KeyEvent constants.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :pressKeyCode.js
9
+ it('should press the Home button', async () => {
10
+ // Press the Home button (keycode 3)
11
+ await browser.pressKeyCode(3)
12
+ // Press with meta state (e.g., Shift + A = keycode 29, metastate 1)
13
+ await browser.pressKeyCode(29, 1)
14
+ })
15
+ * </example>
16
+ *
17
+ * @param {number} keycode The keycode to press (Android KeyEvent constant)
18
+ * @param {number} [metastate] Meta state to apply during the key press (e.g. shift, ctrl)
19
+ * @param {number} [flags] Integer flags for the key event
20
+ *
21
+ * @support ["android"]
22
+ */
23
+ export declare function pressKeyCode(this: WebdriverIO.Browser, keycode: number, metastate?: number, flags?: number): Promise<unknown>;
24
+ //# sourceMappingURL=pressKeyCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pressKeyCode.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/pressKeyCode.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,YAAY,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,MAAM,oBAsBjB"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ *
3
+ * Get the state of a given application on the device.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * Returns one of the following numeric states:
8
+ * - `0` — Not installed
9
+ * - `1` — Not running
10
+ * - `2` — Running in background (suspended)
11
+ * - `3` — Running in background
12
+ * - `4` — Running in foreground
13
+ *
14
+ * <example>
15
+ :queryAppState.js
16
+ it('should get the app state', async () => {
17
+ // Check app state on Android
18
+ const state = await browser.queryAppState('com.example.app')
19
+ // Check app state on iOS
20
+ const iosState = await browser.queryAppState(undefined, 'com.example.app')
21
+ })
22
+ * </example>
23
+ *
24
+ * @param {string} [appId] Application package name (Android).
25
+ * @param {string} [bundleId] Application bundle identifier (iOS).
26
+ *
27
+ * @returns {`Promise<number>`} The application state (0–4).
28
+ *
29
+ * @support ["ios","android"]
30
+ */
31
+ export declare function queryAppState(this: WebdriverIO.Browser, appId?: string, bundleId?: string): Promise<number>;
32
+ //# sourceMappingURL=queryAppState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryAppState.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/queryAppState.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,aAAa,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAiBjB"}
@@ -33,6 +33,8 @@
33
33
  * @uses protocol/execute
34
34
  * @type utility
35
35
  * @skipUsage
36
+ *
37
+ * @support ["ios","android"]
36
38
  */
37
39
  export declare function relaunchActiveApp(this: WebdriverIO.Browser): Promise<unknown>;
38
40
  //# sourceMappingURL=relaunchActiveApp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"relaunchActiveApp.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/relaunchActiveApp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,iBAAiB,CACnC,IAAI,EAAE,WAAW,CAAC,OAAO,oBAyB5B"}
1
+ {"version":3,"file":"relaunchActiveApp.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/relaunchActiveApp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,iBAAiB,CACnC,IAAI,EAAE,WAAW,CAAC,OAAO,oBAyB5B"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Send a key event to the Android device.
4
+ *
5
+ * This command is the legacy Android key event API. For new tests, prefer using
6
+ * `pressKeyCode()` with numeric keycodes from the Android `KeyEvent` constants.
7
+ *
8
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
9
+ *
10
+ * <example>
11
+ :sendKeyEvent.js
12
+ it('should send a key event', async () => {
13
+ // Send the Home key event (keycode '3')
14
+ await browser.sendKeyEvent('3')
15
+ })
16
+ * </example>
17
+ *
18
+ * @param {string} keycode The keycode to send (as a string, e.g. '3' for Home)
19
+ * @param {string} [metastate] Meta state to press the keycode with (e.g. '1' for Shift)
20
+ *
21
+ * @support ["android"]
22
+ */
23
+ export declare function sendKeyEvent(this: WebdriverIO.Browser, keycode: string, metastate?: string): Promise<unknown>;
24
+ //# sourceMappingURL=sendKeyEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendKeyEvent.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/sendKeyEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,YAAY,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,oBAqBrB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * Simulate an SMS message being received on the Android emulator.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :sendSms.js
9
+ it('should simulate receiving an SMS', async () => {
10
+ await browser.sendSms('+15551234567', 'Hello from the test!')
11
+ })
12
+ * </example>
13
+ *
14
+ * @param {string} phoneNumber The phone number the simulated SMS is sent from
15
+ * @param {string} message The text content of the simulated SMS
16
+ *
17
+ * @support ["android"]
18
+ */
19
+ export declare function sendSms(this: WebdriverIO.Browser, phoneNumber: string, message: string): Promise<unknown>;
20
+ //# sourceMappingURL=sendSms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendSms.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/sendSms.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,oBAsBlB"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ *
3
+ * Set the content of the system clipboard.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * The `content` must be provided as a base64-encoded string. Android only supports the `plaintext`
8
+ * content type.
9
+ *
10
+ * <example>
11
+ :setClipboard.js
12
+ it('should set the clipboard content', async () => {
13
+ // Set plaintext clipboard content
14
+ const base64Content = Buffer.from('Hello World').toString('base64')
15
+ await browser.setClipboard(base64Content, 'plaintext')
16
+ })
17
+ * </example>
18
+ *
19
+ * @param {string} content Base64-encoded string to set as clipboard content.
20
+ * @param {string} [contentType] Content type (e.g. `'plaintext'`, `'image'`, `'url'`). Android only supports `'plaintext'`.
21
+ * @param {string} [label] Clipboard label (Android only).
22
+ *
23
+ * @support ["ios","android"]
24
+ */
25
+ export declare function setClipboard(this: WebdriverIO.Browser, content: string, contentType?: string, label?: string): Promise<unknown>;
26
+ //# sourceMappingURL=setClipboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setClipboard.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/setClipboard.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,YAAY,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,oBAkBjB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ *
3
+ * Perform a shake action on the device. Supports iOS Simulator and real devices.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :shake.js
9
+ it('should shake the device', async () => {
10
+ await browser.shake()
11
+ })
12
+ * </example>
13
+ *
14
+ * @support ["ios"]
15
+ */
16
+ export declare function shake(this: WebdriverIO.Browser): Promise<unknown>;
17
+ //# sourceMappingURL=shake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shake.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/shake.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,KAAK,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,oBAsB5B"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ *
3
+ * Start an Android activity by providing package name and activity name.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :startActivity.js
9
+ it('should start an Android activity', async () => {
10
+ // Start a specific activity
11
+ await browser.startActivity('com.example.app', '.MainActivity')
12
+ // Start activity and wait for another to appear
13
+ await browser.startActivity('com.example.app', '.SplashActivity', 'com.example.app', '.MainActivity')
14
+ })
15
+ * </example>
16
+ *
17
+ * @param {string} appPackage The package name of the app to start
18
+ * @param {string} appActivity The activity name to start
19
+ * @param {string} [appWaitPackage] The package name to wait for after starting the activity
20
+ * @param {string} [appWaitActivity] The activity name to wait for after starting the activity
21
+ * @param {string} [intentAction] The intent action to use to start the activity
22
+ * @param {string} [intentCategory] The intent category to use to start the activity
23
+ * @param {string} [intentFlags] Flags to use when starting the activity
24
+ * @param {string} [optionalIntentArguments] Additional intent arguments to use when starting the activity
25
+ * @param {string} [dontStopAppOnReset] Whether to stop the app before starting the activity
26
+ *
27
+ * @support ["android"]
28
+ */
29
+ export declare function startActivity(this: WebdriverIO.Browser, appPackage: string, appActivity: string, appWaitPackage?: string, appWaitActivity?: string, intentAction?: string, intentCategory?: string, intentFlags?: string, optionalIntentArguments?: string, dontStopAppOnReset?: string): Promise<unknown>;
30
+ //# sourceMappingURL=startActivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startActivity.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/startActivity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,aAAa,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,cAAc,CAAC,EAAE,MAAM,EACvB,eAAe,CAAC,EAAE,MAAM,EACxB,YAAY,CAAC,EAAE,MAAM,EACrB,cAAc,CAAC,EAAE,MAAM,EACvB,WAAW,CAAC,EAAE,MAAM,EACpB,uBAAuB,CAAC,EAAE,MAAM,EAChC,kBAAkB,CAAC,EAAE,MAAM,oBA0C9B"}
@@ -66,6 +66,8 @@ import type { SwipeOptions } from '../../types.js';
66
66
  * @uses protocol/execute
67
67
  * @type utility
68
68
  * @skipUsage
69
+ *
70
+ * @support ["ios","android"]
69
71
  */
70
72
  export declare function swipe(this: WebdriverIO.Browser, options?: SwipeOptions): Promise<void | unknown>;
71
73
  //# sourceMappingURL=swipe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swipe.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/swipe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,YAAY,EAAM,MAAM,gBAAgB,CAAA;AAU/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAsB,KAAK,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,YAAY,GACvB,OAAO,CAAC,IAAI,GAAC,OAAO,CAAC,CAuBvB"}
1
+ {"version":3,"file":"swipe.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/swipe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,YAAY,EAAM,MAAM,gBAAgB,CAAA;AAU/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,wBAAsB,KAAK,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,YAAY,GACvB,OAAO,CAAC,IAAI,GAAC,OAAO,CAAC,CAuBvB"}
@@ -124,6 +124,8 @@ import type { SwitchContextOptions } from '../../types.js';
124
124
  * @param {number=} options.androidWebviewConnectionRetryTime The time in milliseconds to wait between each retry to connect to the webview. Default is `500` ms (optional). <br /><strong>ANDROID-ONLY</strong> and will only be used when a `title` or `url` is provided.
125
125
  * @param {number=} options.androidWebviewConnectTimeout The maximum amount of time in milliseconds to wait for a web view page to be detected. Default is `5000` ms (optional). <br /><strong>ANDROID-ONLY</strong> and will only be used when a `title` or `url` is provided.
126
126
  * @skipUsage
127
+ *
128
+ * @support ["ios","android"]
127
129
  */
128
130
  export declare function switchContext(this: WebdriverIO.Browser, options: string | SwitchContextOptions): Promise<void>;
129
131
  //# sourceMappingURL=switchContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"switchContext.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/switchContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmF,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAI3I;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6HG;AACH,wBAAsB,aAAa,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,GAAG,oBAAoB,iBAuBzC"}
1
+ {"version":3,"file":"switchContext.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/switchContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmF,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAI3I;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,wBAAsB,aAAa,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,GAAG,oBAAoB,iBAuBzC"}
@@ -91,6 +91,8 @@ import type { TapOptions } from '../../types.js';
91
91
  * @param {number=} options.maxScrolls The max amount of scrolls until it will stop searching for the element, default is `10`. <br /><strong>Only for ELEMENT tap, not for SCREEN tap</strong><br /><strong>MOBILE-NATIVE-APP-ONLY</strong>
92
92
  * @param {Element=} options.scrollableElement Element that is used to scroll within. If no element is provided it will use the following selector for iOS `-ios predicate string:type == "XCUIElementTypeApplication"` and the following for Android `//android.widget.ScrollView'`. If more elements match the default selector, then by default it will pick the first matching element. <br /><strong>Only for ELEMENT tap, not for SCREEN tap</strong><br /><strong>MOBILE-NATIVE-APP-ONLY</strong>
93
93
  * @skipUsage
94
+ *
95
+ * @support ["ios","android"]
94
96
  */
95
97
  export declare function tap(this: WebdriverIO.Browser | WebdriverIO.Element, options?: TapOptions): Promise<unknown>;
96
98
  //# sourceMappingURL=tap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tap.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/tap.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA+B,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4FG;AACH,wBAAsB,GAAG,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,OAAO,CAAC,EAAE,UAAU,oBAqBvB"}
1
+ {"version":3,"file":"tap.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/tap.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA+B,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8FG;AACH,wBAAsB,GAAG,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,OAAO,CAAC,EAAE,UAAU,oBAqBvB"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ *
3
+ * Set the airplane mode state on the device.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * :::note
8
+ * Unlike the deprecated API which toggled the airplane mode state, this command requires an
9
+ * explicit `enabled` parameter to set the desired state directly.
10
+ *
11
+ * This command is only supported on Android.
12
+ * :::
13
+ *
14
+ * <example>
15
+ :toggleAirplaneMode.js
16
+ it('should set airplane mode', async () => {
17
+ // Enable airplane mode
18
+ await browser.toggleAirplaneMode(true)
19
+ // Disable airplane mode
20
+ await browser.toggleAirplaneMode(false)
21
+ })
22
+ * </example>
23
+ *
24
+ * @param {boolean} enabled Set to `true` to enable airplane mode, `false` to disable it.
25
+ *
26
+ * @support ["android"]
27
+ */
28
+ export declare function toggleAirplaneMode(this: WebdriverIO.Browser, enabled: boolean): Promise<unknown>;
29
+ //# sourceMappingURL=toggleAirplaneMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleAirplaneMode.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/toggleAirplaneMode.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,kBAAkB,CACpC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,OAAO,oBAsBnB"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ *
3
+ * Set the mobile data state on the device.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * :::note
8
+ * Unlike the deprecated API which toggled the data state, this command requires an explicit
9
+ * `enabled` parameter to set the desired state directly.
10
+ *
11
+ * This command is only supported on Android.
12
+ * :::
13
+ *
14
+ * <example>
15
+ :toggleData.js
16
+ it('should set mobile data state', async () => {
17
+ await browser.toggleData(true) // enable data
18
+ await browser.toggleData(false) // disable data
19
+ })
20
+ * </example>
21
+ *
22
+ * @param {boolean} enabled Set to `true` to enable mobile data, `false` to disable it.
23
+ *
24
+ * @support ["android"]
25
+ */
26
+ export declare function toggleData(this: WebdriverIO.Browser, enabled: boolean): Promise<unknown>;
27
+ //# sourceMappingURL=toggleData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleData.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/toggleData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,OAAO,oBAsBnB"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ *
3
+ * Toggle Touch ID enrollment on iOS Simulator.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * :::note
8
+ * This command requires the `allowTouchIdEnroll` capability to be set to `true` in the session.
9
+ * It is only supported on iOS Simulator. When `enabled` is not provided, it defaults to `true`.
10
+ * :::
11
+ *
12
+ * <example>
13
+ :toggleEnrollTouchId.js
14
+ it('should toggle Touch ID enrollment', async () => {
15
+ // Enable Touch ID enrollment
16
+ await browser.toggleEnrollTouchId(true)
17
+ // Disable Touch ID enrollment
18
+ await browser.toggleEnrollTouchId(false)
19
+ })
20
+ * </example>
21
+ *
22
+ * @param {boolean} [enabled] Whether to enable (`true`) or disable (`false`) Touch ID enrollment. Defaults to `true`.
23
+ *
24
+ * @support ["ios"]
25
+ */
26
+ export declare function toggleEnrollTouchId(this: WebdriverIO.Browser, enabled?: boolean): Promise<unknown>;
27
+ //# sourceMappingURL=toggleEnrollTouchId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleEnrollTouchId.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/toggleEnrollTouchId.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,mBAAmB,CACrC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,OAAO,oBAsBpB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ *
3
+ * Toggle the state of the location service.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :toggleLocationServices.js
9
+ it('should toggle location services', async () => {
10
+ await browser.toggleLocationServices()
11
+ })
12
+ * </example>
13
+ *
14
+ * @support ["android"]
15
+ */
16
+ export declare function toggleLocationServices(this: WebdriverIO.Browser): Promise<unknown>;
17
+ //# sourceMappingURL=toggleLocationServices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleLocationServices.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/toggleLocationServices.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,sBAAsB,CACxC,IAAI,EAAE,WAAW,CAAC,OAAO,oBAsB5B"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * Set the network speed for the Android emulator. Valid values: 'full', 'gsm', 'edge', 'hscsd',
4
+ * 'gprs', 'umts', 'hsdpa', 'lte', 'evdo'.
5
+ *
6
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
7
+ *
8
+ * <example>
9
+ :toggleNetworkSpeed.js
10
+ it('should set network speed to LTE', async () => {
11
+ await browser.toggleNetworkSpeed('lte')
12
+ })
13
+ * </example>
14
+ *
15
+ * @param {string} netspeed The network speed preset to apply ('full', 'gsm', 'edge', 'hscsd', 'gprs', 'umts', 'hsdpa', 'lte', 'evdo')
16
+ *
17
+ * @support ["android"]
18
+ */
19
+ export declare function toggleNetworkSpeed(this: WebdriverIO.Browser, netspeed: string): Promise<unknown>;
20
+ //# sourceMappingURL=toggleNetworkSpeed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleNetworkSpeed.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/toggleNetworkSpeed.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,kBAAkB,CACpC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,oBAsBnB"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ *
3
+ * Set the WiFi state on the device.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * :::note
8
+ * Unlike the deprecated API which toggled the WiFi state, this command requires an explicit
9
+ * `enabled` parameter to set the desired state directly.
10
+ *
11
+ * This command is only supported on Android.
12
+ * :::
13
+ *
14
+ * <example>
15
+ :toggleWiFi.js
16
+ it('should set WiFi state', async () => {
17
+ await browser.toggleWiFi(true) // enable WiFi
18
+ await browser.toggleWiFi(false) // disable WiFi
19
+ })
20
+ * </example>
21
+ *
22
+ * @param {boolean} enabled Set to `true` to enable WiFi, `false` to disable it.
23
+ *
24
+ * @support ["android"]
25
+ */
26
+ export declare function toggleWiFi(this: WebdriverIO.Browser, enabled: boolean): Promise<unknown>;
27
+ //# sourceMappingURL=toggleWiFi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleWiFi.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/toggleWiFi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,OAAO,oBAsBnB"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ *
3
+ * Simulate a Touch ID fingerprint match event on iOS Simulator.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * :::note
8
+ * This command requires the `allowTouchIdEnroll` capability to be set to `true` in the session.
9
+ * It is only supported on iOS Simulator.
10
+ * :::
11
+ *
12
+ * <example>
13
+ :touchId.js
14
+ it('should simulate a fingerprint match', async () => {
15
+ // Simulate successful fingerprint match
16
+ await browser.touchId(true)
17
+ // Simulate failed fingerprint match
18
+ await browser.touchId(false)
19
+ })
20
+ * </example>
21
+ *
22
+ * @param {boolean} match Whether the fingerprint match should succeed (`true`) or fail (`false`)
23
+ *
24
+ * @support ["ios"]
25
+ */
26
+ export declare function touchId(this: WebdriverIO.Browser, match: boolean): Promise<unknown>;
27
+ //# sourceMappingURL=touchId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"touchId.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/touchId.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,EAAE,OAAO,oBAsBjB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ *
3
+ * Unlock the device screen.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * <example>
8
+ :unlock.js
9
+ it('should unlock the device screen', async () => {
10
+ await browser.unlock()
11
+ })
12
+ * </example>
13
+ *
14
+ * @support ["ios","android"]
15
+ */
16
+ export declare function unlock(this: WebdriverIO.Browser): Promise<unknown>;
17
+ //# sourceMappingURL=unlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlock.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/unlock.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,MAAM,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,oBAkB5B"}
@@ -34,6 +34,8 @@ import type { PinchAndZoomOptions } from '../../types.js';
34
34
  * @param {number=} options.duration The duration in millisecond of how fast the zoom should be executed, minimal is 500 ms and max is 10000 ms. The default is 1500 ms (1.5 seconds) (optional)
35
35
  * @param {number=} options.scale The scale of how big the zoom should be according to the screen. Valid values must be float numbers in range 0..1, where 1.0 is 100% (optional)
36
36
  * @mobileElement
37
+ *
38
+ * @support ["ios","android"]
37
39
  */
38
40
  export declare function zoom(this: WebdriverIO.Element, options?: Partial<PinchAndZoomOptions>): Promise<unknown>;
39
41
  //# sourceMappingURL=zoom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zoom.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/zoom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,IAAI,CACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,GAAE,OAAO,CAAC,mBAAmB,CAAM,oBAuB7C"}
1
+ {"version":3,"file":"zoom.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/zoom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,IAAI,CACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,GAAE,OAAO,CAAC,mBAAmB,CAAM,oBAuB7C"}