webdriverio 9.25.0 → 9.26.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.
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 +35 -0
  6. package/build/commands/mobile/closeApp.d.ts.map +1 -0
  7. package/build/commands/mobile/deepLink.d.ts +10 -3
  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 +22 -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 +46 -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 +26 -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 +90 -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 +34 -0
  92. package/build/commands/mobile/touchId.d.ts.map +1 -0
  93. package/build/commands/mobile/unlock.d.ts +41 -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 +950 -138
  100. package/build/node.js +958 -148
  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,35 @@
1
+ /**
2
+ *
3
+ * Close a specific app or the currently active 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
+ * If no `bundleId` (iOS) or `appId` (Android) is provided, the command will automatically detect and close the currently active app.
8
+ *
9
+ * <example>
10
+ :closeApp.js
11
+ it('should close the currently active app', async () => {
12
+ // Automatically close the currently active app
13
+ await browser.closeApp()
14
+ })
15
+ it('should close a specific iOS app by bundleId', async () => {
16
+ // iOS: close a specific app using its bundle ID
17
+ await browser.closeApp({ bundleId: 'com.example.myapp' })
18
+ })
19
+ it('should close a specific Android app by appId', async () => {
20
+ // Android: close a specific app using its package name
21
+ await browser.closeApp({ appId: 'com.example.myapp' })
22
+ })
23
+ * </example>
24
+ *
25
+ * @param {object} [options] Options for closing the app (optional)
26
+ * @param {string} [options.bundleId] The bundle ID of the iOS app to close. If not provided, the currently active app is closed. <br /><strong>iOS-ONLY</strong>
27
+ * @param {string} [options.appId] The package name of the Android app to close. If not provided, the currently active app is closed. <br /><strong>ANDROID-ONLY</strong>
28
+ *
29
+ * @support ["ios","android"]
30
+ */
31
+ export declare function closeApp(this: WebdriverIO.Browser, options?: {
32
+ bundleId?: string;
33
+ appId?: string;
34
+ }): Promise<unknown>;
35
+ //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE;IACN,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,oBA6BJ"}
@@ -14,10 +14,17 @@
14
14
  // Or if you want to have it "cross-platform" you can use it like this
15
15
  await browser.deepLink('wdio://drag', browser.isIOS ? 'org.reactjs.native.example.wdiodemoapp' : 'com.wdiodemoapp');
16
16
  })
17
+ it('should open a deep link without waiting for the app to launch (Android)', async () => {
18
+ // Android-only: do not wait for the app to launch after opening the deep link
19
+ await browser.deepLink('wdio://drag', 'com.wdiodemoapp', false)
20
+ })
17
21
  * </example>
18
22
  *
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
- * @param {string} appIdentifier The value of the `package` (Android) or `bundleId` (iOS) of the app that the deep link should open.
23
+ * @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.
24
+ * @param {string} appIdentifier The value of the `package` (Android) or `bundleId` (iOS) of the app that the deep link should open.
25
+ * @param {boolean} [waitForLaunch] Whether to wait for the app to launch after opening the deep link. Default is `true`. <br /><strong>ANDROID-ONLY</strong>
26
+ *
27
+ * @support ["ios","android"]
21
28
  */
22
- export declare function deepLink(this: WebdriverIO.Browser, link: string, appIdentifier: string): Promise<unknown>;
29
+ export declare function deepLink(this: WebdriverIO.Browser, link: string, appIdentifier: string, waitForLaunch?: boolean): Promise<unknown>;
23
30
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,OAAO,oBA6B1B"}
@@ -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,22 @@
1
+ /**
2
+ *
3
+ * Set the GSM signal strength 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
+ :gsmSignal.js
9
+ it('should set GSM signal to full strength', async () => {
10
+ await browser.gsmSignal(4)
11
+ })
12
+ it('should set GSM signal to no signal', async () => {
13
+ await browser.gsmSignal(0)
14
+ })
15
+ * </example>
16
+ *
17
+ * @param {number} signalStrength The signal strength to set. Accepted values: `0` (no signal), `1` (very poor), `2` (poor), `3` (moderate), `4` (good/full)
18
+ *
19
+ * @support ["android"]
20
+ */
21
+ export declare function gsmSignal(this: WebdriverIO.Browser, signalStrength: number): Promise<unknown>;
22
+ //# 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;;;;;;;;;;;;;;;;;;;GAmBG;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,46 @@
1
+ /**
2
+ *
3
+ * Launch or activate an app on the device. If no `bundleId` (iOS) or `appId` (Android) is provided,
4
+ * the command will automatically detect and activate the currently active app.
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
+ :launchApp.js
10
+ it('should launch a specific iOS app', async () => {
11
+ // iOS: launch a specific app by bundle ID
12
+ await browser.launchApp({ bundleId: 'com.example.myapp' })
13
+ })
14
+ it('should launch an iOS app with arguments and environment', async () => {
15
+ // iOS: launch an app and pass arguments and environment variables
16
+ await browser.launchApp({
17
+ bundleId: 'com.example.myapp',
18
+ arguments: ['-AppleLanguages', '(en)'],
19
+ environment: { MY_ENV_VAR: 'value' }
20
+ })
21
+ })
22
+ it('should launch a specific Android app', async () => {
23
+ // Android: activate/launch a specific app by package name
24
+ await browser.launchApp({ appId: 'com.example.myapp' })
25
+ })
26
+ it('should activate the currently active app', async () => {
27
+ // Automatically detect and activate the current app
28
+ await browser.launchApp()
29
+ })
30
+ * </example>
31
+ *
32
+ * @param {object} [options] Options for launching the app (optional)
33
+ * @param {string} [options.bundleId] The bundle ID of the iOS app to launch. If not provided, the currently active app is used. <br /><strong>iOS-ONLY</strong>
34
+ * @param {string|string[]} [options.arguments] Command line arguments to pass to the app on launch. <br /><strong>iOS-ONLY</strong>
35
+ * @param {object} [options.environment] Environment variables to set when launching the app (key-value pairs). <br /><strong>iOS-ONLY</strong>
36
+ * @param {string} [options.appId] The package name of the Android app to activate. If not provided, the currently active app is used. <br /><strong>ANDROID-ONLY</strong>
37
+ *
38
+ * @support ["ios","android"]
39
+ */
40
+ export declare function launchApp(this: WebdriverIO.Browser, options?: {
41
+ bundleId?: string;
42
+ arguments?: string | string[];
43
+ environment?: Record<string, string>;
44
+ appId?: string;
45
+ }): Promise<unknown>;
46
+ //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAsB,SAAS,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE;IACN,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,oBAsCJ"}