webdriverio 8.1.2 → 8.2.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 (267) hide show
  1. package/build/commands/browser/$$.d.ts +1 -1
  2. package/build/commands/browser/$$.d.ts.map +1 -1
  3. package/build/commands/browser/$$.js +1 -1
  4. package/build/commands/browser/$.d.ts +1 -1
  5. package/build/commands/browser/$.d.ts.map +1 -1
  6. package/build/commands/browser/$.js +1 -1
  7. package/build/commands/browser/action.d.ts +3 -3
  8. package/build/commands/browser/action.d.ts.map +1 -1
  9. package/build/commands/browser/action.js +1 -1
  10. package/build/commands/browser/actions.d.ts +1 -1
  11. package/build/commands/browser/actions.d.ts.map +1 -1
  12. package/build/commands/browser/actions.js +1 -1
  13. package/build/commands/browser/call.d.ts +1 -1
  14. package/build/commands/browser/call.d.ts.map +1 -1
  15. package/build/commands/browser/call.js +1 -1
  16. package/build/commands/browser/custom$$.d.ts +1 -1
  17. package/build/commands/browser/custom$$.d.ts.map +1 -1
  18. package/build/commands/browser/custom$$.js +1 -1
  19. package/build/commands/browser/custom$.d.ts +1 -1
  20. package/build/commands/browser/custom$.d.ts.map +1 -1
  21. package/build/commands/browser/custom$.js +1 -1
  22. package/build/commands/browser/debug.d.ts +1 -1
  23. package/build/commands/browser/debug.d.ts.map +1 -1
  24. package/build/commands/browser/debug.js +1 -1
  25. package/build/commands/browser/deleteCookies.d.ts +1 -1
  26. package/build/commands/browser/deleteCookies.d.ts.map +1 -1
  27. package/build/commands/browser/deleteCookies.js +1 -1
  28. package/build/commands/browser/execute.d.ts +1 -1
  29. package/build/commands/browser/execute.d.ts.map +1 -1
  30. package/build/commands/browser/execute.js +1 -1
  31. package/build/commands/browser/executeAsync.d.ts +1 -1
  32. package/build/commands/browser/executeAsync.d.ts.map +1 -1
  33. package/build/commands/browser/executeAsync.js +1 -1
  34. package/build/commands/browser/getCookies.d.ts +1 -1
  35. package/build/commands/browser/getCookies.d.ts.map +1 -1
  36. package/build/commands/browser/getCookies.js +1 -1
  37. package/build/commands/browser/getPuppeteer.d.ts +1 -1
  38. package/build/commands/browser/getPuppeteer.d.ts.map +1 -1
  39. package/build/commands/browser/getPuppeteer.js +1 -1
  40. package/build/commands/browser/getWindowSize.d.ts +1 -1
  41. package/build/commands/browser/getWindowSize.d.ts.map +1 -1
  42. package/build/commands/browser/getWindowSize.js +1 -1
  43. package/build/commands/browser/keys.d.ts +1 -1
  44. package/build/commands/browser/keys.d.ts.map +1 -1
  45. package/build/commands/browser/keys.js +1 -1
  46. package/build/commands/browser/mock.d.ts +1 -1
  47. package/build/commands/browser/mock.d.ts.map +1 -1
  48. package/build/commands/browser/mock.js +1 -1
  49. package/build/commands/browser/mockClearAll.d.ts +1 -1
  50. package/build/commands/browser/mockClearAll.d.ts.map +1 -1
  51. package/build/commands/browser/mockClearAll.js +1 -1
  52. package/build/commands/browser/mockRestoreAll.d.ts +1 -1
  53. package/build/commands/browser/mockRestoreAll.d.ts.map +1 -1
  54. package/build/commands/browser/mockRestoreAll.js +1 -1
  55. package/build/commands/browser/newWindow.d.ts +1 -1
  56. package/build/commands/browser/newWindow.d.ts.map +1 -1
  57. package/build/commands/browser/newWindow.js +1 -1
  58. package/build/commands/browser/pause.d.ts +1 -1
  59. package/build/commands/browser/pause.d.ts.map +1 -1
  60. package/build/commands/browser/pause.js +1 -1
  61. package/build/commands/browser/react$$.d.ts +1 -1
  62. package/build/commands/browser/react$$.d.ts.map +1 -1
  63. package/build/commands/browser/react$$.js +1 -1
  64. package/build/commands/browser/react$.d.ts +1 -1
  65. package/build/commands/browser/react$.d.ts.map +1 -1
  66. package/build/commands/browser/react$.js +1 -1
  67. package/build/commands/browser/reloadSession.d.ts +1 -1
  68. package/build/commands/browser/reloadSession.d.ts.map +1 -1
  69. package/build/commands/browser/reloadSession.js +1 -1
  70. package/build/commands/browser/savePDF.d.ts +1 -1
  71. package/build/commands/browser/savePDF.d.ts.map +1 -1
  72. package/build/commands/browser/savePDF.js +1 -1
  73. package/build/commands/browser/saveRecordingScreen.d.ts +1 -1
  74. package/build/commands/browser/saveRecordingScreen.d.ts.map +1 -1
  75. package/build/commands/browser/saveRecordingScreen.js +1 -1
  76. package/build/commands/browser/saveScreenshot.d.ts +1 -1
  77. package/build/commands/browser/saveScreenshot.d.ts.map +1 -1
  78. package/build/commands/browser/saveScreenshot.js +1 -1
  79. package/build/commands/browser/scroll.d.ts +1 -1
  80. package/build/commands/browser/scroll.d.ts.map +1 -1
  81. package/build/commands/browser/scroll.js +1 -1
  82. package/build/commands/browser/setCookies.d.ts +1 -1
  83. package/build/commands/browser/setCookies.d.ts.map +1 -1
  84. package/build/commands/browser/setCookies.js +1 -1
  85. package/build/commands/browser/setTimeout.d.ts +1 -1
  86. package/build/commands/browser/setTimeout.d.ts.map +1 -1
  87. package/build/commands/browser/setTimeout.js +1 -1
  88. package/build/commands/browser/setWindowSize.d.ts +1 -1
  89. package/build/commands/browser/setWindowSize.d.ts.map +1 -1
  90. package/build/commands/browser/setWindowSize.js +1 -1
  91. package/build/commands/browser/switchWindow.d.ts +1 -1
  92. package/build/commands/browser/switchWindow.d.ts.map +1 -1
  93. package/build/commands/browser/switchWindow.js +1 -1
  94. package/build/commands/browser/throttle.d.ts +1 -1
  95. package/build/commands/browser/throttle.d.ts.map +1 -1
  96. package/build/commands/browser/throttle.js +1 -1
  97. package/build/commands/browser/touchAction.d.ts +1 -1
  98. package/build/commands/browser/touchAction.d.ts.map +1 -1
  99. package/build/commands/browser/touchAction.js +1 -1
  100. package/build/commands/browser/uploadFile.d.ts +1 -1
  101. package/build/commands/browser/uploadFile.d.ts.map +1 -1
  102. package/build/commands/browser/uploadFile.js +1 -1
  103. package/build/commands/browser/url.d.ts +1 -1
  104. package/build/commands/browser/url.d.ts.map +1 -1
  105. package/build/commands/browser/url.js +1 -1
  106. package/build/commands/browser/waitUntil.d.ts +1 -1
  107. package/build/commands/browser/waitUntil.d.ts.map +1 -1
  108. package/build/commands/browser/waitUntil.js +1 -1
  109. package/build/commands/browser.d.ts +36 -37
  110. package/build/commands/browser.d.ts.map +1 -1
  111. package/build/commands/browser.js +36 -37
  112. package/build/commands/element/$$.d.ts +2 -2
  113. package/build/commands/element/$$.d.ts.map +1 -1
  114. package/build/commands/element/$$.js +2 -2
  115. package/build/commands/element/$.d.ts +2 -2
  116. package/build/commands/element/$.d.ts.map +1 -1
  117. package/build/commands/element/$.js +2 -2
  118. package/build/commands/element/addValue.d.ts +1 -1
  119. package/build/commands/element/addValue.d.ts.map +1 -1
  120. package/build/commands/element/addValue.js +1 -1
  121. package/build/commands/element/clearValue.d.ts +1 -1
  122. package/build/commands/element/clearValue.d.ts.map +1 -1
  123. package/build/commands/element/clearValue.js +1 -1
  124. package/build/commands/element/click.d.ts +1 -1
  125. package/build/commands/element/click.d.ts.map +1 -1
  126. package/build/commands/element/click.js +1 -1
  127. package/build/commands/element/custom$$.d.ts +1 -2
  128. package/build/commands/element/custom$$.d.ts.map +1 -1
  129. package/build/commands/element/custom$$.js +1 -2
  130. package/build/commands/element/custom$.d.ts +1 -2
  131. package/build/commands/element/custom$.d.ts.map +1 -1
  132. package/build/commands/element/custom$.js +1 -2
  133. package/build/commands/element/doubleClick.d.ts +1 -1
  134. package/build/commands/element/doubleClick.d.ts.map +1 -1
  135. package/build/commands/element/doubleClick.js +1 -1
  136. package/build/commands/element/dragAndDrop.d.ts +1 -1
  137. package/build/commands/element/dragAndDrop.d.ts.map +1 -1
  138. package/build/commands/element/dragAndDrop.js +1 -1
  139. package/build/commands/element/getAttribute.d.ts +1 -1
  140. package/build/commands/element/getAttribute.d.ts.map +1 -1
  141. package/build/commands/element/getAttribute.js +1 -1
  142. package/build/commands/element/getCSSProperty.d.ts +1 -1
  143. package/build/commands/element/getCSSProperty.d.ts.map +1 -1
  144. package/build/commands/element/getCSSProperty.js +1 -1
  145. package/build/commands/element/getComputedLabel.d.ts +1 -1
  146. package/build/commands/element/getComputedLabel.d.ts.map +1 -1
  147. package/build/commands/element/getComputedLabel.js +1 -1
  148. package/build/commands/element/getComputedRole.d.ts +1 -1
  149. package/build/commands/element/getComputedRole.d.ts.map +1 -1
  150. package/build/commands/element/getComputedRole.js +1 -1
  151. package/build/commands/element/getHTML.d.ts +1 -1
  152. package/build/commands/element/getHTML.d.ts.map +1 -1
  153. package/build/commands/element/getHTML.js +1 -1
  154. package/build/commands/element/getLocation.d.ts +2 -3
  155. package/build/commands/element/getLocation.d.ts.map +1 -1
  156. package/build/commands/element/getLocation.js +1 -2
  157. package/build/commands/element/getProperty.d.ts +1 -1
  158. package/build/commands/element/getProperty.d.ts.map +1 -1
  159. package/build/commands/element/getProperty.js +1 -1
  160. package/build/commands/element/getSize.d.ts +2 -3
  161. package/build/commands/element/getSize.d.ts.map +1 -1
  162. package/build/commands/element/getSize.js +1 -2
  163. package/build/commands/element/getTagName.d.ts +1 -1
  164. package/build/commands/element/getTagName.d.ts.map +1 -1
  165. package/build/commands/element/getTagName.js +1 -1
  166. package/build/commands/element/getText.d.ts +1 -1
  167. package/build/commands/element/getText.d.ts.map +1 -1
  168. package/build/commands/element/getText.js +1 -1
  169. package/build/commands/element/getValue.d.ts +1 -2
  170. package/build/commands/element/getValue.d.ts.map +1 -1
  171. package/build/commands/element/getValue.js +1 -2
  172. package/build/commands/element/isClickable.d.ts +1 -1
  173. package/build/commands/element/isClickable.d.ts.map +1 -1
  174. package/build/commands/element/isClickable.js +1 -1
  175. package/build/commands/element/isDisplayed.d.ts +1 -1
  176. package/build/commands/element/isDisplayed.d.ts.map +1 -1
  177. package/build/commands/element/isDisplayed.js +1 -1
  178. package/build/commands/element/isDisplayedInViewport.d.ts +1 -1
  179. package/build/commands/element/isDisplayedInViewport.d.ts.map +1 -1
  180. package/build/commands/element/isDisplayedInViewport.js +1 -1
  181. package/build/commands/element/isEnabled.d.ts +1 -1
  182. package/build/commands/element/isEnabled.d.ts.map +1 -1
  183. package/build/commands/element/isEnabled.js +1 -1
  184. package/build/commands/element/isEqual.d.ts +1 -1
  185. package/build/commands/element/isEqual.d.ts.map +1 -1
  186. package/build/commands/element/isEqual.js +1 -1
  187. package/build/commands/element/isExisting.d.ts +1 -1
  188. package/build/commands/element/isExisting.d.ts.map +1 -1
  189. package/build/commands/element/isExisting.js +1 -1
  190. package/build/commands/element/isFocused.d.ts +1 -1
  191. package/build/commands/element/isFocused.d.ts.map +1 -1
  192. package/build/commands/element/isFocused.js +1 -1
  193. package/build/commands/element/isSelected.d.ts +1 -1
  194. package/build/commands/element/isSelected.d.ts.map +1 -1
  195. package/build/commands/element/isSelected.js +1 -1
  196. package/build/commands/element/moveTo.d.ts +1 -1
  197. package/build/commands/element/moveTo.d.ts.map +1 -1
  198. package/build/commands/element/moveTo.js +1 -1
  199. package/build/commands/element/nextElement.d.ts +1 -2
  200. package/build/commands/element/nextElement.d.ts.map +1 -1
  201. package/build/commands/element/nextElement.js +1 -1
  202. package/build/commands/element/parentElement.d.ts +1 -2
  203. package/build/commands/element/parentElement.d.ts.map +1 -1
  204. package/build/commands/element/parentElement.js +1 -1
  205. package/build/commands/element/previousElement.d.ts +1 -2
  206. package/build/commands/element/previousElement.d.ts.map +1 -1
  207. package/build/commands/element/previousElement.js +1 -1
  208. package/build/commands/element/react$$.d.ts +1 -1
  209. package/build/commands/element/react$$.d.ts.map +1 -1
  210. package/build/commands/element/react$$.js +1 -1
  211. package/build/commands/element/react$.d.ts +1 -1
  212. package/build/commands/element/react$.d.ts.map +1 -1
  213. package/build/commands/element/react$.js +1 -1
  214. package/build/commands/element/saveScreenshot.d.ts +1 -1
  215. package/build/commands/element/saveScreenshot.d.ts.map +1 -1
  216. package/build/commands/element/saveScreenshot.js +1 -1
  217. package/build/commands/element/scrollIntoView.d.ts +1 -1
  218. package/build/commands/element/scrollIntoView.d.ts.map +1 -1
  219. package/build/commands/element/scrollIntoView.js +1 -1
  220. package/build/commands/element/selectByAttribute.d.ts +1 -1
  221. package/build/commands/element/selectByAttribute.d.ts.map +1 -1
  222. package/build/commands/element/selectByAttribute.js +1 -1
  223. package/build/commands/element/selectByIndex.d.ts +1 -1
  224. package/build/commands/element/selectByIndex.d.ts.map +1 -1
  225. package/build/commands/element/selectByIndex.js +1 -1
  226. package/build/commands/element/selectByVisibleText.d.ts +1 -1
  227. package/build/commands/element/selectByVisibleText.d.ts.map +1 -1
  228. package/build/commands/element/selectByVisibleText.js +1 -1
  229. package/build/commands/element/setValue.d.ts +1 -1
  230. package/build/commands/element/setValue.d.ts.map +1 -1
  231. package/build/commands/element/setValue.js +1 -1
  232. package/build/commands/element/shadow$$.d.ts +1 -1
  233. package/build/commands/element/shadow$$.d.ts.map +1 -1
  234. package/build/commands/element/shadow$$.js +1 -1
  235. package/build/commands/element/shadow$.d.ts +1 -1
  236. package/build/commands/element/shadow$.d.ts.map +1 -1
  237. package/build/commands/element/shadow$.js +1 -1
  238. package/build/commands/element/touchAction.d.ts +1 -1
  239. package/build/commands/element/touchAction.d.ts.map +1 -1
  240. package/build/commands/element/touchAction.js +1 -1
  241. package/build/commands/element/waitForClickable.d.ts +1 -1
  242. package/build/commands/element/waitForClickable.d.ts.map +1 -1
  243. package/build/commands/element/waitForClickable.js +1 -1
  244. package/build/commands/element/waitForDisplayed.d.ts +1 -1
  245. package/build/commands/element/waitForDisplayed.d.ts.map +1 -1
  246. package/build/commands/element/waitForDisplayed.js +1 -1
  247. package/build/commands/element/waitForEnabled.d.ts +1 -1
  248. package/build/commands/element/waitForEnabled.d.ts.map +1 -1
  249. package/build/commands/element/waitForEnabled.js +1 -1
  250. package/build/commands/element/waitForExist.d.ts +1 -1
  251. package/build/commands/element/waitForExist.d.ts.map +1 -1
  252. package/build/commands/element/waitForExist.js +1 -1
  253. package/build/commands/element/waitUntil.d.ts +2 -2
  254. package/build/commands/element/waitUntil.d.ts.map +1 -1
  255. package/build/commands/element/waitUntil.js +2 -2
  256. package/build/commands/element.d.ts +48 -49
  257. package/build/commands/element.d.ts.map +1 -1
  258. package/build/commands/element.js +48 -49
  259. package/build/multiremote.d.ts +3 -11
  260. package/build/multiremote.d.ts.map +1 -1
  261. package/build/multiremote.js +27 -13
  262. package/build/types.d.ts +43 -63
  263. package/build/types.d.ts.map +1 -1
  264. package/build/utils/actions/pointer.d.ts +1 -1
  265. package/build/utils/index.d.ts.map +1 -1
  266. package/build/utils/index.js +5 -2
  267. package/package.json +10 -10
@@ -55,5 +55,5 @@ import type { Selector, ElementArray } from '../../types.js';
55
55
  * @type utility
56
56
  *
57
57
  */
58
- export default function $$(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector | ElementReference[] | WebdriverIO.Element[]): Promise<ElementArray>;
58
+ export declare function $$(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector | ElementReference[] | WebdriverIO.Element[]): Promise<ElementArray>;
59
59
  //# sourceMappingURL=$$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAIvD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAA8B,EAAE,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,GAAG,gBAAgB,EAAE,GAAG,WAAW,CAAC,OAAO,EAAE,yBAOlE"}
1
+ {"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAIvD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAsB,EAAE,CACpB,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,GAAG,gBAAgB,EAAE,GAAG,WAAW,CAAC,OAAO,EAAE,yBAOlE"}
@@ -55,7 +55,7 @@ import { getElements } from '../../utils/getElementObject.js';
55
55
  * @type utility
56
56
  *
57
57
  */
58
- export default async function $$(selector) {
58
+ export async function $$(selector) {
59
59
  const res = Array.isArray(selector)
60
60
  ? selector
61
61
  : await findElements.call(this, selector);
@@ -73,5 +73,5 @@ import type { Selector } from '../../types.js';
73
73
  * @type utility
74
74
  *
75
75
  */
76
- export default function $(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector): Promise<WebdriverIO.Element>;
76
+ export declare function $(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector): Promise<WebdriverIO.Element>;
77
77
  //# sourceMappingURL=$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAA8B,CAAC,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,gCAerB"}
1
+ {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAsB,CAAC,CACnB,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,GACnB,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAc9B"}
@@ -75,7 +75,7 @@ import { ELEMENT_KEY } from '../../constants.js';
75
75
  * @type utility
76
76
  *
77
77
  */
78
- export default async function $(selector) {
78
+ export async function $(selector) {
79
79
  /**
80
80
  * convert protocol result into WebdriverIO element
81
81
  * e.g. when element was fetched with `getActiveElement`
@@ -148,7 +148,7 @@ import { KeyAction, PointerAction, WheelAction } from '../../utils/actions/index
148
148
  * @type utility
149
149
  *
150
150
  */
151
- export default function action(this: WebdriverIO.Browser, type: 'key', opts?: Pick<BaseActionParams, 'id'>): KeyAction;
152
- export default function action(this: WebdriverIO.Browser, type: 'pointer', opts?: BaseActionParams): PointerAction;
153
- export default function action(this: WebdriverIO.Browser, type: 'wheel', opts?: Pick<BaseActionParams, 'id'>): WheelAction;
151
+ export declare function action(this: WebdriverIO.Browser, type: 'key', opts?: Pick<BaseActionParams, 'id'>): KeyAction;
152
+ export declare function action(this: WebdriverIO.Browser, type: 'pointer', opts?: BaseActionParams): PointerAction;
153
+ export declare function action(this: WebdriverIO.Browser, type: 'wheel', opts?: Pick<BaseActionParams, 'id'>): WheelAction;
154
154
  //# sourceMappingURL=action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmJG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,KAAK,EACX,IAAI,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,GACpC,SAAS,CAAA;AACZ,MAAM,CAAC,OAAO,UAAU,MAAM,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,gBAAgB,GACxB,aAAa,CAAA;AAChB,MAAM,CAAC,OAAO,UAAU,MAAM,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,OAAO,EACb,IAAI,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,GACpC,WAAW,CAAA"}
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmJG;AACH,wBAAgB,MAAM,CAClB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,KAAK,EACX,IAAI,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,GACpC,SAAS,CAAA;AACZ,wBAAgB,MAAM,CAClB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,gBAAgB,GACxB,aAAa,CAAA;AAChB,wBAAgB,MAAM,CAClB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,OAAO,EACb,IAAI,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,GACpC,WAAW,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { KeyAction, PointerAction, WheelAction } from '../../utils/actions/index.js';
2
- export default function action(type, opts) {
2
+ export function action(type, opts) {
3
3
  if (type === 'key') {
4
4
  return new KeyAction(this, opts);
5
5
  }
@@ -25,5 +25,5 @@ import type { KeyAction, PointerAction, WheelAction } from '../../utils/actions/
25
25
  * @type utility
26
26
  *
27
27
  */
28
- export default function actions(this: WebdriverIO.Browser, actions: (KeyAction | PointerAction | WheelAction)[]): Promise<void>;
28
+ export declare function actions(this: WebdriverIO.Browser, actions: (KeyAction | PointerAction | WheelAction)[]): Promise<void>;
29
29
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,CAAC,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,EAAE,GACrD,OAAO,CAAC,IAAI,CAAC,CAGf"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,CAAC,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,EAAE,GACrD,OAAO,CAAC,IAAI,CAAC,CAGf"}
@@ -24,7 +24,7 @@
24
24
  * @type utility
25
25
  *
26
26
  */
27
- export default async function actions(actions) {
27
+ export async function actions(actions) {
28
28
  await this.performActions(actions.map((action) => action.toJSON()));
29
29
  await this.releaseActions();
30
30
  }
@@ -40,5 +40,5 @@
40
40
  * @type utility
41
41
  *
42
42
  */
43
- export default function call<T>(fn: () => T): T | Promise<T>;
43
+ export declare function call<T>(fn: () => T): T | Promise<T>;
44
44
  //# sourceMappingURL=call.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/call.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,CAAC,EAAG,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAM5D"}
1
+ {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/call.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAG,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMpD"}
@@ -40,7 +40,7 @@
40
40
  * @type utility
41
41
  *
42
42
  */
43
- export default function call(fn) {
43
+ export function call(fn) {
44
44
  if (typeof fn === 'function') {
45
45
  return fn();
46
46
  }
@@ -22,5 +22,5 @@ import type { ElementArray } from '../../types.js';
22
22
  * @param {Any} strategyArguments
23
23
  * @return {ElementArray}
24
24
  */
25
- export default function custom$$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<ElementArray>;
25
+ export declare function custom$$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<ElementArray>;
26
26
  //# sourceMappingURL=custom$$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAmD,MAAM,gBAAgB,CAAA;AAEnG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAA8B,QAAQ,CAClC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,GAC5B,OAAO,CAAC,YAAY,CAAC,CAuBvB"}
1
+ {"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAmD,MAAM,gBAAgB,CAAA;AAEnG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,GAC5B,OAAO,CAAC,YAAY,CAAC,CAuBvB"}
@@ -24,7 +24,7 @@ import { ELEMENT_KEY } from '../../constants.js';
24
24
  * @param {Any} strategyArguments
25
25
  * @return {ElementArray}
26
26
  */
27
- export default async function custom$$(strategyName, ...strategyArguments) {
27
+ export async function custom$$(strategyName, ...strategyArguments) {
28
28
  const strategy = this.strategies.get(strategyName);
29
29
  if (!strategy) {
30
30
  throw Error('No strategy found for ' + strategyName);
@@ -21,5 +21,5 @@
21
21
  * @param {Any} strategyArguments
22
22
  * @return {Element}
23
23
  */
24
- export default function custom$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
24
+ export declare function custom$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
25
25
  //# sourceMappingURL=custom$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,gCA0B9B"}
1
+ {"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,gCA0B9B"}
@@ -23,7 +23,7 @@ import { ELEMENT_KEY } from '../../constants.js';
23
23
  * @param {Any} strategyArguments
24
24
  * @return {Element}
25
25
  */
26
- export default async function custom$(strategyName, ...strategyArguments) {
26
+ export async function custom$(strategyName, ...strategyArguments) {
27
27
  const strategy = this.strategies.get(strategyName);
28
28
  if (!strategy) {
29
29
  throw Error('No strategy found for ' + strategyName);
@@ -28,5 +28,5 @@
28
28
  * @type utility
29
29
  *
30
30
  */
31
- export default function debug(this: WebdriverIO.Browser, commandTimeout?: number): Promise<unknown>;
31
+ export declare function debug(this: WebdriverIO.Browser, commandTimeout?: number): Promise<unknown>;
32
32
  //# sourceMappingURL=debug.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/debug.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,cAAc,SAAO,oBAgFxB"}
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/debug.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,KAAK,CACjB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,cAAc,SAAO,oBAgFxB"}
@@ -30,7 +30,7 @@ import WDIORepl from '@wdio/repl';
30
30
  * @type utility
31
31
  *
32
32
  */
33
- export default function debug(commandTimeout = 5000) {
33
+ export function debug(commandTimeout = 5000) {
34
34
  const repl = new WDIORepl();
35
35
  const { introMessage } = WDIORepl;
36
36
  /**
@@ -41,5 +41,5 @@
41
41
  * @type cookie
42
42
  *
43
43
  */
44
- export default function deleteCookies(this: WebdriverIO.Browser, names?: string | string[]): Promise<void> | Promise<void[]>;
44
+ export declare function deleteCookies(this: WebdriverIO.Browser, names?: string | string[]): Promise<void> | Promise<void[]>;
45
45
  //# sourceMappingURL=deleteCookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deleteCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/deleteCookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,mCAa5B"}
1
+ {"version":3,"file":"deleteCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/deleteCookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,aAAa,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,mCAa5B"}
@@ -41,7 +41,7 @@
41
41
  * @type cookie
42
42
  *
43
43
  */
44
- export default function deleteCookies(names) {
44
+ export function deleteCookies(names) {
45
45
  if (names === undefined) {
46
46
  return this.deleteAllCookies();
47
47
  }
@@ -33,5 +33,5 @@
33
33
  * @type protocol
34
34
  *
35
35
  */
36
- export default function execute<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element, script: string | ((...innerArgs: InnerArguments) => ReturnValue), ...args: InnerArguments): Promise<ReturnValue>;
36
+ export declare function execute<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element | WebdriverIO.MultiRemoteBrowser, script: string | ((...innerArgs: InnerArguments) => ReturnValue), ...args: InnerArguments): Promise<ReturnValue>;
37
37
  //# sourceMappingURL=execute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/execute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EACrE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS,EAAE,cAAc,KAAK,WAAW,CAAC,EAChE,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAiBtB"}
1
+ {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/execute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EAC7D,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAChF,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS,EAAE,cAAc,KAAK,WAAW,CAAC,EAChE,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAiBtB"}
@@ -34,7 +34,7 @@ import { verifyArgsAndStripIfElement } from '../../utils/index.js';
34
34
  * @type protocol
35
35
  *
36
36
  */
37
- export default function execute(script, ...args) {
37
+ export function execute(script, ...args) {
38
38
  /**
39
39
  * parameter check
40
40
  */
@@ -41,5 +41,5 @@
41
41
  * @type protocol
42
42
  *
43
43
  */
44
- export default function executeAsync<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element, script: string | ((...args: [...innerArgs: InnerArguments, callback: (result?: ReturnValue) => void]) => void), ...args: InnerArguments): Promise<ReturnValue>;
44
+ export declare function executeAsync<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element, script: string | ((...args: [...innerArgs: InnerArguments, callback: (result?: ReturnValue) => void]) => void), ...args: InnerArguments): Promise<ReturnValue>;
45
45
  //# sourceMappingURL=executeAsync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EAC1E,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EACjG,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAiBtB"}
1
+ {"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EAClE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EACjG,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAiBtB"}
@@ -42,7 +42,7 @@ import { verifyArgsAndStripIfElement } from '../../utils/index.js';
42
42
  * @type protocol
43
43
  *
44
44
  */
45
- export default function executeAsync(script, ...args) {
45
+ export function executeAsync(script, ...args) {
46
46
  /**
47
47
  * parameter check
48
48
  */
@@ -30,5 +30,5 @@
30
30
  * @uses webdriver/getAllCookies
31
31
  *
32
32
  */
33
- export default function getCookies(this: WebdriverIO.Browser, names?: string | string[]): Promise<import("@wdio/protocols").Cookie[]>;
33
+ export declare function getCookies(this: WebdriverIO.Browser, names?: string | string[]): Promise<import("@wdio/protocols").Cookie[]>;
34
34
  //# sourceMappingURL=getCookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getCookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAA8B,UAAU,CACpC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,+CAc5B"}
1
+ {"version":3,"file":"getCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getCookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,+CAc5B"}
@@ -30,7 +30,7 @@
30
30
  * @uses webdriver/getAllCookies
31
31
  *
32
32
  */
33
- export default async function getCookies(names) {
33
+ export async function getCookies(names) {
34
34
  if (names === undefined) {
35
35
  return this.getAllCookies();
36
36
  }
@@ -34,5 +34,5 @@ import type { Browser as PuppeteerBrowser } from 'puppeteer-core/lib/esm/puppete
34
34
  *
35
35
  * @return {PuppeteerBrowser} initiated puppeteer instance connected to the browser
36
36
  */
37
- export default function getPuppeteer(this: WebdriverIO.Browser): Promise<PuppeteerBrowser>;
37
+ export declare function getPuppeteer(this: WebdriverIO.Browser): Promise<PuppeteerBrowser>;
38
38
  //# sourceMappingURL=getPuppeteer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAOlG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAA8B,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,6BAgGpE"}
1
+ {"version":3,"file":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAOlG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,6BAgG5D"}
@@ -37,7 +37,7 @@ const log = logger('webdriverio');
37
37
  *
38
38
  * @return {PuppeteerBrowser} initiated puppeteer instance connected to the browser
39
39
  */
40
- export default async function getPuppeteer() {
40
+ export async function getPuppeteer() {
41
41
  /**
42
42
  * check if we already connected Puppeteer and if so return
43
43
  * that instance
@@ -20,6 +20,6 @@ interface BrowserSize {
20
20
  * @type window
21
21
  *
22
22
  */
23
- export default function getWindowSize(this: WebdriverIO.Browser): Promise<BrowserSize>;
23
+ export declare function getWindowSize(this: WebdriverIO.Browser): Promise<BrowserSize>;
24
24
  export {};
25
25
  //# sourceMappingURL=getWindowSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWindowSize.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getWindowSize.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAA8B,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,wBASpE"}
1
+ {"version":3,"file":"getWindowSize.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getWindowSize.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,wBAS5D"}
@@ -17,7 +17,7 @@ import { getBrowserObject } from '../../utils/index.js';
17
17
  * @type window
18
18
  *
19
19
  */
20
- export default async function getWindowSize() {
20
+ export async function getWindowSize() {
21
21
  const browser = getBrowserObject(this);
22
22
  if (!browser.isW3C) {
23
23
  return browser._getWindowSize();
@@ -34,5 +34,5 @@
34
34
  * @see https://w3c.github.io/webdriver/#dispatching-actions
35
35
  *
36
36
  */
37
- export default function keys(this: WebdriverIO.Browser, value: string | string[]): Promise<void>;
37
+ export declare function keys(this: WebdriverIO.Browser, value: string | string[]): Promise<void>;
38
38
  //# sourceMappingURL=keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/keys.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,iBAiC3B"}
1
+ {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/keys.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,IAAI,CAChB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,iBAiC3B"}
@@ -35,7 +35,7 @@ import { checkUnicode } from '../../utils/index.js';
35
35
  * @see https://w3c.github.io/webdriver/#dispatching-actions
36
36
  *
37
37
  */
38
- export default function keys(value) {
38
+ export function keys(value) {
39
39
  let keySequence = [];
40
40
  /**
41
41
  * replace key with corresponding unicode character
@@ -108,5 +108,5 @@ export declare const SESSION_MOCKS: Record<string, Set<Interception>>;
108
108
  * @type utility
109
109
  *
110
110
  */
111
- export default function mock(this: WebdriverIO.Browser, url: string | RegExp, filterOptions?: MockFilterOptions): Promise<Mock>;
111
+ export declare function mock(this: WebdriverIO.Browser, url: string | RegExp, filterOptions?: MockFilterOptions): Promise<Mock>;
112
112
  //# sourceMappingURL=mock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAA;AAIjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAE1E,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC,CAAM,CAAA;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,wBAA8B,IAAI,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,aAAa,CAAC,EAAE,iBAAiB,iBA6DpC"}
1
+ {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAA;AAIjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAE1E,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC,CAAM,CAAA;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,wBAAsB,IAAI,CACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,aAAa,CAAC,EAAE,iBAAiB,iBA6DpC"}
@@ -108,7 +108,7 @@ export const SESSION_MOCKS = {};
108
108
  * @type utility
109
109
  *
110
110
  */
111
- export default async function mock(url, filterOptions) {
111
+ export async function mock(url, filterOptions) {
112
112
  const NetworkInterception = this.isSauce ? WebDriverNetworkInterception : DevtoolsNetworkInterception;
113
113
  if (!this.isSauce) {
114
114
  await this.getPuppeteer();
@@ -24,5 +24,5 @@
24
24
  *
25
25
  * @alias browser.mockClearAll
26
26
  */
27
- export default function mockClearAll(): Promise<void>;
27
+ export declare function mockClearAll(): Promise<void>;
28
28
  //# sourceMappingURL=mockClearAll.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mockClearAll.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mockClearAll.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAA8B,YAAY,kBAOzC"}
1
+ {"version":3,"file":"mockClearAll.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mockClearAll.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,YAAY,kBAOjC"}
@@ -27,7 +27,7 @@ const log = logger('webdriverio:mockClearAll');
27
27
  *
28
28
  * @alias browser.mockClearAll
29
29
  */
30
- export default async function mockClearAll() {
30
+ export async function mockClearAll() {
31
31
  for (const [handle, mocks] of Object.entries(SESSION_MOCKS)) {
32
32
  log.trace(`Clearing mocks for ${handle}`);
33
33
  for (const mock of mocks) {
@@ -22,5 +22,5 @@
22
22
  *
23
23
  * @alias browser.mockRestoreAll
24
24
  */
25
- export default function mockRestoreAll(): Promise<void>;
25
+ export declare function mockRestoreAll(): Promise<void>;
26
26
  //# sourceMappingURL=mockRestoreAll.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mockRestoreAll.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mockRestoreAll.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAA8B,cAAc,kBAO3C"}
1
+ {"version":3,"file":"mockRestoreAll.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mockRestoreAll.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,cAAc,kBAOnC"}
@@ -25,7 +25,7 @@ const log = logger('webdriverio:mockRestoreAll');
25
25
  *
26
26
  * @alias browser.mockRestoreAll
27
27
  */
28
- export default async function mockRestoreAll() {
28
+ export async function mockRestoreAll() {
29
29
  for (const [handle, mocks] of Object.entries(SESSION_MOCKS)) {
30
30
  log.trace(`Clearing mocks for ${handle}`);
31
31
  for (const mock of mocks) {
@@ -37,5 +37,5 @@ import type { NewWindowOptions } from '../../types.js';
37
37
  * @alias browser.newWindow
38
38
  * @type window
39
39
  */
40
- export default function newWindow(this: WebdriverIO.Browser, url: string, { windowName, windowFeatures }?: NewWindowOptions): Promise<string>;
40
+ export declare function newWindow(this: WebdriverIO.Browser, url: string, { windowName, windowFeatures }?: NewWindowOptions): Promise<string>;
41
41
  //# sourceMappingURL=newWindow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"newWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/newWindow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAA8B,SAAS,CACnC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,EACX,EAAE,UAAe,EAAE,cAAmB,EAAE,GAAE,gBAAqB,mBAyClE"}
1
+ {"version":3,"file":"newWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/newWindow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,SAAS,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,EACX,EAAE,UAAe,EAAE,cAAmB,EAAE,GAAE,gBAAqB,mBAyClE"}
@@ -39,7 +39,7 @@ const WAIT_FOR_NEW_HANDLE_TIMEOUT = 3000;
39
39
  * @alias browser.newWindow
40
40
  * @type window
41
41
  */
42
- export default async function newWindow(url, { windowName = '', windowFeatures = '' } = {}) {
42
+ export async function newWindow(url, { windowName = '', windowFeatures = '' } = {}) {
43
43
  /**
44
44
  * parameter check
45
45
  */
@@ -19,5 +19,5 @@
19
19
  * @type utility
20
20
  *
21
21
  */
22
- export default function pause(this: WebdriverIO.Browser, milliseconds?: number): Promise<unknown>;
22
+ export declare function pause(this: WebdriverIO.Browser, milliseconds?: number): Promise<unknown>;
23
23
  //# sourceMappingURL=pause.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/pause.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,SAAO,oBAGtB"}
1
+ {"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/pause.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,KAAK,CACjB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,SAAO,oBAGtB"}
@@ -19,6 +19,6 @@
19
19
  * @type utility
20
20
  *
21
21
  */
22
- export default function pause(milliseconds = 1000) {
22
+ export function pause(milliseconds = 1000) {
23
23
  return new Promise((resolve) => setTimeout(resolve, milliseconds));
24
24
  }
@@ -32,5 +32,5 @@ import type { ReactSelectorOptions, ElementArray } from '../../types.js';
32
32
  * @return {ElementArray}
33
33
  *
34
34
  */
35
- export default function react$$(this: WebdriverIO.Browser, selector: string, { props, state }?: ReactSelectorOptions): Promise<ElementArray>;
35
+ export declare function react$$(this: WebdriverIO.Browser, selector: string, { props, state }?: ReactSelectorOptions): Promise<ElementArray>;
36
36
  //# sourceMappingURL=react$$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$$.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,yBAexD"}
1
+ {"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$$.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,yBAexD"}
@@ -38,7 +38,7 @@ let resqScript;
38
38
  * @return {ElementArray}
39
39
  *
40
40
  */
41
- export default async function react$$(selector, { props = {}, state = {} } = {}) {
41
+ export async function react$$(selector, { props = {}, state = {} } = {}) {
42
42
  if (!resqScript) {
43
43
  const resqScriptPath = url.fileURLToPath(await resolve('resq', import.meta.url));
44
44
  resqScript = (await fs.readFile(resqScriptPath)).toString();
@@ -42,5 +42,5 @@ import type { ReactSelectorOptions } from '../../types.js';
42
42
  * @return {Element}
43
43
  *
44
44
  */
45
- export default function react$(this: WebdriverIO.Browser, selector: string, { props, state }?: ReactSelectorOptions): Promise<WebdriverIO.Element>;
45
+ export declare function react$(this: WebdriverIO.Browser, selector: string, { props, state }?: ReactSelectorOptions): Promise<WebdriverIO.Element>;
46
46
  //# sourceMappingURL=react$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAI1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAA8B,MAAM,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,gCAcxD"}
1
+ {"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAI1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,MAAM,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,gCAcxD"}
@@ -47,7 +47,7 @@ let resqScript;
47
47
  * @return {Element}
48
48
  *
49
49
  */
50
- export default async function react$(selector, { props = {}, state = {} } = {}) {
50
+ export async function react$(selector, { props = {}, state = {} } = {}) {
51
51
  if (!resqScript) {
52
52
  const resqScriptPath = url.fileURLToPath(await resolve('resq', import.meta.url));
53
53
  resqScript = (await fs.readFile(resqScriptPath)).toString();
@@ -19,5 +19,5 @@
19
19
  * @type utility
20
20
  *
21
21
  */
22
- export default function reloadSession(this: WebdriverIO.Browser): Promise<string>;
22
+ export declare function reloadSession(this: WebdriverIO.Browser): Promise<string>;
23
23
  //# sourceMappingURL=reloadSession.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reloadSession.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/reloadSession.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAA8B,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBA+BrE"}
1
+ {"version":3,"file":"reloadSession.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/reloadSession.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBA+B7D"}
@@ -21,7 +21,7 @@ const log = logger('webdriverio');
21
21
  * @type utility
22
22
  *
23
23
  */
24
- export default async function reloadSession() {
24
+ export async function reloadSession() {
25
25
  const oldSessionId = this.sessionId;
26
26
  /**
27
27
  * end current running session, if session already gone suppress exceptions
@@ -41,6 +41,6 @@ type PDFPrintOptions = {
41
41
  * @type utility
42
42
  *
43
43
  */
44
- export default function savePDF(this: WebdriverIO.Browser, filepath: string, options?: PDFPrintOptions): Promise<Buffer>;
44
+ export declare function savePDF(this: WebdriverIO.Browser, filepath: string, options?: PDFPrintOptions): Promise<Buffer>;
45
45
  export {};
46
46
  //# sourceMappingURL=savePDF.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"savePDF.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/savePDF.ts"],"names":[],"mappings":";AAGA,KAAK,eAAe,GAAG;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,eAAe,mBAmB5B"}
1
+ {"version":3,"file":"savePDF.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/savePDF.ts"],"names":[],"mappings":";AAGA,KAAK,eAAe,GAAG;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,eAAe,mBAmB5B"}
@@ -29,7 +29,7 @@ import { getAbsoluteFilepath, assertDirectoryExists } from '../../utils/index.js
29
29
  * @type utility
30
30
  *
31
31
  */
32
- export default async function savePDF(filepath, options) {
32
+ export async function savePDF(filepath, options) {
33
33
  /**
34
34
  * type check
35
35
  */