appium-xcuitest-driver 10.2.2 → 10.4.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 (262) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/active-app-info.d.ts +9 -0
  3. package/build/lib/commands/active-app-info.d.ts.map +1 -0
  4. package/build/lib/commands/active-app-info.js +14 -0
  5. package/build/lib/commands/active-app-info.js.map +1 -0
  6. package/build/lib/commands/alert.d.ts +42 -45
  7. package/build/lib/commands/alert.d.ts.map +1 -1
  8. package/build/lib/commands/alert.js +66 -62
  9. package/build/lib/commands/alert.js.map +1 -1
  10. package/build/lib/commands/app-management.d.ts +150 -153
  11. package/build/lib/commands/app-management.d.ts.map +1 -1
  12. package/build/lib/commands/app-management.js +300 -286
  13. package/build/lib/commands/app-management.js.map +1 -1
  14. package/build/lib/commands/app-strings.d.ts +14 -17
  15. package/build/lib/commands/app-strings.d.ts.map +1 -1
  16. package/build/lib/commands/app-strings.js +23 -24
  17. package/build/lib/commands/app-strings.js.map +1 -1
  18. package/build/lib/commands/appearance.d.ts +19 -22
  19. package/build/lib/commands/appearance.d.ts.map +1 -1
  20. package/build/lib/commands/appearance.js +56 -56
  21. package/build/lib/commands/appearance.js.map +1 -1
  22. package/build/lib/commands/audit.d.ts +22 -17
  23. package/build/lib/commands/audit.d.ts.map +1 -1
  24. package/build/lib/commands/audit.js +17 -18
  25. package/build/lib/commands/audit.js.map +1 -1
  26. package/build/lib/commands/battery.d.ts +11 -14
  27. package/build/lib/commands/battery.d.ts.map +1 -1
  28. package/build/lib/commands/battery.js +36 -37
  29. package/build/lib/commands/battery.js.map +1 -1
  30. package/build/lib/commands/biometric.d.ts +30 -33
  31. package/build/lib/commands/biometric.d.ts.map +1 -1
  32. package/build/lib/commands/biometric.js +42 -41
  33. package/build/lib/commands/biometric.js.map +1 -1
  34. package/build/lib/commands/certificate.d.ts +48 -45
  35. package/build/lib/commands/certificate.d.ts.map +1 -1
  36. package/build/lib/commands/certificate.js +218 -205
  37. package/build/lib/commands/certificate.js.map +1 -1
  38. package/build/lib/commands/clipboard.d.ts +19 -22
  39. package/build/lib/commands/clipboard.d.ts.map +1 -1
  40. package/build/lib/commands/clipboard.js +30 -30
  41. package/build/lib/commands/clipboard.js.map +1 -1
  42. package/build/lib/commands/condition.d.ts +49 -26
  43. package/build/lib/commands/condition.d.ts.map +1 -1
  44. package/build/lib/commands/condition.js +87 -86
  45. package/build/lib/commands/condition.js.map +1 -1
  46. package/build/lib/commands/content-size.d.ts +26 -29
  47. package/build/lib/commands/content-size.d.ts.map +1 -1
  48. package/build/lib/commands/content-size.js +36 -36
  49. package/build/lib/commands/content-size.js.map +1 -1
  50. package/build/lib/commands/context.d.ts +161 -108
  51. package/build/lib/commands/context.d.ts.map +1 -1
  52. package/build/lib/commands/context.js +530 -517
  53. package/build/lib/commands/context.js.map +1 -1
  54. package/build/lib/commands/deviceInfo.d.ts +9 -12
  55. package/build/lib/commands/deviceInfo.d.ts.map +1 -1
  56. package/build/lib/commands/deviceInfo.js +17 -18
  57. package/build/lib/commands/deviceInfo.js.map +1 -1
  58. package/build/lib/commands/element.d.ts +102 -105
  59. package/build/lib/commands/element.d.ts.map +1 -1
  60. package/build/lib/commands/element.js +337 -323
  61. package/build/lib/commands/element.js.map +1 -1
  62. package/build/lib/commands/execute.d.ts +24 -19
  63. package/build/lib/commands/execute.d.ts.map +1 -1
  64. package/build/lib/commands/execute.js +63 -62
  65. package/build/lib/commands/execute.js.map +1 -1
  66. package/build/lib/commands/file-movement.d.ts +77 -80
  67. package/build/lib/commands/file-movement.d.ts.map +1 -1
  68. package/build/lib/commands/file-movement.js +130 -124
  69. package/build/lib/commands/file-movement.js.map +1 -1
  70. package/build/lib/commands/find.d.ts +18 -21
  71. package/build/lib/commands/find.d.ts.map +1 -1
  72. package/build/lib/commands/find.js +158 -156
  73. package/build/lib/commands/find.js.map +1 -1
  74. package/build/lib/commands/general.d.ts +124 -116
  75. package/build/lib/commands/general.d.ts.map +1 -1
  76. package/build/lib/commands/general.js +248 -232
  77. package/build/lib/commands/general.js.map +1 -1
  78. package/build/lib/commands/geolocation.d.ts +43 -46
  79. package/build/lib/commands/geolocation.d.ts.map +1 -1
  80. package/build/lib/commands/geolocation.js +10 -11
  81. package/build/lib/commands/geolocation.js.map +1 -1
  82. package/build/lib/commands/gesture.d.ts +273 -276
  83. package/build/lib/commands/gesture.d.ts.map +1 -1
  84. package/build/lib/commands/gesture.js +506 -492
  85. package/build/lib/commands/gesture.js.map +1 -1
  86. package/build/lib/commands/increase-contrast.d.ts +20 -23
  87. package/build/lib/commands/increase-contrast.d.ts.map +1 -1
  88. package/build/lib/commands/increase-contrast.js +30 -30
  89. package/build/lib/commands/increase-contrast.js.map +1 -1
  90. package/build/lib/commands/iohid.d.ts +1370 -1373
  91. package/build/lib/commands/iohid.d.ts.map +1 -1
  92. package/build/lib/commands/iohid.js +30 -31
  93. package/build/lib/commands/iohid.js.map +1 -1
  94. package/build/lib/commands/keyboard.d.ts +29 -32
  95. package/build/lib/commands/keyboard.d.ts.map +1 -1
  96. package/build/lib/commands/keyboard.js +53 -51
  97. package/build/lib/commands/keyboard.js.map +1 -1
  98. package/build/lib/commands/keychains.d.ts +9 -12
  99. package/build/lib/commands/keychains.d.ts.map +1 -1
  100. package/build/lib/commands/keychains.js +13 -14
  101. package/build/lib/commands/keychains.js.map +1 -1
  102. package/build/lib/commands/localization.d.ts +16 -19
  103. package/build/lib/commands/localization.d.ts.map +1 -1
  104. package/build/lib/commands/localization.js +25 -26
  105. package/build/lib/commands/localization.js.map +1 -1
  106. package/build/lib/commands/location.d.ts +36 -39
  107. package/build/lib/commands/location.d.ts.map +1 -1
  108. package/build/lib/commands/location.js +99 -98
  109. package/build/lib/commands/location.js.map +1 -1
  110. package/build/lib/commands/lock.d.ts +21 -24
  111. package/build/lib/commands/lock.d.ts.map +1 -1
  112. package/build/lib/commands/lock.js +39 -38
  113. package/build/lib/commands/lock.js.map +1 -1
  114. package/build/lib/commands/log.d.ts +43 -37
  115. package/build/lib/commands/log.d.ts.map +1 -1
  116. package/build/lib/commands/log.js +174 -171
  117. package/build/lib/commands/log.js.map +1 -1
  118. package/build/lib/commands/memory.d.ts +9 -12
  119. package/build/lib/commands/memory.d.ts.map +1 -1
  120. package/build/lib/commands/memory.js +37 -39
  121. package/build/lib/commands/memory.js.map +1 -1
  122. package/build/lib/commands/navigation.d.ts +30 -33
  123. package/build/lib/commands/navigation.d.ts.map +1 -1
  124. package/build/lib/commands/navigation.js +92 -92
  125. package/build/lib/commands/navigation.js.map +1 -1
  126. package/build/lib/commands/notifications.d.ts +26 -29
  127. package/build/lib/commands/notifications.d.ts.map +1 -1
  128. package/build/lib/commands/notifications.js +53 -53
  129. package/build/lib/commands/notifications.js.map +1 -1
  130. package/build/lib/commands/pasteboard.d.ts +21 -24
  131. package/build/lib/commands/pasteboard.d.ts.map +1 -1
  132. package/build/lib/commands/pasteboard.js +37 -37
  133. package/build/lib/commands/pasteboard.js.map +1 -1
  134. package/build/lib/commands/pcap.d.ts +39 -26
  135. package/build/lib/commands/pcap.d.ts.map +1 -1
  136. package/build/lib/commands/pcap.js +81 -81
  137. package/build/lib/commands/pcap.js.map +1 -1
  138. package/build/lib/commands/performance.d.ts +63 -44
  139. package/build/lib/commands/performance.d.ts.map +1 -1
  140. package/build/lib/commands/performance.js +105 -105
  141. package/build/lib/commands/performance.js.map +1 -1
  142. package/build/lib/commands/permissions.d.ts +33 -36
  143. package/build/lib/commands/permissions.d.ts.map +1 -1
  144. package/build/lib/commands/permissions.js +66 -65
  145. package/build/lib/commands/permissions.js.map +1 -1
  146. package/build/lib/commands/proxy-helper.d.ts +12 -15
  147. package/build/lib/commands/proxy-helper.d.ts.map +1 -1
  148. package/build/lib/commands/proxy-helper.js +53 -54
  149. package/build/lib/commands/proxy-helper.js.map +1 -1
  150. package/build/lib/commands/record-audio.d.ts +49 -29
  151. package/build/lib/commands/record-audio.d.ts.map +1 -1
  152. package/build/lib/commands/record-audio.js +100 -104
  153. package/build/lib/commands/record-audio.js.map +1 -1
  154. package/build/lib/commands/recordscreen.d.ts +54 -18
  155. package/build/lib/commands/recordscreen.d.ts.map +1 -1
  156. package/build/lib/commands/recordscreen.js +127 -129
  157. package/build/lib/commands/recordscreen.js.map +1 -1
  158. package/build/lib/commands/screenshots.d.ts +14 -17
  159. package/build/lib/commands/screenshots.d.ts.map +1 -1
  160. package/build/lib/commands/screenshots.js +108 -107
  161. package/build/lib/commands/screenshots.js.map +1 -1
  162. package/build/lib/commands/simctl.d.ts +11 -14
  163. package/build/lib/commands/simctl.d.ts.map +1 -1
  164. package/build/lib/commands/simctl.js +23 -26
  165. package/build/lib/commands/simctl.js.map +1 -1
  166. package/build/lib/commands/source.d.ts +14 -17
  167. package/build/lib/commands/source.d.ts.map +1 -1
  168. package/build/lib/commands/source.js +40 -43
  169. package/build/lib/commands/source.js.map +1 -1
  170. package/build/lib/commands/timeouts.d.ts +44 -33
  171. package/build/lib/commands/timeouts.d.ts.map +1 -1
  172. package/build/lib/commands/timeouts.js +65 -63
  173. package/build/lib/commands/timeouts.js.map +1 -1
  174. package/build/lib/commands/web.d.ts +247 -197
  175. package/build/lib/commands/web.d.ts.map +1 -1
  176. package/build/lib/commands/web.js +815 -786
  177. package/build/lib/commands/web.js.map +1 -1
  178. package/build/lib/commands/xctest-record-screen.d.ts +63 -66
  179. package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
  180. package/build/lib/commands/xctest-record-screen.js +103 -102
  181. package/build/lib/commands/xctest-record-screen.js.map +1 -1
  182. package/build/lib/commands/xctest.d.ts +55 -51
  183. package/build/lib/commands/xctest.d.ts.map +1 -1
  184. package/build/lib/commands/xctest.js +116 -117
  185. package/build/lib/commands/xctest.js.map +1 -1
  186. package/build/lib/driver.d.ts +278 -1597
  187. package/build/lib/driver.d.ts.map +1 -1
  188. package/build/lib/driver.js +320 -236
  189. package/build/lib/driver.js.map +1 -1
  190. package/build/lib/execute-method-map.d.ts.map +1 -1
  191. package/build/lib/execute-method-map.js +9 -0
  192. package/build/lib/execute-method-map.js.map +1 -1
  193. package/build/lib/real-device.d.ts +1 -1
  194. package/build/lib/real-device.d.ts.map +1 -1
  195. package/build/lib/real-device.js +2 -2
  196. package/build/lib/real-device.js.map +1 -1
  197. package/lib/commands/active-app-info.js +12 -0
  198. package/lib/commands/alert.js +68 -65
  199. package/lib/commands/app-management.js +308 -301
  200. package/lib/commands/app-strings.js +24 -26
  201. package/lib/commands/appearance.js +54 -56
  202. package/lib/commands/audit.js +18 -20
  203. package/lib/commands/battery.js +35 -37
  204. package/lib/commands/biometric.js +44 -46
  205. package/lib/commands/certificate.js +226 -215
  206. package/lib/commands/clipboard.js +30 -32
  207. package/lib/commands/condition.js +98 -100
  208. package/lib/commands/content-size.js +36 -38
  209. package/lib/commands/context.js +495 -490
  210. package/lib/commands/deviceInfo.js +19 -20
  211. package/lib/commands/element.js +367 -357
  212. package/lib/commands/execute.js +72 -72
  213. package/lib/commands/file-movement.js +132 -134
  214. package/lib/commands/find.js +160 -159
  215. package/lib/commands/general.js +238 -231
  216. package/lib/commands/geolocation.js +6 -14
  217. package/lib/commands/gesture.js +525 -515
  218. package/lib/commands/increase-contrast.js +30 -32
  219. package/lib/commands/iohid.js +32 -34
  220. package/lib/commands/keyboard.js +49 -51
  221. package/lib/commands/keychains.js +12 -14
  222. package/lib/commands/localization.js +24 -26
  223. package/lib/commands/location.js +102 -104
  224. package/lib/commands/lock.js +38 -38
  225. package/lib/commands/log.js +197 -198
  226. package/lib/commands/memory.js +40 -43
  227. package/lib/commands/navigation.js +96 -100
  228. package/lib/commands/notifications.js +57 -59
  229. package/lib/commands/pasteboard.js +37 -39
  230. package/lib/commands/pcap.js +84 -86
  231. package/lib/commands/performance.js +132 -133
  232. package/lib/commands/permissions.js +67 -69
  233. package/lib/commands/proxy-helper.js +60 -61
  234. package/lib/commands/record-audio.js +115 -120
  235. package/lib/commands/recordscreen.js +145 -149
  236. package/lib/commands/screenshots.js +116 -116
  237. package/lib/commands/simctl.js +25 -29
  238. package/lib/commands/source.js +42 -46
  239. package/lib/commands/timeouts.js +59 -63
  240. package/lib/commands/web.js +878 -858
  241. package/lib/commands/xctest-record-screen.js +103 -105
  242. package/lib/commands/xctest.js +134 -139
  243. package/lib/driver.js +288 -236
  244. package/lib/execute-method-map.ts +9 -0
  245. package/lib/real-device.js +2 -2
  246. package/npm-shrinkwrap.json +440 -76
  247. package/package.json +2 -1
  248. package/build/lib/commands/activeAppInfo.d.ts +0 -12
  249. package/build/lib/commands/activeAppInfo.d.ts.map +0 -1
  250. package/build/lib/commands/activeAppInfo.js +0 -15
  251. package/build/lib/commands/activeAppInfo.js.map +0 -1
  252. package/build/lib/commands/index.d.ts +0 -96
  253. package/build/lib/commands/index.d.ts.map +0 -1
  254. package/build/lib/commands/index.js +0 -100
  255. package/build/lib/commands/index.js.map +0 -1
  256. package/build/lib/real-device-clients/devicectl.d.ts +0 -204
  257. package/build/lib/real-device-clients/devicectl.d.ts.map +0 -1
  258. package/build/lib/real-device-clients/devicectl.js +0 -264
  259. package/build/lib/real-device-clients/devicectl.js.map +0 -1
  260. package/lib/commands/activeAppInfo.js +0 -14
  261. package/lib/commands/index.js +0 -95
  262. package/lib/real-device-clients/devicectl.js +0 -291
@@ -1,136 +1,189 @@
1
1
  /**
2
- * https://github.com/appium/appium/issues/20741
3
- *
4
2
  * @this {XCUITestDriver}
5
- * @returns {Promise<void>}
3
+ * @param {boolean} [useUrl=false]
4
+ * @returns {Promise<import('./types').ViewContext[]>}
6
5
  */
7
- export function notifyBiDiContextChange(this: import("../driver").XCUITestDriver): Promise<void>;
8
- declare namespace _default {
9
- /**
10
- * @this {XCUITestDriver}
11
- * @returns {Promise<string>}
12
- */
13
- function getCurrentContext(this: import("../driver").XCUITestDriver): Promise<string>;
14
- /**
15
- * Set context
16
- *
17
- * @param {string|Context} name - The name of context to set. It could be 'null' as NATIVE_WIN.
18
- * @param {any} [callback] The callback. (It is not called in this method)
19
- * @param {boolean} [skipReadyCheck=false] - Whether it waits for the new context is ready
20
- * @this {XCUITestDriver}
21
- * @returns {Promise<void>}
22
- */
23
- function setContext(this: import("../driver").XCUITestDriver, name: string | Context, callback?: any, skipReadyCheck?: boolean): Promise<void>;
24
- /**
25
- * @this {XCUITestDriver}
26
- * @returns {Promise<string[]|FullContext[]>}
27
- */
28
- function getContexts(this: import("../driver").XCUITestDriver): Promise<string[] | FullContext[]>;
29
- /**
30
- * @this {XCUITestDriver}
31
- * @param {string} name
32
- * @param {boolean} [skipReadyCheck]
33
- * @returns {Promise<void>}
34
- */
35
- function setWindow(this: import("../driver").XCUITestDriver, name: string, skipReadyCheck?: boolean): Promise<void>;
36
- /**
37
- * @this {XCUITestDriver}
38
- * @returns {Promise<string>}
39
- */
40
- function getWindowHandle(this: import("../driver").XCUITestDriver): Promise<string>;
41
- /**
42
- * @this {XCUITestDriver}
43
- * @returns {Promise<string[]>}
44
- */
45
- function getWindowHandles(this: import("../driver").XCUITestDriver): Promise<string[]>;
6
+ export function getContextsAndViews(this: import("../driver").XCUITestDriver, useUrl?: boolean): Promise<import("./types").ViewContext[]>;
7
+ export class getContextsAndViews {
46
8
  /**
47
9
  * @this {XCUITestDriver}
48
10
  * @param {boolean} [useUrl=false]
49
11
  * @returns {Promise<import('./types').ViewContext[]>}
50
12
  */
51
- function getContextsAndViews(this: import("../driver").XCUITestDriver, useUrl?: boolean): Promise<import("./types").ViewContext[]>;
52
- /**
53
- * @deprecated this method is not used anywhere and will be removed in the future
54
- * @this {XCUITestDriver}
55
- * @returns {boolean}
56
- */
57
- function useNewSafari(this: import("../driver").XCUITestDriver): boolean;
58
- /**
59
- * @this {XCUITestDriver}
60
- * @returns {Promise<void>}
61
- */
62
- function activateRecentWebview(this: import("../driver").XCUITestDriver): Promise<void>;
63
- /**
64
- * @this {XCUITestDriver}
65
- * @returns {Promise<import('../types').Page[]>}
66
- */
67
- function listWebFrames(this: import("../driver").XCUITestDriver, useUrl?: boolean): Promise<import("../types").Page[]>;
68
- /**
69
- * @this {XCUITestDriver}
70
- * @returns {Promise<void>}
71
- */
72
- function connectToRemoteDebugger(this: import("../driver").XCUITestDriver): Promise<void>;
73
- /**
74
- * Retrieves the list of available contexts.
75
- *
76
- * The list includes extended context information, like URLs and page names.
77
- * This is different from the standard `getContexts` API, because the latter
78
- * only has web view names without any additional information.
79
- *
80
- * @remarks In situations where multiple web views are available at once, the
81
- * client code would have to connect to each of them in order to detect the
82
- * one which needs to be interacted with. This extra effort is not needed with
83
- * the information provided by this extension.
84
- * @param {number} [waitForWebviewMs=0] - The period to poll for available webview(s) (in ms)
85
- * @returns {Promise<Context[]>} The list of available context objects along with their properties.
86
- * @this {XCUITestDriver}
87
- */
88
- function mobileGetContexts(this: import("../driver").XCUITestDriver, waitForWebviewMs?: number): Promise<Context[]>;
13
+ constructor(this: import("../driver").XCUITestDriver, useUrl?: boolean);
14
+ contexts: string[];
15
+ }
16
+ /**
17
+ * @deprecated this method is not used anywhere and will be removed in the future
18
+ * @this {XCUITestDriver}
19
+ * @returns {boolean}
20
+ */
21
+ export function useNewSafari(this: import("../driver").XCUITestDriver): boolean;
22
+ /**
23
+ * @this {XCUITestDriver}
24
+ * @returns {Promise<void>}
25
+ */
26
+ export function activateRecentWebview(this: import("../driver").XCUITestDriver): Promise<void>;
27
+ /**
28
+ * @this {XCUITestDriver}
29
+ * @returns {Promise<import('../types').Page[]>}
30
+ */
31
+ export function listWebFrames(this: import("../driver").XCUITestDriver, useUrl?: boolean): Promise<import("../types").Page[]>;
32
+ /**
33
+ * @this {XCUITestDriver}
34
+ * @returns {Promise<void>}
35
+ */
36
+ export function connectToRemoteDebugger(this: import("../driver").XCUITestDriver): Promise<void>;
37
+ export class connectToRemoteDebugger {
38
+ remote: RemoteDebugger;
39
+ curWebFrames: any[];
40
+ }
41
+ /**
42
+ * Retrieves the list of available contexts.
43
+ *
44
+ * The list includes extended context information, like URLs and page names.
45
+ * This is different from the standard `getContexts` API, because the latter
46
+ * only has web view names without any additional information.
47
+ *
48
+ * @remarks In situations where multiple web views are available at once, the
49
+ * client code would have to connect to each of them in order to detect the
50
+ * one which needs to be interacted with. This extra effort is not needed with
51
+ * the information provided by this extension.
52
+ * @param {number} [waitForWebviewMs=0] - The period to poll for available webview(s) (in ms)
53
+ * @returns {Promise<Context[]>} The list of available context objects along with their properties.
54
+ * @this {XCUITestDriver}
55
+ */
56
+ export function mobileGetContexts(this: import("../driver").XCUITestDriver, waitForWebviewMs?: number): Promise<Context[]>;
57
+ /**
58
+ * @this {XCUITestDriver}
59
+ * @param {import('./types').PageChangeNotification} pageChangeNotification
60
+ * @returns {Promise<void>}
61
+ */
62
+ export function onPageChange(this: import("../driver").XCUITestDriver, pageChangeNotification: import("./types").PageChangeNotification): Promise<void>;
63
+ export class onPageChange {
89
64
  /**
90
65
  * @this {XCUITestDriver}
91
66
  * @param {import('./types').PageChangeNotification} pageChangeNotification
92
67
  * @returns {Promise<void>}
93
68
  */
94
- function onPageChange(this: import("../driver").XCUITestDriver, pageChangeNotification: import("./types").PageChangeNotification): Promise<void>;
69
+ constructor(this: import("../driver").XCUITestDriver, pageChangeNotification: import("./types").PageChangeNotification);
70
+ curContext: string | undefined;
71
+ selectingNewPage: boolean | undefined;
72
+ }
73
+ /**
74
+ * @this {XCUITestDriver}
75
+ * @returns {Promise<void>}
76
+ */
77
+ export function stopRemote(this: import("../driver").XCUITestDriver, closeWindowBeforeDisconnecting?: boolean): Promise<void>;
78
+ export class stopRemote {
95
79
  /**
96
80
  * @this {XCUITestDriver}
97
81
  * @returns {Promise<void>}
98
82
  */
99
- function stopRemote(this: import("../driver").XCUITestDriver, closeWindowBeforeDisconnecting?: boolean): Promise<void>;
83
+ constructor(this: import("../driver").XCUITestDriver, closeWindowBeforeDisconnecting?: boolean);
84
+ curContext: any;
85
+ curWebFrames: any[];
86
+ remote: any;
87
+ }
88
+ /**
89
+ * @this {XCUITestDriver}
90
+ * @param {string|undefined|null} url
91
+ */
92
+ export function setCurrentUrl(this: import("../driver").XCUITestDriver, url: string | undefined | null): void;
93
+ export class setCurrentUrl {
100
94
  /**
101
95
  * @this {XCUITestDriver}
102
96
  * @param {string|undefined|null} url
103
97
  */
104
- function setCurrentUrl(this: import("../driver").XCUITestDriver, url: string | undefined | null): void;
105
- /**
106
- * @this {XCUITestDriver}
107
- * @returns {string|undefined|null}
108
- */
109
- function getCurrentUrl(this: import("../driver").XCUITestDriver): string | undefined | null;
110
- /**
111
- * @param {RegExp} titleRegExp
112
- * @param {RegExp} urlRegExp
113
- * @this {XCUITestDriver}
114
- * @returns {Promise<string|undefined>}
115
- */
116
- function getRecentWebviewContextId(this: import("../driver").XCUITestDriver, titleRegExp: RegExp, urlRegExp: RegExp): Promise<string | undefined>;
117
- /**
118
- * @this {XCUITestDriver}
119
- * @returns {boolean}
120
- */
121
- function isWebContext(this: import("../driver").XCUITestDriver): boolean;
122
- /**
123
- * @this {XCUITestDriver}
124
- * @returns {boolean}
125
- */
126
- function isWebview(this: import("../driver").XCUITestDriver): boolean;
98
+ constructor(this: import("../driver").XCUITestDriver, url: string | undefined | null);
99
+ _currentUrl: string | null | undefined;
100
+ }
101
+ /**
102
+ * @this {XCUITestDriver}
103
+ * @returns {string|undefined|null}
104
+ */
105
+ export function getCurrentUrl(this: import("../driver").XCUITestDriver): string | undefined | null;
106
+ /**
107
+ * @param {RegExp} titleRegExp
108
+ * @param {RegExp} urlRegExp
109
+ * @this {XCUITestDriver}
110
+ * @returns {Promise<string|undefined>}
111
+ */
112
+ export function getRecentWebviewContextId(this: import("../driver").XCUITestDriver, titleRegExp: RegExp, urlRegExp: RegExp): Promise<string | undefined>;
113
+ /**
114
+ * @this {XCUITestDriver}
115
+ * @returns {boolean}
116
+ */
117
+ export function isWebContext(this: import("../driver").XCUITestDriver): boolean;
118
+ /**
119
+ * @this {XCUITestDriver}
120
+ * @returns {boolean}
121
+ */
122
+ export function isWebview(this: import("../driver").XCUITestDriver): boolean;
123
+ /**
124
+ * @this {XCUITestDriver}
125
+ * @returns {Promise<RemoteDebugger>}
126
+ */
127
+ export function getNewRemoteDebugger(this: import("../driver").XCUITestDriver): Promise<RemoteDebugger>;
128
+ /**
129
+ * @this {XCUITestDriver}
130
+ * @returns {Promise<string>}
131
+ */
132
+ export function getCurrentContext(this: import("../driver").XCUITestDriver): Promise<string>;
133
+ /**
134
+ * Set context
135
+ *
136
+ * @param {string|Context} name - The name of context to set. It could be 'null' as NATIVE_WIN.
137
+ * @param {any} [callback] The callback. (It is not called in this method)
138
+ * @param {boolean} [skipReadyCheck=false] - Whether it waits for the new context is ready
139
+ * @this {XCUITestDriver}
140
+ * @returns {Promise<void>}
141
+ */
142
+ export function setContext(this: import("../driver").XCUITestDriver, name: string | Context, callback?: any, skipReadyCheck?: boolean): Promise<void>;
143
+ export class setContext {
127
144
  /**
145
+ * Set context
146
+ *
147
+ * @param {string|Context} name - The name of context to set. It could be 'null' as NATIVE_WIN.
148
+ * @param {any} [callback] The callback. (It is not called in this method)
149
+ * @param {boolean} [skipReadyCheck=false] - Whether it waits for the new context is ready
128
150
  * @this {XCUITestDriver}
129
- * @returns {Promise<RemoteDebugger>}
151
+ * @returns {Promise<void>}
130
152
  */
131
- function getNewRemoteDebugger(this: import("../driver").XCUITestDriver): Promise<RemoteDebugger>;
153
+ constructor(this: import("../driver").XCUITestDriver, name: string | Context, callback?: any, skipReadyCheck?: boolean);
154
+ curContext: string | null | undefined;
155
+ curWindowHandle: string | undefined;
156
+ selectingNewPage: boolean | undefined;
132
157
  }
133
- export default _default;
158
+ /**
159
+ * @this {XCUITestDriver}
160
+ * @returns {Promise<string[]|FullContext[]>}
161
+ */
162
+ export function getContexts(this: import("../driver").XCUITestDriver): Promise<string[] | FullContext[]>;
163
+ /**
164
+ * @this {XCUITestDriver}
165
+ * @param {string} name
166
+ * @param {boolean} [skipReadyCheck]
167
+ * @returns {Promise<void>}
168
+ */
169
+ export function setWindow(this: import("../driver").XCUITestDriver, name: string, skipReadyCheck?: boolean): Promise<void>;
170
+ /**
171
+ * @this {XCUITestDriver}
172
+ * @returns {Promise<string>}
173
+ */
174
+ export function getWindowHandle(this: import("../driver").XCUITestDriver): Promise<string>;
175
+ /**
176
+ * @this {XCUITestDriver}
177
+ * @returns {Promise<string[]>}
178
+ */
179
+ export function getWindowHandles(this: import("../driver").XCUITestDriver): Promise<string[]>;
180
+ /**
181
+ * https://github.com/appium/appium/issues/20741
182
+ *
183
+ * @this {XCUITestDriver}
184
+ * @returns {Promise<void>}
185
+ */
186
+ export function notifyBiDiContextChange(this: import("../driver").XCUITestDriver): Promise<void>;
134
187
  export type XCUITestDriver = import("../driver").XCUITestDriver;
135
188
  export type Context = import("./types").Context;
136
189
  export type FullContext = import("./types").FullContext;
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../lib/commands/context.js"],"names":[],"mappings":"AAyqBA;;;;;GAKG;AACH,mFAFa,OAAO,CAAC,IAAI,CAAC,CAMzB;;IAlPC;;;OAGG;IACH,sEAFa,OAAO,CAAC,MAAM,CAAC,CAO3B;IAED;;;;;;;;OAQG;IACH,oEANW,MAAM,GAAC,OAAO,aACd,GAAG,mBACH,OAAO,GAEL,OAAO,CAAC,IAAI,CAAC,CAqGzB;IACD;;;OAGG;IACH,gEAFa,OAAO,CAAC,MAAM,EAAE,GAAC,WAAW,EAAE,CAAC,CAiB3C;IAED;;;;;OAKG;IACH,mEAJW,MAAM,mBACN,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CAazB;IACD;;;OAGG;IACH,oEAFa,OAAO,CAAC,MAAM,CAAC,CAY3B;IACD;;;OAGG;IACH,qEAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAoB7B;IAhnBD;;;;OAIG;IACH,gFAHW,OAAO,GACL,OAAO,CAAC,OAAO,SAAS,EAAE,WAAW,EAAE,CAAC,CAepD;IAED;;;;OAIG;IACH,iEAFa,OAAO,CAInB;IAED;;;OAGG;IACH,0EAFa,OAAO,CAAC,IAAI,CAAC,CAwCzB;IACD;;;OAGG;IACH,oFAFa,OAAO,CAAC,OAAO,UAAU,EAAE,IAAI,EAAE,CAAC,CA0C9C;IACD;;;OAGG;IACH,4EAFa,OAAO,CAAC,IAAI,CAAC,CA6BzB;IAED;;;;;;;;;;;;;;OAcG;IACH,wFAJW,MAAM,GACJ,OAAO,CAAC,OAAO,EAAE,CAAC,CAmC9B;IACD;;;;OAIG;IACH,wFAHW,OAAO,SAAS,EAAE,sBAAsB,GACtC,OAAO,CAAC,IAAI,CAAC,CAmHzB;IAID;;;OAGG;IACH,yGAFa,OAAO,CAAC,IAAI,CAAC,CAezB;IACD;;;OAGG;IACH,sEAFW,MAAM,GAAC,SAAS,GAAC,IAAI,QAI/B;IACD;;;OAGG;IACH,kEAFa,MAAM,GAAC,SAAS,GAAC,IAAI,CAIjC;IACD;;;;;OAKG;IACH,0FALW,MAAM,aACN,MAAM,GAEJ,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,CAuBrC;IACD;;;OAGG;IACH,iEAFa,OAAO,CAInB;IACD;;;OAGG;IACH,8DAFa,OAAO,CAInB;IACD;;;OAGG;IACH,yEAFa,OAAO,CAAC,cAAc,CAAC,CA4BnC;;;6BA2PU,OAAO,WAAW,EAAE,cAAc;sBAClC,OAAO,SAAS,EAAE,OAAO;0BACzB,OAAO,SAAS,EAAE,WAAW;+BA1rBS,wBAAwB"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../lib/commands/context.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,uFAHW,OAAO,GACL,OAAO,CAAC,OAAO,SAAS,EAAE,WAAW,EAAE,CAAC,CAepD;;IAlBD;;;;OAIG;IACH,+DAHW,OAAO,EAgBjB;IANC,mBAA4B;;AAQ9B;;;;GAIG;AACH,wEAFa,OAAO,CAInB;AAED;;;GAGG;AACH,iFAFa,OAAO,CAAC,IAAI,CAAC,CAwCzB;AAED;;;GAGG;AACH,2FAFa,OAAO,CAAC,OAAO,UAAU,EAAE,IAAI,EAAE,CAAC,CA0C9C;AAED;;;GAGG;AACH,mFAFa,OAAO,CAAC,IAAI,CAAC,CA6BzB;;IA1BC,uBAA+C;IAc7C,oBAAsB;;AAc1B;;;;;;;;;;;;;;GAcG;AACH,+FAJW,MAAM,GACJ,OAAO,CAAC,OAAO,EAAE,CAAC,CAmC9B;AAED;;;;GAIG;AACH,+FAHW,OAAO,SAAS,EAAE,sBAAsB,GACtC,OAAO,CAAC,IAAI,CAAC,CAmHzB;;IAtHD;;;;OAIG;IACH,8EAHW,OAAO,SAAS,EAAE,sBAAsB,EAoHlD;IA/BG,+BAAwC;IAkBxC,sCAA4B;;AAehC;;;GAGG;AACH,gHAFa,OAAO,CAAC,IAAI,CAAC,CAezB;;IAjBD;;;OAGG;IACH,gGAaC;IAJC,gBAAsB;IAEtB,oBAAsB;IACtB,YAAkB;;AAGpB;;;GAGG;AACH,6EAFW,MAAM,GAAC,SAAS,GAAC,IAAI,QAI/B;;IAND;;;OAGG;IACH,2DAFW,MAAM,GAAC,SAAS,GAAC,IAAI,EAI/B;IADC,uCAAsB;;AAGxB;;;GAGG;AACH,yEAFa,MAAM,GAAC,SAAS,GAAC,IAAI,CAIjC;AAED;;;;;GAKG;AACH,iGALW,MAAM,aACN,MAAM,GAEJ,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,CAuBrC;AAED;;;GAGG;AACH,wEAFa,OAAO,CAInB;AAED;;;GAGG;AACH,qEAFa,OAAO,CAInB;AAED;;;GAGG;AACH,gFAFa,OAAO,CAAC,cAAc,CAAC,CA4BnC;AAED;;;GAGG;AACH,6EAFa,OAAO,CAAC,MAAM,CAAC,CAO3B;AAED;;;;;;;;GAQG;AACH,2EANW,MAAM,GAAC,OAAO,aACd,GAAG,mBACH,OAAO,GAEL,OAAO,CAAC,IAAI,CAAC,CAqGzB;;IA5GD;;;;;;;;OAQG;IACH,4DANW,MAAM,GAAC,OAAO,aACd,GAAG,mBACH,OAAO,EAuGjB;IApEK,sCAAsB;IAwBN,oCAAgC;IAKhD,sCAA4B;;AAyClC;;;GAGG;AACH,uEAFa,OAAO,CAAC,MAAM,EAAE,GAAC,WAAW,EAAE,CAAC,CAiB3C;AAED;;;;;GAKG;AACH,0EAJW,MAAM,mBACN,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CAazB;AAED;;;GAGG;AACH,2EAFa,OAAO,CAAC,MAAM,CAAC,CAY3B;AAED;;;GAGG;AACH,4EAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAoB7B;AAmCD;;;;;GAKG;AACH,mFAFa,OAAO,CAAC,IAAI,CAAC,CAMzB;6BAIY,OAAO,WAAW,EAAE,cAAc;sBAClC,OAAO,SAAS,EAAE,OAAO;0BACzB,OAAO,SAAS,EAAE,WAAW;+BA/rBS,wBAAwB"}