webdriverio 7.16.14 → 7.17.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 (358) hide show
  1. package/package.json +10 -10
  2. package/build/commands/browser/$$.d.ts +0 -50
  3. package/build/commands/browser/$$.d.ts.map +0 -1
  4. package/build/commands/browser/$$.js +0 -57
  5. package/build/commands/browser/$.d.ts +0 -77
  6. package/build/commands/browser/$.d.ts.map +0 -1
  7. package/build/commands/browser/$.js +0 -91
  8. package/build/commands/browser/addCommand.d.ts +0 -37
  9. package/build/commands/browser/addCommand.d.ts.map +0 -1
  10. package/build/commands/browser/addCommand.js +0 -37
  11. package/build/commands/browser/call.d.ts +0 -42
  12. package/build/commands/browser/call.d.ts.map +0 -1
  13. package/build/commands/browser/call.js +0 -49
  14. package/build/commands/browser/custom$$.d.ts +0 -26
  15. package/build/commands/browser/custom$$.d.ts.map +0 -1
  16. package/build/commands/browser/custom$$.js +0 -47
  17. package/build/commands/browser/custom$.d.ts +0 -25
  18. package/build/commands/browser/custom$.d.ts.map +0 -1
  19. package/build/commands/browser/custom$.js +0 -47
  20. package/build/commands/browser/debug.d.ts +0 -32
  21. package/build/commands/browser/debug.d.ts.map +0 -1
  22. package/build/commands/browser/debug.js +0 -108
  23. package/build/commands/browser/deleteCookies.d.ts +0 -45
  24. package/build/commands/browser/deleteCookies.d.ts.map +0 -1
  25. package/build/commands/browser/deleteCookies.js +0 -56
  26. package/build/commands/browser/execute.d.ts +0 -37
  27. package/build/commands/browser/execute.d.ts.map +0 -1
  28. package/build/commands/browser/execute.js +0 -55
  29. package/build/commands/browser/executeAsync.d.ts +0 -45
  30. package/build/commands/browser/executeAsync.d.ts.map +0 -1
  31. package/build/commands/browser/executeAsync.js +0 -63
  32. package/build/commands/browser/getCookies.d.ts +0 -34
  33. package/build/commands/browser/getCookies.d.ts.map +0 -1
  34. package/build/commands/browser/getCookies.js +0 -46
  35. package/build/commands/browser/getPuppeteer.d.ts +0 -38
  36. package/build/commands/browser/getPuppeteer.d.ts.map +0 -1
  37. package/build/commands/browser/getPuppeteer.js +0 -119
  38. package/build/commands/browser/getWindowSize.d.ts +0 -25
  39. package/build/commands/browser/getWindowSize.d.ts.map +0 -1
  40. package/build/commands/browser/getWindowSize.js +0 -30
  41. package/build/commands/browser/keys.d.ts +0 -28
  42. package/build/commands/browser/keys.d.ts.map +0 -1
  43. package/build/commands/browser/keys.js +0 -64
  44. package/build/commands/browser/mock.d.ts +0 -111
  45. package/build/commands/browser/mock.d.ts.map +0 -1
  46. package/build/commands/browser/mock.js +0 -164
  47. package/build/commands/browser/mockClearAll.d.ts +0 -28
  48. package/build/commands/browser/mockClearAll.d.ts.map +0 -1
  49. package/build/commands/browser/mockClearAll.js +0 -43
  50. package/build/commands/browser/mockRestoreAll.d.ts +0 -26
  51. package/build/commands/browser/mockRestoreAll.d.ts.map +0 -1
  52. package/build/commands/browser/mockRestoreAll.js +0 -41
  53. package/build/commands/browser/newWindow.d.ts +0 -41
  54. package/build/commands/browser/newWindow.d.ts.map +0 -1
  55. package/build/commands/browser/newWindow.js +0 -83
  56. package/build/commands/browser/overwriteCommand.d.ts +0 -32
  57. package/build/commands/browser/overwriteCommand.d.ts.map +0 -1
  58. package/build/commands/browser/overwriteCommand.js +0 -32
  59. package/build/commands/browser/pause.d.ts +0 -23
  60. package/build/commands/browser/pause.d.ts.map +0 -1
  61. package/build/commands/browser/pause.js +0 -27
  62. package/build/commands/browser/react$$.d.ts +0 -36
  63. package/build/commands/browser/react$$.d.ts.map +0 -1
  64. package/build/commands/browser/react$$.js +0 -51
  65. package/build/commands/browser/react$.d.ts +0 -46
  66. package/build/commands/browser/react$.d.ts.map +0 -1
  67. package/build/commands/browser/react$.js +0 -59
  68. package/build/commands/browser/reloadSession.d.ts +0 -23
  69. package/build/commands/browser/reloadSession.d.ts.map +0 -1
  70. package/build/commands/browser/reloadSession.js +0 -58
  71. package/build/commands/browser/savePDF.d.ts +0 -46
  72. package/build/commands/browser/savePDF.d.ts.map +0 -1
  73. package/build/commands/browser/savePDF.js +0 -51
  74. package/build/commands/browser/saveRecordingScreen.d.ts +0 -28
  75. package/build/commands/browser/saveRecordingScreen.d.ts.map +0 -1
  76. package/build/commands/browser/saveRecordingScreen.js +0 -47
  77. package/build/commands/browser/saveScreenshot.d.ts +0 -22
  78. package/build/commands/browser/saveScreenshot.d.ts.map +0 -1
  79. package/build/commands/browser/saveScreenshot.js +0 -41
  80. package/build/commands/browser/setCookies.d.ts +0 -57
  81. package/build/commands/browser/setCookies.d.ts.map +0 -1
  82. package/build/commands/browser/setCookies.js +0 -66
  83. package/build/commands/browser/setTimeout.d.ts +0 -31
  84. package/build/commands/browser/setTimeout.d.ts.map +0 -1
  85. package/build/commands/browser/setTimeout.js +0 -61
  86. package/build/commands/browser/setWindowSize.d.ts +0 -20
  87. package/build/commands/browser/setWindowSize.d.ts.map +0 -1
  88. package/build/commands/browser/setWindowSize.js +0 -43
  89. package/build/commands/browser/switchWindow.d.ts +0 -30
  90. package/build/commands/browser/switchWindow.d.ts.map +0 -1
  91. package/build/commands/browser/switchWindow.js +0 -73
  92. package/build/commands/browser/throttle.d.ts +0 -3
  93. package/build/commands/browser/throttle.d.ts.map +0 -1
  94. package/build/commands/browser/throttle.js +0 -144
  95. package/build/commands/browser/touchAction.d.ts +0 -61
  96. package/build/commands/browser/touchAction.d.ts.map +0 -1
  97. package/build/commands/browser/touchAction.js +0 -65
  98. package/build/commands/browser/uploadFile.d.ts +0 -32
  99. package/build/commands/browser/uploadFile.d.ts.map +0 -1
  100. package/build/commands/browser/uploadFile.js +0 -63
  101. package/build/commands/browser/url.d.ts +0 -38
  102. package/build/commands/browser/url.d.ts.map +0 -1
  103. package/build/commands/browser/url.js +0 -49
  104. package/build/commands/browser/waitUntil.d.ts +0 -44
  105. package/build/commands/browser/waitUntil.d.ts.map +0 -1
  106. package/build/commands/browser/waitUntil.js +0 -73
  107. package/build/commands/browser.d.ts +0 -70
  108. package/build/commands/browser.d.ts.map +0 -1
  109. package/build/commands/browser.js +0 -44
  110. package/build/commands/constant.d.ts +0 -19
  111. package/build/commands/constant.d.ts.map +0 -1
  112. package/build/commands/constant.js +0 -91
  113. package/build/commands/element/$$.d.ts +0 -46
  114. package/build/commands/element/$$.d.ts.map +0 -1
  115. package/build/commands/element/$$.js +0 -50
  116. package/build/commands/element/$.d.ts +0 -72
  117. package/build/commands/element/$.d.ts.map +0 -1
  118. package/build/commands/element/$.js +0 -76
  119. package/build/commands/element/addValue.d.ts +0 -33
  120. package/build/commands/element/addValue.d.ts.map +0 -1
  121. package/build/commands/element/addValue.js +0 -48
  122. package/build/commands/element/clearValue.d.ts +0 -28
  123. package/build/commands/element/clearValue.d.ts.map +0 -1
  124. package/build/commands/element/clearValue.js +0 -32
  125. package/build/commands/element/click.d.ts +0 -73
  126. package/build/commands/element/click.d.ts.map +0 -1
  127. package/build/commands/element/click.js +0 -134
  128. package/build/commands/element/custom$$.d.ts +0 -28
  129. package/build/commands/element/custom$$.d.ts.map +0 -1
  130. package/build/commands/element/custom$$.js +0 -57
  131. package/build/commands/element/custom$.d.ts +0 -27
  132. package/build/commands/element/custom$.d.ts.map +0 -1
  133. package/build/commands/element/custom$.js +0 -57
  134. package/build/commands/element/doubleClick.d.ts +0 -25
  135. package/build/commands/element/doubleClick.d.ts.map +0 -1
  136. package/build/commands/element/doubleClick.js +0 -51
  137. package/build/commands/element/dragAndDrop.d.ts +0 -41
  138. package/build/commands/element/dragAndDrop.d.ts.map +0 -1
  139. package/build/commands/element/dragAndDrop.js +0 -98
  140. package/build/commands/element/getAttribute.d.ts +0 -28
  141. package/build/commands/element/getAttribute.d.ts.map +0 -1
  142. package/build/commands/element/getAttribute.js +0 -32
  143. package/build/commands/element/getCSSProperty.d.ts +0 -71
  144. package/build/commands/element/getCSSProperty.d.ts.map +0 -1
  145. package/build/commands/element/getCSSProperty.js +0 -108
  146. package/build/commands/element/getComputedLabel.d.ts +0 -20
  147. package/build/commands/element/getComputedLabel.d.ts.map +0 -1
  148. package/build/commands/element/getComputedLabel.js +0 -24
  149. package/build/commands/element/getComputedRole.d.ts +0 -20
  150. package/build/commands/element/getComputedRole.d.ts.map +0 -1
  151. package/build/commands/element/getComputedRole.js +0 -24
  152. package/build/commands/element/getHTML.d.ts +0 -32
  153. package/build/commands/element/getHTML.d.ts.map +0 -1
  154. package/build/commands/element/getHTML.js +0 -46
  155. package/build/commands/element/getLocation.d.ts +0 -6
  156. package/build/commands/element/getLocation.d.ts.map +0 -1
  157. package/build/commands/element/getLocation.js +0 -46
  158. package/build/commands/element/getProperty.d.ts +0 -53
  159. package/build/commands/element/getProperty.d.ts.map +0 -1
  160. package/build/commands/element/getProperty.js +0 -31
  161. package/build/commands/element/getSize.d.ts +0 -6
  162. package/build/commands/element/getSize.d.ts.map +0 -1
  163. package/build/commands/element/getSize.js +0 -47
  164. package/build/commands/element/getTagName.d.ts +0 -25
  165. package/build/commands/element/getTagName.d.ts.map +0 -1
  166. package/build/commands/element/getTagName.js +0 -29
  167. package/build/commands/element/getText.d.ts +0 -42
  168. package/build/commands/element/getText.d.ts.map +0 -1
  169. package/build/commands/element/getText.js +0 -46
  170. package/build/commands/element/getValue.d.ts +0 -25
  171. package/build/commands/element/getValue.d.ts.map +0 -1
  172. package/build/commands/element/getValue.js +0 -33
  173. package/build/commands/element/isClickable.d.ts +0 -40
  174. package/build/commands/element/isClickable.d.ts.map +0 -1
  175. package/build/commands/element/isClickable.js +0 -57
  176. package/build/commands/element/isDisplayed.d.ts +0 -50
  177. package/build/commands/element/isDisplayed.d.ts.map +0 -1
  178. package/build/commands/element/isDisplayed.js +0 -85
  179. package/build/commands/element/isDisplayedInViewport.d.ts +0 -38
  180. package/build/commands/element/isDisplayedInViewport.d.ts.map +0 -1
  181. package/build/commands/element/isDisplayedInViewport.js +0 -55
  182. package/build/commands/element/isEnabled.d.ts +0 -34
  183. package/build/commands/element/isEnabled.d.ts.map +0 -1
  184. package/build/commands/element/isEnabled.js +0 -38
  185. package/build/commands/element/isEqual.d.ts +0 -24
  186. package/build/commands/element/isEqual.d.ts.map +0 -1
  187. package/build/commands/element/isEqual.js +0 -52
  188. package/build/commands/element/isExisting.d.ts +0 -49
  189. package/build/commands/element/isExisting.d.ts.map +0 -1
  190. package/build/commands/element/isExisting.js +0 -65
  191. package/build/commands/element/isFocused.d.ts +0 -28
  192. package/build/commands/element/isFocused.d.ts.map +0 -1
  193. package/build/commands/element/isFocused.js +0 -42
  194. package/build/commands/element/isSelected.d.ts +0 -31
  195. package/build/commands/element/isSelected.d.ts.map +0 -1
  196. package/build/commands/element/isSelected.js +0 -35
  197. package/build/commands/element/moveTo.d.ts +0 -21
  198. package/build/commands/element/moveTo.d.ts.map +0 -1
  199. package/build/commands/element/moveTo.js +0 -39
  200. package/build/commands/element/nextElement.d.ts +0 -25
  201. package/build/commands/element/nextElement.d.ts.map +0 -1
  202. package/build/commands/element/nextElement.js +0 -31
  203. package/build/commands/element/parentElement.d.ts +0 -25
  204. package/build/commands/element/parentElement.d.ts.map +0 -1
  205. package/build/commands/element/parentElement.js +0 -31
  206. package/build/commands/element/previousElement.d.ts +0 -25
  207. package/build/commands/element/previousElement.d.ts.map +0 -1
  208. package/build/commands/element/previousElement.js +0 -31
  209. package/build/commands/element/react$$.d.ts +0 -36
  210. package/build/commands/element/react$$.d.ts.map +0 -1
  211. package/build/commands/element/react$$.js +0 -51
  212. package/build/commands/element/react$.d.ts +0 -46
  213. package/build/commands/element/react$.d.ts.map +0 -1
  214. package/build/commands/element/react$.js +0 -59
  215. package/build/commands/element/saveScreenshot.d.ts +0 -21
  216. package/build/commands/element/saveScreenshot.d.ts.map +0 -1
  217. package/build/commands/element/saveScreenshot.js +0 -40
  218. package/build/commands/element/scrollIntoView.d.ts +0 -21
  219. package/build/commands/element/scrollIntoView.d.ts.map +0 -1
  220. package/build/commands/element/scrollIntoView.js +0 -31
  221. package/build/commands/element/selectByAttribute.d.ts +0 -37
  222. package/build/commands/element/selectByAttribute.d.ts.map +0 -1
  223. package/build/commands/element/selectByAttribute.js +0 -59
  224. package/build/commands/element/selectByIndex.d.ts +0 -31
  225. package/build/commands/element/selectByIndex.d.ts.map +0 -1
  226. package/build/commands/element/selectByIndex.js +0 -55
  227. package/build/commands/element/selectByVisibleText.d.ts +0 -31
  228. package/build/commands/element/selectByVisibleText.d.ts.map +0 -1
  229. package/build/commands/element/selectByVisibleText.js +0 -66
  230. package/build/commands/element/setValue.d.ts +0 -29
  231. package/build/commands/element/setValue.d.ts.map +0 -1
  232. package/build/commands/element/setValue.js +0 -33
  233. package/build/commands/element/shadow$$.d.ts +0 -22
  234. package/build/commands/element/shadow$$.d.ts.map +0 -1
  235. package/build/commands/element/shadow$$.js +0 -27
  236. package/build/commands/element/shadow$.d.ts +0 -22
  237. package/build/commands/element/shadow$.d.ts.map +0 -1
  238. package/build/commands/element/shadow$.js +0 -27
  239. package/build/commands/element/touchAction.d.ts +0 -54
  240. package/build/commands/element/touchAction.d.ts.map +0 -1
  241. package/build/commands/element/touchAction.js +0 -58
  242. package/build/commands/element/waitForClickable.d.ts +0 -34
  243. package/build/commands/element/waitForClickable.d.ts.map +0 -1
  244. package/build/commands/element/waitForClickable.js +0 -37
  245. package/build/commands/element/waitForDisplayed.d.ts +0 -44
  246. package/build/commands/element/waitForDisplayed.d.ts.map +0 -1
  247. package/build/commands/element/waitForDisplayed.js +0 -47
  248. package/build/commands/element/waitForEnabled.d.ts +0 -46
  249. package/build/commands/element/waitForEnabled.d.ts.map +0 -1
  250. package/build/commands/element/waitForEnabled.js +0 -55
  251. package/build/commands/element/waitForExist.d.ts +0 -46
  252. package/build/commands/element/waitForExist.d.ts.map +0 -1
  253. package/build/commands/element/waitForExist.js +0 -49
  254. package/build/commands/element/waitUntil.d.ts +0 -49
  255. package/build/commands/element/waitUntil.d.ts.map +0 -1
  256. package/build/commands/element/waitUntil.js +0 -53
  257. package/build/commands/element.d.ts +0 -100
  258. package/build/commands/element.d.ts.map +0 -1
  259. package/build/commands/element.js +0 -63
  260. package/build/commands/mock/abort.d.ts +0 -19
  261. package/build/commands/mock/abort.d.ts.map +0 -1
  262. package/build/commands/mock/abort.js +0 -20
  263. package/build/commands/mock/abortOnce.d.ts +0 -27
  264. package/build/commands/mock/abortOnce.d.ts.map +0 -1
  265. package/build/commands/mock/abortOnce.js +0 -28
  266. package/build/commands/mock/clear.d.ts +0 -18
  267. package/build/commands/mock/clear.d.ts.map +0 -1
  268. package/build/commands/mock/clear.js +0 -19
  269. package/build/commands/mock/respond.d.ts +0 -54
  270. package/build/commands/mock/respond.d.ts.map +0 -1
  271. package/build/commands/mock/respond.js +0 -55
  272. package/build/commands/mock/respondOnce.d.ts +0 -55
  273. package/build/commands/mock/respondOnce.d.ts.map +0 -1
  274. package/build/commands/mock/respondOnce.js +0 -56
  275. package/build/commands/mock/restore.d.ts +0 -18
  276. package/build/commands/mock/restore.d.ts.map +0 -1
  277. package/build/commands/mock/restore.js +0 -19
  278. package/build/constants.d.ts +0 -14
  279. package/build/constants.d.ts.map +0 -1
  280. package/build/constants.js +0 -286
  281. package/build/index.d.ts +0 -45
  282. package/build/index.d.ts.map +0 -1
  283. package/build/index.js +0 -171
  284. package/build/middlewares.d.ts +0 -12
  285. package/build/middlewares.d.ts.map +0 -1
  286. package/build/middlewares.js +0 -65
  287. package/build/multiremote.d.ts +0 -71
  288. package/build/multiremote.d.ts.map +0 -1
  289. package/build/multiremote.js +0 -160
  290. package/build/protocol-stub.d.ts +0 -16
  291. package/build/protocol-stub.d.ts.map +0 -1
  292. package/build/protocol-stub.js +0 -77
  293. package/build/scripts/getHTML.d.ts +0 -9
  294. package/build/scripts/getHTML.d.ts.map +0 -1
  295. package/build/scripts/getHTML.js +0 -13
  296. package/build/scripts/getProperty.d.ts +0 -43
  297. package/build/scripts/getProperty.d.ts.map +0 -1
  298. package/build/scripts/getProperty.js +0 -12
  299. package/build/scripts/isElementClickable.d.ts +0 -7
  300. package/build/scripts/isElementClickable.d.ts.map +0 -1
  301. package/build/scripts/isElementClickable.js +0 -121
  302. package/build/scripts/isElementDisplayed.d.ts +0 -7
  303. package/build/scripts/isElementDisplayed.d.ts.map +0 -1
  304. package/build/scripts/isElementDisplayed.js +0 -216
  305. package/build/scripts/isElementInViewport.d.ts +0 -10
  306. package/build/scripts/isElementInViewport.d.ts.map +0 -1
  307. package/build/scripts/isElementInViewport.js +0 -22
  308. package/build/scripts/isFocused.d.ts +0 -7
  309. package/build/scripts/isFocused.d.ts.map +0 -1
  310. package/build/scripts/isFocused.js +0 -11
  311. package/build/scripts/newWindow.d.ts +0 -10
  312. package/build/scripts/newWindow.d.ts.map +0 -1
  313. package/build/scripts/newWindow.js +0 -14
  314. package/build/scripts/resq.d.ts +0 -6
  315. package/build/scripts/resq.d.ts.map +0 -1
  316. package/build/scripts/resq.js +0 -58
  317. package/build/scripts/shadowFnFactory.d.ts +0 -2
  318. package/build/scripts/shadowFnFactory.d.ts.map +0 -1
  319. package/build/scripts/shadowFnFactory.js +0 -17
  320. package/build/types.d.ts +0 -402
  321. package/build/types.d.ts.map +0 -1
  322. package/build/types.js +0 -2
  323. package/build/utils/SevereServiceError.d.ts +0 -7
  324. package/build/utils/SevereServiceError.d.ts.map +0 -1
  325. package/build/utils/SevereServiceError.js +0 -12
  326. package/build/utils/Timer.d.ts +0 -33
  327. package/build/utils/Timer.d.ts.map +0 -1
  328. package/build/utils/Timer.js +0 -126
  329. package/build/utils/detectBackend.d.ts +0 -23
  330. package/build/utils/detectBackend.d.ts.map +0 -1
  331. package/build/utils/detectBackend.js +0 -119
  332. package/build/utils/findStrategy.d.ts +0 -10
  333. package/build/utils/findStrategy.d.ts.map +0 -1
  334. package/build/utils/findStrategy.js +0 -267
  335. package/build/utils/getElementObject.d.ts +0 -17
  336. package/build/utils/getElementObject.d.ts.map +0 -1
  337. package/build/utils/getElementObject.js +0 -107
  338. package/build/utils/implicitWait.d.ts +0 -7
  339. package/build/utils/implicitWait.d.ts.map +0 -1
  340. package/build/utils/implicitWait.js +0 -39
  341. package/build/utils/index.d.ts +0 -102
  342. package/build/utils/index.d.ts.map +0 -1
  343. package/build/utils/index.js +0 -543
  344. package/build/utils/interception/devtools.d.ts +0 -61
  345. package/build/utils/interception/devtools.d.ts.map +0 -1
  346. package/build/utils/interception/devtools.js +0 -247
  347. package/build/utils/interception/index.d.ts +0 -26
  348. package/build/utils/interception/index.d.ts.map +0 -1
  349. package/build/utils/interception/index.js +0 -49
  350. package/build/utils/interception/types.d.ts +0 -94
  351. package/build/utils/interception/types.d.ts.map +0 -1
  352. package/build/utils/interception/types.js +0 -2
  353. package/build/utils/interception/webdriver.d.ts +0 -48
  354. package/build/utils/interception/webdriver.d.ts.map +0 -1
  355. package/build/utils/interception/webdriver.js +0 -75
  356. package/build/utils/refetchElement.d.ts +0 -6
  357. package/build/utils/refetchElement.d.ts.map +0 -1
  358. package/build/utils/refetchElement.js +0 -32
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "webdriverio",
3
3
  "description": "Next-gen browser and mobile automation test framework for Node.js",
4
- "version": "7.16.14",
4
+ "version": "7.17.0",
5
5
  "homepage": "https://webdriver.io",
6
6
  "author": "Christian Bromann <christian@saucelabs.com>",
7
7
  "license": "MIT",
@@ -57,18 +57,18 @@
57
57
  "dependencies": {
58
58
  "@types/aria-query": "^5.0.0",
59
59
  "@types/node": "^17.0.4",
60
- "@wdio/config": "7.16.14",
60
+ "@wdio/config": "7.16.16",
61
61
  "@wdio/logger": "7.16.0",
62
62
  "@wdio/protocols": "7.16.7",
63
- "@wdio/repl": "7.16.14",
63
+ "@wdio/repl": "7.17.0",
64
64
  "@wdio/types": "7.16.14",
65
- "@wdio/utils": "7.16.14",
65
+ "@wdio/utils": "7.17.0",
66
66
  "archiver": "^5.0.0",
67
67
  "aria-query": "^5.0.0",
68
68
  "css-shorthand-properties": "^1.1.1",
69
69
  "css-value": "^0.0.1",
70
- "devtools": "7.16.14",
71
- "devtools-protocol": "^0.0.964462",
70
+ "devtools": "7.17.0",
71
+ "devtools-protocol": "^0.0.979353",
72
72
  "fs-extra": "^10.0.0",
73
73
  "get-port": "^5.1.1",
74
74
  "grapheme-splitter": "^1.0.2",
@@ -76,13 +76,13 @@
76
76
  "lodash.isobject": "^3.0.2",
77
77
  "lodash.isplainobject": "^4.0.6",
78
78
  "lodash.zip": "^4.2.0",
79
- "minimatch": "^3.0.4",
80
- "puppeteer-core": "^13.0.0",
79
+ "minimatch": "^5.0.0",
80
+ "puppeteer-core": "^13.1.3",
81
81
  "query-selector-shadow-dom": "^1.0.0",
82
82
  "resq": "^1.9.1",
83
83
  "rgb2hex": "0.2.5",
84
84
  "serialize-error": "^8.0.0",
85
- "webdriver": "7.16.14"
85
+ "webdriver": "7.17.0"
86
86
  },
87
- "gitHead": "be9d252b21fff13f161b8607e186a33a530e3d3d"
87
+ "gitHead": "e18d2cde6ff979758830bdff4c3bc82ca9818b24"
88
88
  }
@@ -1,50 +0,0 @@
1
- import type { Selector, ElementArray } from '../../types';
2
- /**
3
- * The `$$` command is a short way to call the [`findElements`](/docs/api/webdriver#findelements) command in order
4
- * to fetch multiple elements on the page. It returns an array with element results that will have an
5
- * extended prototype to call action commands without passing in a selector. However if you still pass
6
- * in a selector it will look for that element first and call the action on that element.
7
- *
8
- * Using the wdio testrunner this command is a global variable else it will be located on the browser object instead.
9
- *
10
- * You can chain `$` or `$$` together in order to walk down the DOM tree.
11
- *
12
- * :::info
13
- *
14
- * For more information on how to select specific elements, check out the [Selectors](/docs/selectors) guide.
15
- *
16
- * :::
17
- *
18
- * <example>
19
- :index.html
20
- <ul id="menu">
21
- <li><a href="/">Home</a></li>
22
- <li><a href="/">Developer Guide</a></li>
23
- <li><a href="/">API</a></li>
24
- <li><a href="/">Contribute</a></li>
25
- </ul>
26
- :$.js
27
- it('should get text a menu link', async () => {
28
- const text = await $$('#menu')[0];
29
- console.log(await text.$$('li')[2].$('a').getText()); // outputs: "API"
30
- });
31
-
32
- it('should get text a menu link - JS Function', async () => {
33
- const text = await $$(function() { // Arrow function is not allowed here.
34
- // this is Window https://developer.mozilla.org/en-US/docs/Web/API/Window
35
- // TypeScript users may do something like this
36
- // return (this as Window).document.querySelectorAll('#menu')
37
- return this.document.querySelectorAll('#menu'); // Element[]
38
- })[0];
39
- console.log(await text.$$('li')[2].$('a').getText()); // outputs: "API"
40
- });
41
- * </example>
42
- *
43
- * @alias $$
44
- * @param {String|Function} selector selector or JS Function to fetch multiple elements
45
- * @return {ElementArray}
46
- * @type utility
47
- *
48
- */
49
- export default function $$(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector): Promise<ElementArray>;
50
- //# sourceMappingURL=$$.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$$.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAA8B,EAAE,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,yBAKrB"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("../../utils");
4
- const getElementObject_1 = require("../../utils/getElementObject");
5
- /**
6
- * The `$$` command is a short way to call the [`findElements`](/docs/api/webdriver#findelements) command in order
7
- * to fetch multiple elements on the page. It returns an array with element results that will have an
8
- * extended prototype to call action commands without passing in a selector. However if you still pass
9
- * in a selector it will look for that element first and call the action on that element.
10
- *
11
- * Using the wdio testrunner this command is a global variable else it will be located on the browser object instead.
12
- *
13
- * You can chain `$` or `$$` together in order to walk down the DOM tree.
14
- *
15
- * :::info
16
- *
17
- * For more information on how to select specific elements, check out the [Selectors](/docs/selectors) guide.
18
- *
19
- * :::
20
- *
21
- * <example>
22
- :index.html
23
- <ul id="menu">
24
- <li><a href="/">Home</a></li>
25
- <li><a href="/">Developer Guide</a></li>
26
- <li><a href="/">API</a></li>
27
- <li><a href="/">Contribute</a></li>
28
- </ul>
29
- :$.js
30
- it('should get text a menu link', async () => {
31
- const text = await $$('#menu')[0];
32
- console.log(await text.$$('li')[2].$('a').getText()); // outputs: "API"
33
- });
34
-
35
- it('should get text a menu link - JS Function', async () => {
36
- const text = await $$(function() { // Arrow function is not allowed here.
37
- // this is Window https://developer.mozilla.org/en-US/docs/Web/API/Window
38
- // TypeScript users may do something like this
39
- // return (this as Window).document.querySelectorAll('#menu')
40
- return this.document.querySelectorAll('#menu'); // Element[]
41
- })[0];
42
- console.log(await text.$$('li')[2].$('a').getText()); // outputs: "API"
43
- });
44
- * </example>
45
- *
46
- * @alias $$
47
- * @param {String|Function} selector selector or JS Function to fetch multiple elements
48
- * @return {ElementArray}
49
- * @type utility
50
- *
51
- */
52
- async function $$(selector) {
53
- const res = await utils_1.findElements.call(this, selector);
54
- const elements = await getElementObject_1.getElements.call(this, selector, res);
55
- return (0, utils_1.enhanceElementsArray)(elements, this, selector);
56
- }
57
- exports.default = $$;
@@ -1,77 +0,0 @@
1
- import type { Selector } from '../../types';
2
- /**
3
- * The `$` command is a short way to call the [`findElement`](/docs/api/webdriver#findelement) command in order
4
- * to fetch a single element on the page. It returns an object that with an extended prototype to call
5
- * action commands without passing in a selector. However if you still pass in a selector it will look
6
- * for that element first and call the action on that element.
7
- *
8
- * You can also pass in an object as selector where the object contains a property
9
- * `element-6066-11e4-a52e-4f735466cecf` with the value of a reference to an element.
10
- * The command will then transform the reference to an extended WebdriverIO element.
11
- * __Note:__ only use these element objects if you are certain they still exist on the
12
- * page, e.g. using the `isExisting` command. WebdriverIO is unable to refetch them given
13
- * that there are no selector information available.
14
- *
15
- * Using the wdio testrunner this command is a global variable else it will be located on the browser object instead.
16
- *
17
- * You can chain `$` or `$$` together in order to walk down the DOM tree.
18
- *
19
- * :::info
20
- *
21
- * For more information on how to select specific elements, check out the [Selectors](/docs/selectors) guide.
22
- *
23
- * :::
24
- *
25
- * <example>
26
- :index.html
27
- <ul id="menu">
28
- <li><a href="/">Home</a></li>
29
- <li><a href="/">Developer Guide</a></li>
30
- <li><a href="/">API</a></li>
31
- <li><a href="/">Contribute</a></li>
32
- </ul>
33
- :$.js
34
- it('should get text a menu link', async () => {
35
- const text = await $('#menu');
36
- console.log(await text.$$('li')[2].$('a').getText()); // outputs: "API"
37
- });
38
-
39
- it('should get text a menu link - JS Function', async () => {
40
- const text = await $(function() { // Arrow function is not allowed here.
41
- // this is Window https://developer.mozilla.org/en-US/docs/Web/API/Window
42
- // TypeScript users may do something like this
43
- // return (this as Window).document.querySelector('#menu')
44
- return this.document.querySelector('#menu'); // Element
45
- });
46
- console.log(await text.$$('li')[2].$('a').getText()); // outputs: "API"
47
- });
48
-
49
- it('should allow to convert protocol result of an element into a WebdriverIO element', async () => {
50
- const activeElement = await browser.getActiveElement();
51
- console.log(await $(activeElement).getTagName()); // outputs active element
52
- });
53
-
54
- it('should use Androids DataMatcher or ViewMatcher selector', async () => {
55
- const menuItem = await $({
56
- "name": "hasEntry",
57
- "args": ["title", "ViewTitle"],
58
- "class": "androidx.test.espresso.matcher.ViewMatchers"
59
- });
60
- await menuItem.click();
61
-
62
- const menuItem = await $({
63
- "name": "hasEntry",
64
- "args": ["title", "ViewTitle"]
65
- });
66
- await menuItem.click();
67
- });
68
- * </example>
69
- *
70
- * @alias $
71
- * @param {String|Function|Matcher} selector selector, JS Function, or Matcher object to fetch a certain element
72
- * @return {Element}
73
- * @type utility
74
- *
75
- */
76
- export default function $(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector): Promise<WebdriverIO.Element>;
77
- //# sourceMappingURL=$.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAA8B,CAAC,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,gCAYrB"}
@@ -1,91 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("../../utils");
4
- const getElementObject_1 = require("../../utils/getElementObject");
5
- const constants_1 = require("../../constants");
6
- /**
7
- * The `$` command is a short way to call the [`findElement`](/docs/api/webdriver#findelement) command in order
8
- * to fetch a single element on the page. It returns an object that with an extended prototype to call
9
- * action commands without passing in a selector. However if you still pass in a selector it will look
10
- * for that element first and call the action on that element.
11
- *
12
- * You can also pass in an object as selector where the object contains a property
13
- * `element-6066-11e4-a52e-4f735466cecf` with the value of a reference to an element.
14
- * The command will then transform the reference to an extended WebdriverIO element.
15
- * __Note:__ only use these element objects if you are certain they still exist on the
16
- * page, e.g. using the `isExisting` command. WebdriverIO is unable to refetch them given
17
- * that there are no selector information available.
18
- *
19
- * Using the wdio testrunner this command is a global variable else it will be located on the browser object instead.
20
- *
21
- * You can chain `$` or `$$` together in order to walk down the DOM tree.
22
- *
23
- * :::info
24
- *
25
- * For more information on how to select specific elements, check out the [Selectors](/docs/selectors) guide.
26
- *
27
- * :::
28
- *
29
- * <example>
30
- :index.html
31
- <ul id="menu">
32
- <li><a href="/">Home</a></li>
33
- <li><a href="/">Developer Guide</a></li>
34
- <li><a href="/">API</a></li>
35
- <li><a href="/">Contribute</a></li>
36
- </ul>
37
- :$.js
38
- it('should get text a menu link', async () => {
39
- const text = await $('#menu');
40
- console.log(await text.$$('li')[2].$('a').getText()); // outputs: "API"
41
- });
42
-
43
- it('should get text a menu link - JS Function', async () => {
44
- const text = await $(function() { // Arrow function is not allowed here.
45
- // this is Window https://developer.mozilla.org/en-US/docs/Web/API/Window
46
- // TypeScript users may do something like this
47
- // return (this as Window).document.querySelector('#menu')
48
- return this.document.querySelector('#menu'); // Element
49
- });
50
- console.log(await text.$$('li')[2].$('a').getText()); // outputs: "API"
51
- });
52
-
53
- it('should allow to convert protocol result of an element into a WebdriverIO element', async () => {
54
- const activeElement = await browser.getActiveElement();
55
- console.log(await $(activeElement).getTagName()); // outputs active element
56
- });
57
-
58
- it('should use Androids DataMatcher or ViewMatcher selector', async () => {
59
- const menuItem = await $({
60
- "name": "hasEntry",
61
- "args": ["title", "ViewTitle"],
62
- "class": "androidx.test.espresso.matcher.ViewMatchers"
63
- });
64
- await menuItem.click();
65
-
66
- const menuItem = await $({
67
- "name": "hasEntry",
68
- "args": ["title", "ViewTitle"]
69
- });
70
- await menuItem.click();
71
- });
72
- * </example>
73
- *
74
- * @alias $
75
- * @param {String|Function|Matcher} selector selector, JS Function, or Matcher object to fetch a certain element
76
- * @return {Element}
77
- * @type utility
78
- *
79
- */
80
- async function $(selector) {
81
- /**
82
- * convert protocol result into WebdriverIO element
83
- * e.g. when element was fetched with `getActiveElement`
84
- */
85
- if (typeof selector === 'object' && typeof selector[constants_1.ELEMENT_KEY] === 'string') {
86
- return getElementObject_1.getElement.call(this, undefined, selector);
87
- }
88
- const res = await utils_1.findElement.call(this, selector);
89
- return getElementObject_1.getElement.call(this, selector, res);
90
- }
91
- exports.default = $;
@@ -1,37 +0,0 @@
1
- /**
2
- * The browser method `addCommand` helps you to write your own set of commands. You can write your command in a synchronous way or in an asynchronous way.
3
- *
4
- * :::info
5
- *
6
- * You can find more information on adding custom commands in the [custom command](/docs/customcommands#adding-custom-commands) guide.
7
- *
8
- * :::
9
- *
10
- * <example>
11
- :execute.js
12
- await browser.addCommand('getUrlAndTitle', async function (customParam) {
13
- // `this` refers to the `browser` scope
14
- return {
15
- url: await this.getUrl(),
16
- title: await this.getTitle(),
17
- customParam: customParam
18
- }
19
- })
20
- //usage
21
- it('should use my add command', async () => {
22
- await browser.url('https://webdriver.io')
23
- const result = await browser.getUrlAndTitle('foobar')
24
-
25
- assert.strictEqual(result.url, 'https://webdriver.io')
26
- assert.strictEqual(result.title, 'WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO')
27
- assert.strictEqual(result.customParam, 'foobar')
28
- })
29
- * </example>
30
- * @alias browser.addCommand
31
- * @param {String} name name of the custom command
32
- * @param {Function} callback function to be called
33
- * @param {Boolean=} elementScope extend the Element object instead of the Browser object
34
- * @type utility
35
- *
36
- */
37
- //# sourceMappingURL=addCommand.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/addCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * The browser method `addCommand` helps you to write your own set of commands. You can write your command in a synchronous way or in an asynchronous way.
4
- *
5
- * :::info
6
- *
7
- * You can find more information on adding custom commands in the [custom command](/docs/customcommands#adding-custom-commands) guide.
8
- *
9
- * :::
10
- *
11
- * <example>
12
- :execute.js
13
- await browser.addCommand('getUrlAndTitle', async function (customParam) {
14
- // `this` refers to the `browser` scope
15
- return {
16
- url: await this.getUrl(),
17
- title: await this.getTitle(),
18
- customParam: customParam
19
- }
20
- })
21
- //usage
22
- it('should use my add command', async () => {
23
- await browser.url('https://webdriver.io')
24
- const result = await browser.getUrlAndTitle('foobar')
25
-
26
- assert.strictEqual(result.url, 'https://webdriver.io')
27
- assert.strictEqual(result.title, 'WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO')
28
- assert.strictEqual(result.customParam, 'foobar')
29
- })
30
- * </example>
31
- * @alias browser.addCommand
32
- * @param {String} name name of the custom command
33
- * @param {Function} callback function to be called
34
- * @param {Boolean=} elementScope extend the Element object instead of the Browser object
35
- * @type utility
36
- *
37
- */
@@ -1,42 +0,0 @@
1
- /**
2
- * You can use `call` to execute any async action within your test spec. The command itself
3
- * is treated like a synchronous function. It accepts promises and stops the execution until
4
- * the promise has resolved.
5
- *
6
- * This command helps to run asynchronous code within a synchronous context. With
7
- * WebdriverIO depcrecating synchronous usage (see [RFC](https://github.com/webdriverio/webdriverio/discussions/6702))
8
- * this command is not very useful anymore.
9
- *
10
- * <example>
11
- :call.js
12
- it('some testing here', async () => {
13
- await browser.url('http://google.com')
14
- // make an asynchronous call using any 3rd party library supporting promises
15
- // e.g. call to backend or db to inject fixture data
16
- await browser.call(() => {
17
- return somePromiseLibrary.someMethod().then(() => {
18
- // ...
19
- })
20
- })
21
-
22
- // example for async call to 3rd party library that doesn't support promises
23
- const result = await browser.call(() => {
24
- return new Promise((resolve, reject) => {
25
- someOtherNodeLibrary.someMethod(param1, (err, res) => {
26
- if (err) {
27
- return reject(err)
28
- }
29
- resolve(res)
30
- })
31
- })
32
- })
33
- });
34
- * </example>
35
- *
36
- * @alias browser.call
37
- * @param {Function} callback function to be called
38
- * @type utility
39
- *
40
- */
41
- export default function call<T>(fn: () => T): T | Promise<T>;
42
- //# sourceMappingURL=call.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/call.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,CAAC,EAAG,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAM5D"}
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * You can use `call` to execute any async action within your test spec. The command itself
5
- * is treated like a synchronous function. It accepts promises and stops the execution until
6
- * the promise has resolved.
7
- *
8
- * This command helps to run asynchronous code within a synchronous context. With
9
- * WebdriverIO depcrecating synchronous usage (see [RFC](https://github.com/webdriverio/webdriverio/discussions/6702))
10
- * this command is not very useful anymore.
11
- *
12
- * <example>
13
- :call.js
14
- it('some testing here', async () => {
15
- await browser.url('http://google.com')
16
- // make an asynchronous call using any 3rd party library supporting promises
17
- // e.g. call to backend or db to inject fixture data
18
- await browser.call(() => {
19
- return somePromiseLibrary.someMethod().then(() => {
20
- // ...
21
- })
22
- })
23
-
24
- // example for async call to 3rd party library that doesn't support promises
25
- const result = await browser.call(() => {
26
- return new Promise((resolve, reject) => {
27
- someOtherNodeLibrary.someMethod(param1, (err, res) => {
28
- if (err) {
29
- return reject(err)
30
- }
31
- resolve(res)
32
- })
33
- })
34
- })
35
- });
36
- * </example>
37
- *
38
- * @alias browser.call
39
- * @param {Function} callback function to be called
40
- * @type utility
41
- *
42
- */
43
- function call(fn) {
44
- if (typeof fn === 'function') {
45
- return fn();
46
- }
47
- throw new Error('Command argument for "call" needs to be a function');
48
- }
49
- exports.default = call;
@@ -1,26 +0,0 @@
1
- import type { ElementArray } from '../../types';
2
- /**
3
- *
4
- * The `customs$$` allows you to use a custom strategy declared by using `browser.addLocatorStrategy`
5
- *
6
- * <example>
7
- :example.js
8
- it('should get all the plugin wrapper buttons', async () => {
9
- await browser.url('https://webdriver.io')
10
- await browser.addLocatorStrategy('myStrat', (selector) => {
11
- return document.querySelectorAll(selector)
12
- })
13
-
14
- const pluginWrapper = await browser.custom$$('myStrat', '.pluginWrapper')
15
-
16
- console.log(await pluginWrapper.length) // 4
17
- })
18
- * </example>
19
- *
20
- * @alias custom$$
21
- * @param {String} strategyName
22
- * @param {Any} strategyArguments
23
- * @return {ElementArray}
24
- */
25
- export default function custom$$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<ElementArray>;
26
- //# sourceMappingURL=custom$$.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$$.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;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,CAyBvB"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("../../utils");
4
- const getElementObject_1 = require("../../utils/getElementObject");
5
- const constants_1 = require("../../constants");
6
- /**
7
- *
8
- * The `customs$$` allows you to use a custom strategy declared by using `browser.addLocatorStrategy`
9
- *
10
- * <example>
11
- :example.js
12
- it('should get all the plugin wrapper buttons', async () => {
13
- await browser.url('https://webdriver.io')
14
- await browser.addLocatorStrategy('myStrat', (selector) => {
15
- return document.querySelectorAll(selector)
16
- })
17
-
18
- const pluginWrapper = await browser.custom$$('myStrat', '.pluginWrapper')
19
-
20
- console.log(await pluginWrapper.length) // 4
21
- })
22
- * </example>
23
- *
24
- * @alias custom$$
25
- * @param {String} strategyName
26
- * @param {Any} strategyArguments
27
- * @return {ElementArray}
28
- */
29
- async function custom$$(strategyName, ...strategyArguments) {
30
- const strategy = this.strategies.get(strategyName);
31
- if (!strategy) {
32
- throw Error('No strategy found for ' + strategyName);
33
- }
34
- let res = await this.execute(strategy, ...strategyArguments);
35
- /**
36
- * if the user's script return just one element
37
- * then we convert it to an array as this method
38
- * should return multiple elements
39
- */
40
- if (!Array.isArray(res)) {
41
- res = [res];
42
- }
43
- res = res.filter(el => !!el && typeof el[constants_1.ELEMENT_KEY] === 'string');
44
- const elements = res.length ? await getElementObject_1.getElements.call(this, strategy, res) : [];
45
- return (0, utils_1.enhanceElementsArray)(elements, this, strategy, 'custom$$', [strategyArguments]);
46
- }
47
- exports.default = custom$$;
@@ -1,25 +0,0 @@
1
- /**
2
- *
3
- * The `custom$` allows you to use a custom strategy declared by using `browser.addLocatorStrategy`
4
- *
5
- * <example>
6
- :example.js
7
- it('should fetch the project title', async () => {
8
- await browser.url('https://webdriver.io')
9
- await browser.addLocatorStrategy('myStrat', (selector) => {
10
- return document.querySelectorAll(selector)
11
- })
12
-
13
- const projectTitle = await browser.custom$('myStrat', '.projectTitle')
14
-
15
- console.log(await projectTitle.getText()) // WEBDRIVER I/O
16
- })
17
- * </example>
18
- *
19
- * @alias custom$
20
- * @param {String} strategyName
21
- * @param {Any} strategyArguments
22
- * @return {Element}
23
- */
24
- export default function custom$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
25
- //# sourceMappingURL=custom$.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,gCA2B9B"}