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
@@ -25,7 +25,7 @@ import { ELEMENT_KEY } from '../../constants.js';
25
25
  * @param {Any} strategyArguments
26
26
  * @return {ElementArray}
27
27
  */
28
- async function custom$$(strategyName, ...strategyArguments) {
28
+ export async function custom$$(strategyName, ...strategyArguments) {
29
29
  const browserObject = getBrowserObject(this);
30
30
  const strategy = browserObject.strategies.get(strategyName);
31
31
  if (!strategy) {
@@ -53,4 +53,3 @@ async function custom$$(strategyName, ...strategyArguments) {
53
53
  const elements = res.length ? await getElements.call(this, strategyRef, res) : [];
54
54
  return enhanceElementsArray(elements, this, strategyName, 'custom$$', strategyArguments);
55
55
  }
56
- export default custom$$;
@@ -22,6 +22,5 @@
22
22
  * @param {Any} strategyArguments
23
23
  * @return {Element}
24
24
  */
25
- declare function custom$(this: WebdriverIO.Element, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
26
- export default custom$;
25
+ export declare function custom$(this: WebdriverIO.Element, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
27
26
  //# sourceMappingURL=custom$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/custom$.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAe,OAAO,CAClB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,gCAmC9B;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/custom$.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,gCAmC9B"}
@@ -25,7 +25,7 @@ import { ELEMENT_KEY } from '../../constants.js';
25
25
  * @param {Any} strategyArguments
26
26
  * @return {Element}
27
27
  */
28
- async function custom$(strategyName, ...strategyArguments) {
28
+ export async function custom$(strategyName, ...strategyArguments) {
29
29
  const browserObject = getBrowserObject(this);
30
30
  const strategy = browserObject.strategies.get(strategyName);
31
31
  if (!strategy) {
@@ -53,4 +53,3 @@ async function custom$(strategyName, ...strategyArguments) {
53
53
  }
54
54
  throw Error('Your locator strategy script must return an element');
55
55
  }
56
- export default custom$;
@@ -21,5 +21,5 @@
21
21
  * @type action
22
22
  *
23
23
  */
24
- export default function doubleClick(this: WebdriverIO.Element): Promise<void>;
24
+ export declare function doubleClick(this: WebdriverIO.Element): Promise<void>;
25
25
  //# sourceMappingURL=doubleClick.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"doubleClick.d.ts","sourceRoot":"","sources":["../../../src/commands/element/doubleClick.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAA8B,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,iBAqBnE"}
1
+ {"version":3,"file":"doubleClick.d.ts","sourceRoot":"","sources":["../../../src/commands/element/doubleClick.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,iBAqB3D"}
@@ -22,7 +22,7 @@ import { getBrowserObject } from '../../utils/index.js';
22
22
  * @type action
23
23
  *
24
24
  */
25
- export default async function doubleClick() {
25
+ export async function doubleClick() {
26
26
  /**
27
27
  * move to element
28
28
  */
@@ -36,6 +36,6 @@ type ElementCoordinates = {
36
36
  * @param {DragAndDropOptions=} options dragAndDrop command options
37
37
  * @param {Number=} options.duration how long the drag should take place
38
38
  */
39
- export default function dragAndDrop(this: WebdriverIO.Element, target: WebdriverIO.Element | ElementCoordinates, { duration }?: DragAndDropOptions): Promise<void>;
39
+ export declare function dragAndDrop(this: WebdriverIO.Element, target: WebdriverIO.Element | ElementCoordinates, { duration }?: DragAndDropOptions): Promise<void>;
40
40
  export {};
41
41
  //# sourceMappingURL=dragAndDrop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/commands/element/dragAndDrop.ts"],"names":[],"mappings":"AAQA,KAAK,kBAAkB,GAAG;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAA8B,WAAW,CACrC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,EAAE,WAAW,CAAC,OAAO,GAAG,kBAAkB,EAChD,EAAE,QAAa,EAAE,GAAE,kBAAuB,iBAmE7C"}
1
+ {"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/commands/element/dragAndDrop.ts"],"names":[],"mappings":"AAQA,KAAK,kBAAkB,GAAG;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,EAAE,WAAW,CAAC,OAAO,GAAG,kBAAkB,EAChD,EAAE,QAAa,EAAE,GAAE,kBAAuB,iBAmE7C"}
@@ -33,7 +33,7 @@ const sleep = (time = 0) => new Promise((resolve) => setTimeout(resolve, time));
33
33
  * @param {DragAndDropOptions=} options dragAndDrop command options
34
34
  * @param {Number=} options.duration how long the drag should take place
35
35
  */
36
- export default async function dragAndDrop(target, { duration = 10 } = {}) {
36
+ export async function dragAndDrop(target, { duration = 10 } = {}) {
37
37
  const moveToCoordinates = target;
38
38
  const moveToElement = target;
39
39
  /**
@@ -24,5 +24,5 @@
24
24
  * @type property
25
25
  *
26
26
  */
27
- export default function getAttribute(this: WebdriverIO.Element, attributeName: string): Promise<string>;
27
+ export declare function getAttribute(this: WebdriverIO.Element, attributeName: string): Promise<string>;
28
28
  //# sourceMappingURL=getAttribute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAttribute.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getAttribute.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,EAAE,MAAM,mBAGxB"}
1
+ {"version":3,"file":"getAttribute.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getAttribute.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,EAAE,MAAM,mBAGxB"}
@@ -24,6 +24,6 @@
24
24
  * @type property
25
25
  *
26
26
  */
27
- export default function getAttribute(attributeName) {
27
+ export function getAttribute(attributeName) {
28
28
  return this.getElementAttribute(this.elementId, attributeName);
29
29
  }
@@ -67,5 +67,5 @@
67
67
  * @return {CSSProperty} The specified css of the element
68
68
  *
69
69
  */
70
- export default function getCSSProperty(this: WebdriverIO.Element, cssProperty: string): Promise<import("../../types.js").ParsedCSSValue>;
70
+ export declare function getCSSProperty(this: WebdriverIO.Element, cssProperty: string): Promise<import("../../types.js").ParsedCSSValue>;
71
71
  //# sourceMappingURL=getCSSProperty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCSSProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getCSSProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,wBAA8B,cAAc,CACxC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,WAAW,EAAE,MAAM,oDAsCtB"}
1
+ {"version":3,"file":"getCSSProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getCSSProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,wBAAsB,cAAc,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,WAAW,EAAE,MAAM,oDAsCtB"}
@@ -69,7 +69,7 @@ import { parseCSS } from '../../utils/index.js';
69
69
  * @return {CSSProperty} The specified css of the element
70
70
  *
71
71
  */
72
- export default async function getCSSProperty(cssProperty) {
72
+ export async function getCSSProperty(cssProperty) {
73
73
  /**
74
74
  * Getting the css value of a shorthand property results in different results
75
75
  * given that the behavior of `getComputedStyle` is not defined in this case.
@@ -16,5 +16,5 @@
16
16
  * @type property
17
17
  *
18
18
  */
19
- export default function getComputedLabel(this: WebdriverIO.Element): Promise<string>;
19
+ export declare function getComputedLabel(this: WebdriverIO.Element): Promise<string>;
20
20
  //# sourceMappingURL=getComputedLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getComputedLabel.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getComputedLabel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAElE"}
1
+ {"version":3,"file":"getComputedLabel.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getComputedLabel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAE1D"}
@@ -16,6 +16,6 @@
16
16
  * @type property
17
17
  *
18
18
  */
19
- export default function getComputedLabel() {
19
+ export function getComputedLabel() {
20
20
  return this.getElementComputedLabel(this.elementId);
21
21
  }
@@ -16,5 +16,5 @@
16
16
  * @type property
17
17
  *
18
18
  */
19
- export default function getComputedRole(this: WebdriverIO.Element): Promise<string>;
19
+ export declare function getComputedRole(this: WebdriverIO.Element): Promise<string>;
20
20
  //# sourceMappingURL=getComputedRole.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getComputedRole.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getComputedRole.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAEjE"}
1
+ {"version":3,"file":"getComputedRole.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getComputedRole.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAEzD"}
@@ -16,6 +16,6 @@
16
16
  * @type property
17
17
  *
18
18
  */
19
- export default function getComputedRole() {
19
+ export function getComputedRole() {
20
20
  return this.getElementComputedRole(this.elementId);
21
21
  }
@@ -28,5 +28,5 @@
28
28
  * @type property
29
29
  *
30
30
  */
31
- export default function getHTML(this: WebdriverIO.Element, includeSelectorTag?: boolean): Promise<string>;
31
+ export declare function getHTML(this: WebdriverIO.Element, includeSelectorTag?: boolean): Promise<string>;
32
32
  //# sourceMappingURL=getHTML.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getHTML.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getHTML.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,kBAAkB,UAAO,mBAO5B"}
1
+ {"version":3,"file":"getHTML.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getHTML.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,OAAO,CACnB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,kBAAkB,UAAO,mBAO5B"}
@@ -31,7 +31,7 @@ import getHTMLScript from '../../scripts/getHTML.js';
31
31
  * @type property
32
32
  *
33
33
  */
34
- export default function getHTML(includeSelectorTag = true) {
34
+ export function getHTML(includeSelectorTag = true) {
35
35
  const browser = getBrowserObject(this);
36
36
  return browser.execute(getHTMLScript, {
37
37
  [ELEMENT_KEY]: this.elementId,
@@ -1,6 +1,5 @@
1
1
  import type { RectReturn } from '@wdio/protocols';
2
2
  export type Location = Pick<RectReturn, 'x' | 'y'>;
3
- declare function getLocation(this: WebdriverIO.Element): Promise<Location>;
4
- declare function getLocation(this: WebdriverIO.Element, prop: keyof Location): Promise<number>;
5
- export default getLocation;
3
+ export declare function getLocation(this: WebdriverIO.Element): Promise<Location>;
4
+ export declare function getLocation(this: WebdriverIO.Element, prop: keyof Location): Promise<number>;
6
5
  //# sourceMappingURL=getLocation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLocation.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAGjD,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC;AAEnD,iBAAS,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;AAEnE,iBAAS,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAkDvF,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"getLocation.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAGjD,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC;AAEnD,wBAAgB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;AAC1E,wBAAgB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA"}
@@ -26,7 +26,7 @@ import { getElementRect } from '../../utils/index.js';
26
26
  * @uses protocol/elementIdLocation
27
27
  * @type property
28
28
  */
29
- async function getLocation(prop) {
29
+ export async function getLocation(prop) {
30
30
  let location = {};
31
31
  if (this.isW3C) {
32
32
  location = await getElementRect(this);
@@ -41,4 +41,3 @@ async function getLocation(prop) {
41
41
  }
42
42
  return location;
43
43
  }
44
- export default getLocation;
@@ -14,7 +14,7 @@
14
14
  * @param {String} property name of the element property
15
15
  * @return {Object|String|Boolean|Number|null} the value of the property of the selected element
16
16
  */
17
- export default function getProperty(this: WebdriverIO.Element, property: string): Promise<string | number | boolean | HTMLElement | Element | ChildNode | ParentNode | Document | (() => ElementInternals) | (() => void) | {
17
+ export declare function getProperty(this: WebdriverIO.Element, property: string): Promise<string | number | boolean | HTMLElement | Element | ChildNode | ParentNode | Document | (() => ElementInternals) | (() => void) | {
18
18
  <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
19
19
  (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
20
20
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"getProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kpKAYnB"}
1
+ {"version":3,"file":"getProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kpKAYnB"}
@@ -16,7 +16,7 @@ import getPropertyScript from '../../scripts/getProperty.js';
16
16
  * @param {String} property name of the element property
17
17
  * @return {Object|String|Boolean|Number|null} the value of the property of the selected element
18
18
  */
19
- export default function getProperty(property) {
19
+ export function getProperty(property) {
20
20
  if (this.isW3C) {
21
21
  return this.getElementProperty(this.elementId, property);
22
22
  }
@@ -1,6 +1,5 @@
1
1
  import type { RectReturn } from '@wdio/protocols';
2
2
  export type Size = Pick<RectReturn, 'width' | 'height'>;
3
- declare function getSize(this: WebdriverIO.Element): Promise<Size>;
4
- declare function getSize(this: WebdriverIO.Element, prop: keyof RectReturn): Promise<number>;
5
- export default getSize;
3
+ export declare function getSize(this: WebdriverIO.Element): Promise<Size>;
4
+ export declare function getSize(this: WebdriverIO.Element, prop: keyof RectReturn): Promise<number>;
6
5
  //# sourceMappingURL=getSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSize.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getSize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,MAAM,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;AAExD,iBAAS,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5D,iBAAS,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AA+CtF,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"getSize.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getSize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,MAAM,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;AAExD,wBAAgB,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACnE,wBAAgB,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC"}
@@ -26,7 +26,7 @@ import { getElementRect } from '../../utils/index.js';
26
26
  * @type property
27
27
  *
28
28
  */
29
- async function getSize(prop) {
29
+ export async function getSize(prop) {
30
30
  const rect = this.isW3C
31
31
  ? await getElementRect(this)
32
32
  : await this.getElementSize(this.elementId);
@@ -38,4 +38,3 @@ async function getSize(prop) {
38
38
  height: rect.height
39
39
  };
40
40
  }
41
- export default getSize;
@@ -21,5 +21,5 @@
21
21
  * @type property
22
22
  *
23
23
  */
24
- export default function getTagName(this: WebdriverIO.Element): Promise<string>;
24
+ export declare function getTagName(this: WebdriverIO.Element): Promise<string>;
25
25
  //# sourceMappingURL=getTagName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTagName.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getTagName.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAE5D"}
1
+ {"version":3,"file":"getTagName.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getTagName.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAEpD"}
@@ -21,6 +21,6 @@
21
21
  * @type property
22
22
  *
23
23
  */
24
- export default function getTagName() {
24
+ export function getTagName() {
25
25
  return this.getElementTagName(this.elementId);
26
26
  }
@@ -38,5 +38,5 @@
38
38
  * @type property
39
39
  *
40
40
  */
41
- export default function getText(this: WebdriverIO.Element): Promise<string>;
41
+ export declare function getText(this: WebdriverIO.Element): Promise<string>;
42
42
  //# sourceMappingURL=getText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getText.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getText.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAEzD"}
1
+ {"version":3,"file":"getText.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getText.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAEjD"}
@@ -38,6 +38,6 @@
38
38
  * @type property
39
39
  *
40
40
  */
41
- export default function getText() {
41
+ export function getText() {
42
42
  return this.getElementText(this.elementId);
43
43
  }
@@ -18,8 +18,7 @@
18
18
  * @alias element.getValue
19
19
  * @return {String} requested element(s) value
20
20
  * @uses protocol/elements, protocol/elementIdProperty
21
- * @type property
22
21
  *
23
22
  */
24
- export default function getValue(this: WebdriverIO.Element): Promise<string>;
23
+ export declare function getValue(this: WebdriverIO.Element): Promise<string>;
25
24
  //# sourceMappingURL=getValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getValue.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getValue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAO1D"}
1
+ {"version":3,"file":"getValue.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getValue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAOlD"}
@@ -18,10 +18,9 @@
18
18
  * @alias element.getValue
19
19
  * @return {String} requested element(s) value
20
20
  * @uses protocol/elements, protocol/elementIdProperty
21
- * @type property
22
21
  *
23
22
  */
24
- export default function getValue() {
23
+ export function getValue() {
25
24
  // `!this.isMobile` added to workaround https://github.com/appium/appium/issues/12218
26
25
  if (this.isW3C && !this.isMobile) {
27
26
  return this.getElementProperty(this.elementId, 'value');
@@ -36,5 +36,5 @@
36
36
  * @type state
37
37
  *
38
38
  */
39
- export default function isClickable(this: WebdriverIO.Element): Promise<boolean>;
39
+ export declare function isClickable(this: WebdriverIO.Element): Promise<boolean>;
40
40
  //# sourceMappingURL=isClickable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isClickable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAA8B,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAcnE"}
1
+ {"version":3,"file":"isClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isClickable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAc3D"}
@@ -39,7 +39,7 @@ import isElementClickableScript from '../../scripts/isElementClickable.js';
39
39
  * @type state
40
40
  *
41
41
  */
42
- export default async function isClickable() {
42
+ export async function isClickable() {
43
43
  if (!await this.isDisplayed()) {
44
44
  return false;
45
45
  }
@@ -46,5 +46,5 @@
46
46
  * @type state
47
47
  *
48
48
  */
49
- export default function isDisplayed(this: WebdriverIO.Element): Promise<boolean>;
49
+ export declare function isDisplayed(this: WebdriverIO.Element): Promise<boolean>;
50
50
  //# sourceMappingURL=isDisplayed.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAA8B,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAgCnE"}
1
+ {"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAgC3D"}
@@ -50,7 +50,7 @@ const noW3CEndpoint = ['microsoftedge', 'msedge', 'safari', 'chrome', 'safari te
50
50
  * @type state
51
51
  *
52
52
  */
53
- export default async function isDisplayed() {
53
+ export async function isDisplayed() {
54
54
  const browser = getBrowserObject(this);
55
55
  if (!await hasElementId(this)) {
56
56
  return false;
@@ -34,5 +34,5 @@
34
34
  * @type state
35
35
  *
36
36
  */
37
- export default function isDisplayedInViewport(this: WebdriverIO.Element): Promise<boolean>;
37
+ export declare function isDisplayedInViewport(this: WebdriverIO.Element): Promise<boolean>;
38
38
  //# sourceMappingURL=isDisplayedInViewport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isDisplayedInViewport.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayedInViewport.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAA8B,qBAAqB,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAU7E"}
1
+ {"version":3,"file":"isDisplayedInViewport.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayedInViewport.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,qBAAqB,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAUrE"}
@@ -37,7 +37,7 @@ import isElementInViewportScript from '../../scripts/isElementInViewport.js';
37
37
  * @type state
38
38
  *
39
39
  */
40
- export default async function isDisplayedInViewport() {
40
+ export async function isDisplayedInViewport() {
41
41
  if (!await this.isDisplayed()) {
42
42
  return false;
43
43
  }
@@ -30,5 +30,5 @@
30
30
  * @type state
31
31
  *
32
32
  */
33
- export default function isEnabled(this: WebdriverIO.Element): Promise<boolean>;
33
+ export declare function isEnabled(this: WebdriverIO.Element): Promise<boolean>;
34
34
  //# sourceMappingURL=isEnabled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEnabled.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAE3D"}
1
+ {"version":3,"file":"isEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEnabled.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,SAAS,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAEnD"}
@@ -30,6 +30,6 @@
30
30
  * @type state
31
31
  *
32
32
  */
33
- export default function isEnabled() {
33
+ export function isEnabled() {
34
34
  return this.isElementEnabled(this.elementId);
35
35
  }
@@ -20,5 +20,5 @@
20
20
  * @return {Boolean} true if elements are equal
21
21
  *
22
22
  */
23
- export default function isEqual(this: WebdriverIO.Element, el: WebdriverIO.Element): Promise<boolean>;
23
+ export declare function isEqual(this: WebdriverIO.Element, el: WebdriverIO.Element): Promise<boolean>;
24
24
  //# sourceMappingURL=isEqual.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEqual.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EAAE,EAAE,WAAW,CAAC,OAAO,oBA4B1B"}
1
+ {"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEqual.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EAAE,EAAE,WAAW,CAAC,OAAO,oBA4B1B"}
@@ -26,7 +26,7 @@ const getWebElement = (el) => ({
26
26
  * @return {Boolean} true if elements are equal
27
27
  *
28
28
  */
29
- export default async function isEqual(el) {
29
+ export async function isEqual(el) {
30
30
  const browser = getBrowserObject(this);
31
31
  // mobile native
32
32
  if (browser.isMobile) {
@@ -45,5 +45,5 @@
45
45
  * @type state
46
46
  *
47
47
  */
48
- export default function isExisting(this: WebdriverIO.Element): Promise<boolean>;
48
+ export declare function isExisting(this: WebdriverIO.Element): Promise<boolean>;
49
49
  //# sourceMappingURL=isExisting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isExisting.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isExisting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAA8B,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAkBlE"}
1
+ {"version":3,"file":"isExisting.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isExisting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAsB,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAkB1D"}
@@ -45,7 +45,7 @@
45
45
  * @type state
46
46
  *
47
47
  */
48
- export default async function isExisting() {
48
+ export async function isExisting() {
49
49
  /**
50
50
  * if an element was composed via `const elem = $({ 'element-6066-11e4-a52e-4f735466cecf': <elementId> })`
51
51
  * we don't have any selector information. Therefore we can only check existance
@@ -24,5 +24,5 @@
24
24
  * @type state
25
25
  *
26
26
  */
27
- export default function isFocused(this: WebdriverIO.Element): Promise<boolean>;
27
+ export declare function isFocused(this: WebdriverIO.Element): Promise<boolean>;
28
28
  //# sourceMappingURL=isFocused.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isFocused.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isFocused.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAA8B,SAAS,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAMjE"}
1
+ {"version":3,"file":"isFocused.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isFocused.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,SAAS,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAMzD"}
@@ -27,7 +27,7 @@ import isFocusedScript from '../../scripts/isFocused.js';
27
27
  * @type state
28
28
  *
29
29
  */
30
- export default async function isFocused() {
30
+ export async function isFocused() {
31
31
  const browser = await getBrowserObject(this);
32
32
  return browser.execute(isFocusedScript, {
33
33
  [ELEMENT_KEY]: this.elementId,
@@ -27,5 +27,5 @@
27
27
  * @type state
28
28
  *
29
29
  */
30
- export default function isSelected(this: WebdriverIO.Element): Promise<boolean>;
30
+ export declare function isSelected(this: WebdriverIO.Element): Promise<boolean>;
31
31
  //# sourceMappingURL=isSelected.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isSelected.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isSelected.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAE5D"}
1
+ {"version":3,"file":"isSelected.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isSelected.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAEpD"}
@@ -27,6 +27,6 @@
27
27
  * @type state
28
28
  *
29
29
  */
30
- export default function isSelected() {
30
+ export function isSelected() {
31
31
  return this.isElementSelected(this.elementId);
32
32
  }
@@ -16,6 +16,6 @@ type MoveToOptions = {
16
16
  * @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto
17
17
  * @type protocol
18
18
  */
19
- export default function moveTo(this: WebdriverIO.Element, { xOffset, yOffset }?: MoveToOptions): Promise<void>;
19
+ export declare function moveTo(this: WebdriverIO.Element, { xOffset, yOffset }?: MoveToOptions): Promise<void>;
20
20
  export {};
21
21
  //# sourceMappingURL=moveTo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"moveTo.d.ts","sourceRoot":"","sources":["../../../src/commands/element/moveTo.ts"],"names":[],"mappings":"AAEA,KAAK,aAAa,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAA8B,MAAM,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EAAE,OAAO,EAAE,OAAO,EAAE,GAAE,aAAkB,iBAqB3C"}
1
+ {"version":3,"file":"moveTo.d.ts","sourceRoot":"","sources":["../../../src/commands/element/moveTo.ts"],"names":[],"mappings":"AAEA,KAAK,aAAa,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,MAAM,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EAAE,OAAO,EAAE,OAAO,EAAE,GAAE,aAAkB,iBAqB3C"}
@@ -13,7 +13,7 @@ import { getElementRect, getScrollPosition, getBrowserObject } from '../../utils
13
13
  * @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto
14
14
  * @type protocol
15
15
  */
16
- export default async function moveTo({ xOffset, yOffset } = {}) {
16
+ export async function moveTo({ xOffset, yOffset } = {}) {
17
17
  if (!this.isW3C) {
18
18
  return this.moveToElement(this.elementId, xOffset, yOffset);
19
19
  }
@@ -1,4 +1,3 @@
1
- import type { ChainablePromiseElement } from '../../types.js';
2
1
  /**
3
2
  *
4
3
  * Returns the next sibling element of the selected DOM-element.
@@ -22,5 +21,5 @@ import type { ChainablePromiseElement } from '../../types.js';
22
21
  * @return {Element}
23
22
  * @type utility
24
23
  */
25
- export default function nextElement(this: WebdriverIO.Element): ChainablePromiseElement<WebdriverIO.Element>;
24
+ export declare function nextElement(this: WebdriverIO.Element): import("../../types.js").ChainablePromiseElement<WebdriverIO.Element>;
26
25
  //# sourceMappingURL=nextElement.d.ts.map