webdriverio 9.25.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 (103) 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/mobile/background.d.ts +26 -0
  4. package/build/commands/mobile/background.d.ts.map +1 -0
  5. package/build/commands/mobile/closeApp.d.ts +17 -0
  6. package/build/commands/mobile/closeApp.d.ts.map +1 -0
  7. package/build/commands/mobile/deepLink.d.ts +2 -0
  8. package/build/commands/mobile/deepLink.d.ts.map +1 -1
  9. package/build/commands/mobile/dragAndDrop.d.ts +2 -0
  10. package/build/commands/mobile/dragAndDrop.d.ts.map +1 -1
  11. package/build/commands/mobile/fingerPrint.d.ts +20 -0
  12. package/build/commands/mobile/fingerPrint.d.ts.map +1 -0
  13. package/build/commands/mobile/getClipboard.d.ts +24 -0
  14. package/build/commands/mobile/getClipboard.d.ts.map +1 -0
  15. package/build/commands/mobile/getContext.d.ts +2 -0
  16. package/build/commands/mobile/getContext.d.ts.map +1 -1
  17. package/build/commands/mobile/getContexts.d.ts +2 -0
  18. package/build/commands/mobile/getContexts.d.ts.map +1 -1
  19. package/build/commands/mobile/getCurrentActivity.d.ts +20 -0
  20. package/build/commands/mobile/getCurrentActivity.d.ts.map +1 -0
  21. package/build/commands/mobile/getCurrentPackage.d.ts +20 -0
  22. package/build/commands/mobile/getCurrentPackage.d.ts.map +1 -0
  23. package/build/commands/mobile/getDisplayDensity.d.ts +18 -0
  24. package/build/commands/mobile/getDisplayDensity.d.ts.map +1 -0
  25. package/build/commands/mobile/getPerformanceData.d.ts +28 -0
  26. package/build/commands/mobile/getPerformanceData.d.ts.map +1 -0
  27. package/build/commands/mobile/getPerformanceDataTypes.d.ts +21 -0
  28. package/build/commands/mobile/getPerformanceDataTypes.d.ts.map +1 -0
  29. package/build/commands/mobile/getStrings.d.ts +26 -0
  30. package/build/commands/mobile/getStrings.d.ts.map +1 -0
  31. package/build/commands/mobile/getSystemBars.d.ts +19 -0
  32. package/build/commands/mobile/getSystemBars.d.ts.map +1 -0
  33. package/build/commands/mobile/gsmCall.d.ts +23 -0
  34. package/build/commands/mobile/gsmCall.d.ts.map +1 -0
  35. package/build/commands/mobile/gsmSignal.d.ts +20 -0
  36. package/build/commands/mobile/gsmSignal.d.ts.map +1 -0
  37. package/build/commands/mobile/gsmVoice.d.ts +20 -0
  38. package/build/commands/mobile/gsmVoice.d.ts.map +1 -0
  39. package/build/commands/mobile/isLocked.d.ts +20 -0
  40. package/build/commands/mobile/isLocked.d.ts.map +1 -0
  41. package/build/commands/mobile/launchApp.d.ts +17 -0
  42. package/build/commands/mobile/launchApp.d.ts.map +1 -0
  43. package/build/commands/mobile/lock.d.ts +28 -0
  44. package/build/commands/mobile/lock.d.ts.map +1 -0
  45. package/build/commands/mobile/longPress.d.ts +2 -0
  46. package/build/commands/mobile/longPress.d.ts.map +1 -1
  47. package/build/commands/mobile/longPressKeyCode.d.ts +21 -0
  48. package/build/commands/mobile/longPressKeyCode.d.ts.map +1 -0
  49. package/build/commands/mobile/openNotifications.d.ts +17 -0
  50. package/build/commands/mobile/openNotifications.d.ts.map +1 -0
  51. package/build/commands/mobile/pinch.d.ts +2 -0
  52. package/build/commands/mobile/pinch.d.ts.map +1 -1
  53. package/build/commands/mobile/powerAC.d.ts +19 -0
  54. package/build/commands/mobile/powerAC.d.ts.map +1 -0
  55. package/build/commands/mobile/powerCapacity.d.ts +19 -0
  56. package/build/commands/mobile/powerCapacity.d.ts.map +1 -0
  57. package/build/commands/mobile/pressKeyCode.d.ts +24 -0
  58. package/build/commands/mobile/pressKeyCode.d.ts.map +1 -0
  59. package/build/commands/mobile/queryAppState.d.ts +32 -0
  60. package/build/commands/mobile/queryAppState.d.ts.map +1 -0
  61. package/build/commands/mobile/relaunchActiveApp.d.ts +2 -0
  62. package/build/commands/mobile/relaunchActiveApp.d.ts.map +1 -1
  63. package/build/commands/mobile/sendKeyEvent.d.ts +24 -0
  64. package/build/commands/mobile/sendKeyEvent.d.ts.map +1 -0
  65. package/build/commands/mobile/sendSms.d.ts +20 -0
  66. package/build/commands/mobile/sendSms.d.ts.map +1 -0
  67. package/build/commands/mobile/setClipboard.d.ts +26 -0
  68. package/build/commands/mobile/setClipboard.d.ts.map +1 -0
  69. package/build/commands/mobile/shake.d.ts +17 -0
  70. package/build/commands/mobile/shake.d.ts.map +1 -0
  71. package/build/commands/mobile/startActivity.d.ts +30 -0
  72. package/build/commands/mobile/startActivity.d.ts.map +1 -0
  73. package/build/commands/mobile/swipe.d.ts +2 -0
  74. package/build/commands/mobile/swipe.d.ts.map +1 -1
  75. package/build/commands/mobile/switchContext.d.ts +2 -0
  76. package/build/commands/mobile/switchContext.d.ts.map +1 -1
  77. package/build/commands/mobile/tap.d.ts +2 -0
  78. package/build/commands/mobile/tap.d.ts.map +1 -1
  79. package/build/commands/mobile/toggleAirplaneMode.d.ts +29 -0
  80. package/build/commands/mobile/toggleAirplaneMode.d.ts.map +1 -0
  81. package/build/commands/mobile/toggleData.d.ts +27 -0
  82. package/build/commands/mobile/toggleData.d.ts.map +1 -0
  83. package/build/commands/mobile/toggleEnrollTouchId.d.ts +27 -0
  84. package/build/commands/mobile/toggleEnrollTouchId.d.ts.map +1 -0
  85. package/build/commands/mobile/toggleLocationServices.d.ts +17 -0
  86. package/build/commands/mobile/toggleLocationServices.d.ts.map +1 -0
  87. package/build/commands/mobile/toggleNetworkSpeed.d.ts +20 -0
  88. package/build/commands/mobile/toggleNetworkSpeed.d.ts.map +1 -0
  89. package/build/commands/mobile/toggleWiFi.d.ts +27 -0
  90. package/build/commands/mobile/toggleWiFi.d.ts.map +1 -0
  91. package/build/commands/mobile/touchId.d.ts +27 -0
  92. package/build/commands/mobile/touchId.d.ts.map +1 -0
  93. package/build/commands/mobile/unlock.d.ts +17 -0
  94. package/build/commands/mobile/unlock.d.ts.map +1 -0
  95. package/build/commands/mobile/zoom.d.ts +2 -0
  96. package/build/commands/mobile/zoom.d.ts.map +1 -1
  97. package/build/commands/mobile.d.ts +36 -0
  98. package/build/commands/mobile.d.ts.map +1 -1
  99. package/build/index.js +896 -135
  100. package/build/node.js +906 -145
  101. package/build/utils/mobile.d.ts +15 -0
  102. package/build/utils/mobile.d.ts.map +1 -1
  103. package/package.json +7 -7
@@ -52,4 +52,40 @@ export * from './mobile/getContexts.js';
52
52
  export * from './mobile/switchContext.js';
53
53
  export * from './mobile/relaunchActiveApp.js';
54
54
  export * from './mobile/deepLink.js';
55
+ export * from './mobile/lock.js';
56
+ export * from './mobile/touchId.js';
57
+ export * from './mobile/toggleEnrollTouchId.js';
58
+ export * from './mobile/launchApp.js';
59
+ export * from './mobile/background.js';
60
+ export * from './mobile/getStrings.js';
61
+ export * from './mobile/setClipboard.js';
62
+ export * from './mobile/getClipboard.js';
63
+ export * from './mobile/queryAppState.js';
64
+ export * from './mobile/toggleAirplaneMode.js';
65
+ export * from './mobile/toggleData.js';
66
+ export * from './mobile/toggleWiFi.js';
67
+ export * from './mobile/unlock.js';
68
+ export * from './mobile/isLocked.js';
69
+ export * from './mobile/shake.js';
70
+ export * from './mobile/closeApp.js';
71
+ export * from './mobile/getCurrentActivity.js';
72
+ export * from './mobile/getCurrentPackage.js';
73
+ export * from './mobile/getPerformanceData.js';
74
+ export * from './mobile/getPerformanceDataTypes.js';
75
+ export * from './mobile/getSystemBars.js';
76
+ export * from './mobile/getDisplayDensity.js';
77
+ export * from './mobile/pressKeyCode.js';
78
+ export * from './mobile/longPressKeyCode.js';
79
+ export * from './mobile/sendKeyEvent.js';
80
+ export * from './mobile/startActivity.js';
81
+ export * from './mobile/openNotifications.js';
82
+ export * from './mobile/toggleLocationServices.js';
83
+ export * from './mobile/toggleNetworkSpeed.js';
84
+ export * from './mobile/gsmCall.js';
85
+ export * from './mobile/gsmSignal.js';
86
+ export * from './mobile/gsmVoice.js';
87
+ export * from './mobile/sendSms.js';
88
+ export * from './mobile/fingerPrint.js';
89
+ export * from './mobile/powerCapacity.js';
90
+ export * from './mobile/powerAC.js';
55
91
  //# sourceMappingURL=browser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/commands/browser.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC;;GAEG;AACH,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/commands/browser.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ *
3
+ * Send the currently running app for this session to the background.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * Pass `-1` to keep the app in the background indefinitely, or `null` to send the app to the
8
+ * background without restoring it.
9
+ *
10
+ * <example>
11
+ :background.js
12
+ it('should background the app', async () => {
13
+ // Background the app for 5 seconds
14
+ await browser.background(5)
15
+ // Background the app indefinitely
16
+ await browser.background(-1)
17
+ })
18
+ * </example>
19
+ *
20
+ * @param {number|null} seconds Number of seconds to background the app. Pass `-1` to keep it
21
+ * in the background indefinitely, or `null` to not restore it.
22
+ *
23
+ * @support ["ios","android"]
24
+ */
25
+ export declare function background(this: WebdriverIO.Browser, seconds: number | null): Promise<unknown>;
26
+ //# sourceMappingURL=background.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/background.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,GAAG,IAAI,oBAkBzB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ *
3
+ * Close the currently open app 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
+ * <example>
8
+ :closeApp.js
9
+ it('should close the current app', async () => {
10
+ await browser.closeApp()
11
+ })
12
+ * </example>
13
+ *
14
+ * @support ["ios","android"]
15
+ */
16
+ export declare function closeApp(this: WebdriverIO.Browser): Promise<unknown>;
17
+ //# sourceMappingURL=closeApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"closeApp.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/closeApp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,oBAkB5B"}
@@ -18,6 +18,8 @@
18
18
  *
19
19
  * @param {string} link The deep link URL that should be opened in the mobile app. It should be a valid deep link URL (e.g. `myapp://path`). If it's a universal deep link, which can be used for iOS, use the `browser.url("your-url")`-method.
20
20
  * @param {string} appIdentifier The value of the `package` (Android) or `bundleId` (iOS) of the app that the deep link should open.
21
+ *
22
+ * @support ["ios","android"]
21
23
  */
22
24
  export declare function deepLink(this: WebdriverIO.Browser, link: string, appIdentifier: string): Promise<unknown>;
23
25
  //# sourceMappingURL=deepLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deepLink.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/deepLink.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,oBAuBxB"}
1
+ {"version":3,"file":"deepLink.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/deepLink.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,oBAuBxB"}
@@ -39,5 +39,7 @@ export {};
39
39
  * @param {DragAndDropOptions=} options dragAndDrop command options
40
40
  * @param {Number=} options.duration how long the drag should take place
41
41
  * @mobileElement
42
+ *
43
+ * @support ["ios","android"]
42
44
  */
43
45
  //# sourceMappingURL=dragAndDrop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/dragAndDrop.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG"}
1
+ {"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/dragAndDrop.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * Authenticate users by using their fingerprint scan on supported Android emulators. The
4
+ * fingerprintId must be between 1 and 10.
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
+ :fingerPrint.js
10
+ it('should authenticate with fingerprint', async () => {
11
+ await browser.fingerPrint(1)
12
+ })
13
+ * </example>
14
+ *
15
+ * @param {number} fingerprintId The fingerprint sensor ID to simulate (1–10)
16
+ *
17
+ * @support ["android"]
18
+ */
19
+ export declare function fingerPrint(this: WebdriverIO.Browser, fingerprintId: number): Promise<unknown>;
20
+ //# sourceMappingURL=fingerPrint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fingerPrint.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/fingerPrint.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,EAAE,MAAM,oBAsBxB"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Get the content of the system clipboard as a base64-encoded string.
4
+ *
5
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
6
+ *
7
+ * Android only supports the `plaintext` content type.
8
+ *
9
+ * <example>
10
+ :getClipboard.js
11
+ it('should get the clipboard content', async () => {
12
+ const content = await browser.getClipboard()
13
+ const decoded = Buffer.from(content, 'base64').toString('utf8')
14
+ })
15
+ * </example>
16
+ *
17
+ * @param {string} [contentType] Content type to retrieve (e.g. `'plaintext'`, `'image'`, `'url'`). Android only supports `'plaintext'`.
18
+ *
19
+ * @returns {`Promise<string>`} Base64-encoded clipboard content.
20
+ *
21
+ * @support ["ios","android"]
22
+ */
23
+ export declare function getClipboard(this: WebdriverIO.Browser, contentType?: string): Promise<string>;
24
+ //# sourceMappingURL=getClipboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getClipboard.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getClipboard.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,YAAY,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,WAAW,CAAC,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC,CAiBjB"}
@@ -111,6 +111,8 @@ import type { DetailedContext } from '@wdio/protocols';
111
111
  * @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>
112
112
  * @param {number=} options.waitForWebviewMs The time in milliseconds to wait for webviews to become available before returning contexts. This parameter is passed directly to the Appium `mobile: getContexts` command. Default is `0` ms (optional). <br /><strong>ANDROID-ONLY</strong> <br />This is useful when you know that a webview is loading but needs additional time to become available. This option works at the Appium level, before WebdriverIO's retry logic (`androidWebviewConnectionRetryTime` and `androidWebviewConnectTimeout`) is applied.
113
113
  * @skipUsage
114
+ *
115
+ * @support ["ios","android"]
114
116
  */
115
117
  export declare function getContext(this: WebdriverIO.Browser, options?: {
116
118
  returnDetailedContext?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"getContext.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAK/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE;IACN,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GACF,OAAO,CAAC,MAAM,GAAG,eAAe,CAAC,CAgBnC"}
1
+ {"version":3,"file":"getContext.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAK/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkHG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE;IACN,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GACF,OAAO,CAAC,MAAM,GAAG,eAAe,CAAC,CAgBnC"}
@@ -166,6 +166,8 @@ import type { Context } from '@wdio/protocols';
166
166
  * @param {boolean=} options.returnAndroidDescriptionData By default, no Android Webview (Chrome) description description data. If you want to get all data, you can set this to `true`. Default is `false` (optional). <br />By enabling this option you will get extra data in the response, see the `description.data.test.js` for more information. <br /><strong>ANDROID-ONLY</strong>
167
167
  * @param {number=} options.waitForWebviewMs The time in milliseconds to wait for webviews to become available before returning contexts. This parameter is passed directly to the Appium `mobile: getContexts` command. Default is `0` ms (optional). <br /><strong>ANDROID-ONLY</strong> <br />This is useful when you know that a webview is loading but needs additional time to become available. This option works at the Appium level, before WebdriverIO's retry logic (`androidWebviewConnectionRetryTime` and `androidWebviewConnectTimeout`) is applied.
168
168
  * @skipUsage
169
+ *
170
+ * @support ["ios","android"]
169
171
  */
170
172
  export declare function getContexts(this: WebdriverIO.Browser, options?: GetContextsOptions): Promise<Context[] | AppiumDetailedCrossPlatformContexts>;
171
173
  //# sourceMappingURL=getContexts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getContexts.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getContexts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA0B,mCAAmC,EAAE,kBAAkB,EAAsB,MAAM,gBAAgB,CAAA;AACzI,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAI9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsKG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,kBAAkB,GAC7B,OAAO,CAAC,OAAO,EAAE,GAAG,mCAAmC,CAAC,CAsB1D"}
1
+ {"version":3,"file":"getContexts.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getContexts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA0B,mCAAmC,EAAE,kBAAkB,EAAsB,MAAM,gBAAgB,CAAA;AACzI,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAI9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwKG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,kBAAkB,GAC7B,OAAO,CAAC,OAAO,EAAE,GAAG,mCAAmC,CAAC,CAsB1D"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * Get the name of the current Android activity.
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
+ :getCurrentActivity.js
9
+ it('should get the current Android activity', async () => {
10
+ const activity = await browser.getCurrentActivity()
11
+ console.log('Current activity:', activity)
12
+ })
13
+ * </example>
14
+ *
15
+ * @returns {`Promise<string>`} The name of the current Android activity
16
+ *
17
+ * @support ["android"]
18
+ */
19
+ export declare function getCurrentActivity(this: WebdriverIO.Browser): Promise<string>;
20
+ //# sourceMappingURL=getCurrentActivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentActivity.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getCurrentActivity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,kBAAkB,CACpC,IAAI,EAAE,WAAW,CAAC,OAAO,GAC1B,OAAO,CAAC,MAAM,CAAC,CAqBjB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * Get the name of the current Android package.
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
+ :getCurrentPackage.js
9
+ it('should get the current Android package', async () => {
10
+ const pkg = await browser.getCurrentPackage()
11
+ console.log('Current package:', pkg)
12
+ })
13
+ * </example>
14
+ *
15
+ * @returns {`Promise<string>`} The name of the current Android package
16
+ *
17
+ * @support ["android"]
18
+ */
19
+ export declare function getCurrentPackage(this: WebdriverIO.Browser): Promise<string>;
20
+ //# sourceMappingURL=getCurrentPackage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentPackage.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getCurrentPackage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,iBAAiB,CACnC,IAAI,EAAE,WAAW,CAAC,OAAO,GAC1B,OAAO,CAAC,MAAM,CAAC,CAqBjB"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ *
3
+ * Get the display density from 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
+ * <example>
8
+ :getDisplayDensity.js
9
+ it('should get the display density', async () => {
10
+ const density = await browser.getDisplayDensity()
11
+ console.log('Display density:', density)
12
+ })
13
+ * </example>
14
+ *
15
+ * @support ["android"]
16
+ */
17
+ export declare function getDisplayDensity(this: WebdriverIO.Browser): Promise<any>;
18
+ //# sourceMappingURL=getDisplayDensity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDisplayDensity.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getDisplayDensity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,iBAAiB,CACnC,IAAI,EAAE,WAAW,CAAC,OAAO,gBAsB5B"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ *
3
+ * Get performance data for a specific application. Returns system state information like cpu,
4
+ * memory, network traffic, and battery. Use `getPerformanceDataTypes()` to find available
5
+ * data types.
6
+ *
7
+ * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.
8
+ *
9
+ * <example>
10
+ :getPerformanceData.js
11
+ it('should get performance data for an app', async () => {
12
+ // Get available data types first
13
+ const types = await browser.getPerformanceDataTypes()
14
+ // Get CPU info for an app
15
+ const cpuData = await browser.getPerformanceData('com.example.app', 'cpuinfo', 5)
16
+ })
17
+ * </example>
18
+ *
19
+ * @param {string} packageName The package name of the application to get performance data for
20
+ * @param {string} dataType The type of performance data to retrieve (e.g. cpuinfo, memoryinfo)
21
+ * @param {number} [dataReadTimeout] Timeout in seconds to wait for the data to be read
22
+ *
23
+ * @returns {`Promise<string[]>`} Performance data for the requested type
24
+ *
25
+ * @support ["android"]
26
+ */
27
+ export declare function getPerformanceData(this: WebdriverIO.Browser, packageName: string, dataType: string, dataReadTimeout?: number): Promise<string[]>;
28
+ //# sourceMappingURL=getPerformanceData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPerformanceData.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getPerformanceData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,kBAAkB,CACpC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,MAAM,EAAE,CAAC,CAqBnB"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ *
3
+ * Returns the information types of the system state which is supported to read
4
+ * as part of performance data (e.g. cpu, memory, network traffic, battery).
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
+ :getPerformanceDataTypes.js
10
+ it('should get the supported performance data types', async () => {
11
+ const types = await browser.getPerformanceDataTypes()
12
+ console.log('Supported types:', types)
13
+ })
14
+ * </example>
15
+ *
16
+ * @returns {`Promise<string[]>`} A list of supported performance data type names
17
+ *
18
+ * @support ["android"]
19
+ */
20
+ export declare function getPerformanceDataTypes(this: WebdriverIO.Browser): Promise<string[]>;
21
+ //# sourceMappingURL=getPerformanceDataTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPerformanceDataTypes.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getPerformanceDataTypes.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,uBAAuB,CACzC,IAAI,EAAE,WAAW,CAAC,OAAO,GAC1B,OAAO,CAAC,MAAM,EAAE,CAAC,CAqBnB"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ *
3
+ * Get app strings for a specific language. Returns a key-value object of all string resources
4
+ * defined in the application for the given language.
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
+ :getStrings.js
10
+ it('should get app strings', async () => {
11
+ // Get strings for default language
12
+ const strings = await browser.getStrings()
13
+ // Get strings for a specific language
14
+ const frStrings = await browser.getStrings('fr')
15
+ })
16
+ * </example>
17
+ *
18
+ * @param {string} [language] Language code (e.g. `'fr'`, `'de'`). Defaults to the device language.
19
+ * @param {string} [stringFile] Path to the strings file (Android only).
20
+ *
21
+ * @returns {`Promise<Record<string, string>>`} Key-value map of all string resources.
22
+ *
23
+ * @support ["ios","android"]
24
+ */
25
+ export declare function getStrings(this: WebdriverIO.Browser, language?: string, stringFile?: string): Promise<Record<string, string>>;
26
+ //# sourceMappingURL=getStrings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStrings.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getStrings.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,CAAC,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAiBjC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ *
3
+ * Retrieve visibility and bounds information of the status and navigation bars.
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
+ :getSystemBars.js
9
+ it('should get system bars info', async () => {
10
+ const bars = await browser.getSystemBars()
11
+ console.log('Status bar:', bars.statusBar)
12
+ console.log('Navigation bar:', bars.navigationBar)
13
+ })
14
+ * </example>
15
+ *
16
+ * @support ["android"]
17
+ */
18
+ export declare function getSystemBars(this: WebdriverIO.Browser): Promise<unknown>;
19
+ //# sourceMappingURL=getSystemBars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSystemBars.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/getSystemBars.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,aAAa,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,oBAsB5B"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ *
3
+ * Make a GSM call on the Android emulator. Valid actions: 'call', 'accept', 'cancel', 'hold'.
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
+ :gsmCall.js
9
+ it('should simulate a GSM call', async () => {
10
+ // Simulate an incoming call
11
+ await browser.gsmCall('+15551234567', 'call')
12
+ // Accept the call
13
+ await browser.gsmCall('+15551234567', 'accept')
14
+ })
15
+ * </example>
16
+ *
17
+ * @param {string} phoneNumber The phone number to use for the GSM call simulation
18
+ * @param {string} action The action to perform ('call', 'accept', 'cancel', 'hold')
19
+ *
20
+ * @support ["android"]
21
+ */
22
+ export declare function gsmCall(this: WebdriverIO.Browser, phoneNumber: string, action: string): Promise<unknown>;
23
+ //# sourceMappingURL=gsmCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gsmCall.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/gsmCall.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,oBAsBjB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * Set the GSM signal strength on the Android emulator. Value must be in range [0, 4] where 0 is
4
+ * no signal and 4 is full signal.
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
+ :gsmSignal.js
10
+ it('should set GSM signal to full strength', async () => {
11
+ await browser.gsmSignal('4')
12
+ })
13
+ * </example>
14
+ *
15
+ * @param {string} signalStrength The signal strength to set (0–4, where 0 is none and 4 is full)
16
+ *
17
+ * @support ["android"]
18
+ */
19
+ export declare function gsmSignal(this: WebdriverIO.Browser, signalStrength: string): Promise<unknown>;
20
+ //# sourceMappingURL=gsmSignal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gsmSignal.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/gsmSignal.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,SAAS,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,cAAc,EAAE,MAAM,oBAsBzB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * Set the GSM voice state on the Android emulator. Valid values: 'unregistered', 'home',
4
+ * 'roaming', 'searching', 'denied', 'off', 'on'.
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
+ :gsmVoice.js
10
+ it('should set GSM voice state to home', async () => {
11
+ await browser.gsmVoice('home')
12
+ })
13
+ * </example>
14
+ *
15
+ * @param {string} state The GSM voice state to set ('unregistered', 'home', 'roaming', 'searching', 'denied', 'off', 'on')
16
+ *
17
+ * @support ["android"]
18
+ */
19
+ export declare function gsmVoice(this: WebdriverIO.Browser, state: string): Promise<unknown>;
20
+ //# sourceMappingURL=gsmVoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gsmVoice.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/gsmVoice.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,EAAE,MAAM,oBAsBhB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * Check whether the device screen is locked.
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
+ :isLocked.js
9
+ it('should check if the device is locked', async () => {
10
+ const locked = await browser.isLocked()
11
+ console.log('Device is locked:', locked)
12
+ })
13
+ * </example>
14
+ *
15
+ * @returns {`Promise<boolean>`} `true` if the device is locked, `false` otherwise
16
+ *
17
+ * @support ["ios","android"]
18
+ */
19
+ export declare function isLocked(this: WebdriverIO.Browser): Promise<boolean>;
20
+ //# sourceMappingURL=isLocked.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isLocked.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/isLocked.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,GAC1B,OAAO,CAAC,OAAO,CAAC,CAiBlB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ *
3
+ * Launch the app configured in the current session capabilities.
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
+ :launchApp.js
9
+ it('should launch the app', async () => {
10
+ await browser.launchApp()
11
+ })
12
+ * </example>
13
+ *
14
+ * @support ["ios","android"]
15
+ */
16
+ export declare function launchApp(this: WebdriverIO.Browser): Promise<unknown>;
17
+ //# sourceMappingURL=launchApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launchApp.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/launchApp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,oBAoB5B"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ *
3
+ * Lock 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
+ :lock.js
9
+ it('should lock the screen', async () => {
10
+ // Lock the screen indefinitely
11
+ await browser.lock()
12
+ })
13
+ * </example>
14
+ *
15
+ * <example>
16
+ :lock.timeout.js
17
+ it('should lock the screen for 5 seconds (iOS only)', async () => {
18
+ // Lock the screen for 5 seconds, then auto-unlock (iOS only)
19
+ await browser.lock(5)
20
+ })
21
+ * </example>
22
+ *
23
+ * @param {number} [seconds] How long to lock the screen in seconds (iOS only)
24
+ *
25
+ * @support ["ios","android"]
26
+ */
27
+ export declare function lock(this: WebdriverIO.Browser, seconds?: number): Promise<unknown>;
28
+ //# sourceMappingURL=lock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/lock.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,IAAI,CACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,MAAM,oBAkBnB"}
@@ -45,6 +45,8 @@ import type { LongPressOptions } from '../../types.js';
45
45
  * @param {number=} options.y Number (optional)
46
46
  * @param {number=} options.duration Duration of the press in ms, default is 1500 ms <br /><strong>MOBILE-ONLY</strong>
47
47
  * @mobileElement
48
+ *
49
+ * @support ["ios","android"]
48
50
  */
49
51
  export declare function longPress(this: WebdriverIO.Element, options?: Partial<LongPressOptions>): Promise<void>;
50
52
  //# sourceMappingURL=longPress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"longPress.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/longPress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,SAAS,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,iBA+CtC"}
1
+ {"version":3,"file":"longPress.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/longPress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,wBAAgB,SAAS,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,iBA+CtC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ *
3
+ * Press and hold a particular key code 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
+ * <example>
8
+ :longPressKeyCode.js
9
+ it('should long press the Home button', async () => {
10
+ await browser.longPressKeyCode(3)
11
+ })
12
+ * </example>
13
+ *
14
+ * @param {number} keycode The keycode to long-press (Android KeyEvent constant)
15
+ * @param {number} [metastate] Meta state to apply during the key press (e.g. shift, ctrl)
16
+ * @param {number} [flags] Integer flags for the key event
17
+ *
18
+ * @support ["android"]
19
+ */
20
+ export declare function longPressKeyCode(this: WebdriverIO.Browser, keycode: number, metastate?: number, flags?: number): Promise<unknown>;
21
+ //# sourceMappingURL=longPressKeyCode.d.ts.map
@@ -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"}