codeceptjs 3.5.8 → 3.5.9-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/README.md +1 -1
  2. package/docs/build/Appium.js +18 -18
  3. package/docs/build/Nightmare.js +51 -52
  4. package/docs/build/Playwright.js +74 -75
  5. package/docs/build/Protractor.js +64 -65
  6. package/docs/build/Puppeteer.js +74 -75
  7. package/docs/build/TestCafe.js +54 -55
  8. package/docs/build/WebDriver.js +79 -80
  9. package/docs/changelog.md +1 -571
  10. package/docs/community-helpers.md +4 -8
  11. package/docs/examples.md +2 -8
  12. package/docs/helpers/Appium.md +18 -18
  13. package/docs/helpers/Nightmare.md +75 -77
  14. package/docs/helpers/Playwright.md +175 -177
  15. package/docs/helpers/Protractor.md +153 -155
  16. package/docs/helpers/Puppeteer.md +146 -148
  17. package/docs/helpers/TestCafe.md +124 -126
  18. package/docs/helpers/WebDriver.md +155 -157
  19. package/docs/webapi/amOnPage.mustache +1 -1
  20. package/docs/webapi/appendField.mustache +1 -1
  21. package/docs/webapi/attachFile.mustache +1 -1
  22. package/docs/webapi/blur.mustache +1 -1
  23. package/docs/webapi/checkOption.mustache +1 -1
  24. package/docs/webapi/clearCookie.mustache +1 -2
  25. package/docs/webapi/clearField.mustache +1 -1
  26. package/docs/webapi/click.mustache +1 -1
  27. package/docs/webapi/clickLink.mustache +1 -1
  28. package/docs/webapi/closeCurrentTab.mustache +1 -1
  29. package/docs/webapi/closeOtherTabs.mustache +1 -1
  30. package/docs/webapi/dontSee.mustache +1 -1
  31. package/docs/webapi/dontSeeCheckboxIsChecked.mustache +1 -1
  32. package/docs/webapi/dontSeeCookie.mustache +1 -1
  33. package/docs/webapi/dontSeeCurrentUrlEquals.mustache +1 -1
  34. package/docs/webapi/dontSeeElement.mustache +1 -1
  35. package/docs/webapi/dontSeeElementInDOM.mustache +1 -1
  36. package/docs/webapi/dontSeeInCurrentUrl.mustache +1 -1
  37. package/docs/webapi/dontSeeInField.mustache +1 -1
  38. package/docs/webapi/dontSeeInSource.mustache +1 -1
  39. package/docs/webapi/dontSeeInTitle.mustache +1 -1
  40. package/docs/webapi/doubleClick.mustache +1 -1
  41. package/docs/webapi/downloadFile.mustache +1 -1
  42. package/docs/webapi/dragAndDrop.mustache +1 -1
  43. package/docs/webapi/dragSlider.mustache +1 -1
  44. package/docs/webapi/fillField.mustache +1 -1
  45. package/docs/webapi/focus.mustache +1 -1
  46. package/docs/webapi/forceClick.mustache +1 -1
  47. package/docs/webapi/forceRightClick.mustache +1 -1
  48. package/docs/webapi/grabDataFromPerformanceTiming.mustache +1 -1
  49. package/docs/webapi/moveCursorTo.mustache +1 -1
  50. package/docs/webapi/openNewTab.mustache +1 -1
  51. package/docs/webapi/pressKey.mustache +1 -1
  52. package/docs/webapi/pressKeyDown.mustache +1 -1
  53. package/docs/webapi/pressKeyUp.mustache +1 -1
  54. package/docs/webapi/pressKeyWithKeyNormalization.mustache +1 -1
  55. package/docs/webapi/refreshPage.mustache +1 -1
  56. package/docs/webapi/resizeWindow.mustache +1 -1
  57. package/docs/webapi/rightClick.mustache +1 -1
  58. package/docs/webapi/saveElementScreenshot.mustache +1 -1
  59. package/docs/webapi/saveScreenshot.mustache +1 -1
  60. package/docs/webapi/say.mustache +1 -1
  61. package/docs/webapi/scrollIntoView.mustache +1 -1
  62. package/docs/webapi/scrollPageToBottom.mustache +1 -1
  63. package/docs/webapi/scrollPageToTop.mustache +1 -1
  64. package/docs/webapi/scrollTo.mustache +1 -1
  65. package/docs/webapi/see.mustache +1 -1
  66. package/docs/webapi/seeAttributesOnElements.mustache +1 -1
  67. package/docs/webapi/seeCheckboxIsChecked.mustache +1 -1
  68. package/docs/webapi/seeCookie.mustache +1 -1
  69. package/docs/webapi/seeCssPropertiesOnElements.mustache +1 -1
  70. package/docs/webapi/seeCurrentUrlEquals.mustache +1 -1
  71. package/docs/webapi/seeElement.mustache +1 -1
  72. package/docs/webapi/seeElementInDOM.mustache +1 -1
  73. package/docs/webapi/seeInCurrentUrl.mustache +1 -1
  74. package/docs/webapi/seeInField.mustache +1 -1
  75. package/docs/webapi/seeInPopup.mustache +1 -1
  76. package/docs/webapi/seeInSource.mustache +1 -1
  77. package/docs/webapi/seeInTitle.mustache +1 -1
  78. package/docs/webapi/seeNumberOfElements.mustache +1 -1
  79. package/docs/webapi/seeNumberOfVisibleElements.mustache +1 -1
  80. package/docs/webapi/seeTextEquals.mustache +1 -1
  81. package/docs/webapi/seeTitleEquals.mustache +1 -1
  82. package/docs/webapi/selectOption.mustache +1 -1
  83. package/docs/webapi/setCookie.mustache +1 -1
  84. package/docs/webapi/setGeoLocation.mustache +1 -1
  85. package/docs/webapi/switchTo.mustache +1 -1
  86. package/docs/webapi/switchToNextTab.mustache +1 -1
  87. package/docs/webapi/switchToPreviousTab.mustache +1 -1
  88. package/docs/webapi/type.mustache +1 -1
  89. package/docs/webapi/uncheckOption.mustache +1 -1
  90. package/docs/webapi/wait.mustache +1 -1
  91. package/docs/webapi/waitForClickable.mustache +1 -1
  92. package/docs/webapi/waitForDetached.mustache +1 -1
  93. package/docs/webapi/waitForElement.mustache +1 -1
  94. package/docs/webapi/waitForEnabled.mustache +1 -1
  95. package/docs/webapi/waitForFunction.mustache +1 -1
  96. package/docs/webapi/waitForInvisible.mustache +1 -1
  97. package/docs/webapi/waitForText.mustache +1 -1
  98. package/docs/webapi/waitForValue.mustache +1 -1
  99. package/docs/webapi/waitForVisible.mustache +1 -1
  100. package/docs/webapi/waitInUrl.mustache +1 -1
  101. package/docs/webapi/waitNumberOfVisibleElements.mustache +1 -1
  102. package/docs/webapi/waitToHide.mustache +1 -1
  103. package/docs/webapi/waitUrlEquals.mustache +1 -1
  104. package/lib/helper/Playwright.js +2 -2
  105. package/package.json +1 -1
  106. package/typings/promiseBasedTypes.d.ts +418 -1007
  107. package/typings/types.d.ts +418 -424
@@ -334,7 +334,7 @@ class TestCafe extends Helper {
334
334
  * ```
335
335
  *
336
336
  * @param {string} url url path or global url.
337
- * @returns {Promise<void>} automatically synchronized promise through #recorder
337
+ * @returns {void} automatically synchronized promise through #recorder
338
338
  *
339
339
  */
340
340
  async amOnPage(url) {
@@ -352,7 +352,7 @@ class TestCafe extends Helper {
352
352
  *
353
353
  * @param {number} width width in pixels or `maximize`.
354
354
  * @param {number} height height in pixels.
355
- * @returns {Promise<void>} automatically synchronized promise through #recorder
355
+ * @returns {void} automatically synchronized promise through #recorder
356
356
  *
357
357
  */
358
358
  async resizeWindow(width, height) {
@@ -376,7 +376,7 @@ class TestCafe extends Helper {
376
376
  *
377
377
  * @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
378
378
  * @param {any} [options] Playwright only: [Additional options](https://playwright.dev/docs/api/class-locator#locator-focus) for available options object as 2nd argument.
379
- * @returns {Promise<void>} automatically synchronized promise through #recorder
379
+ * @returns {void} automatically synchronized promise through #recorder
380
380
  *
381
381
  *
382
382
  */
@@ -408,7 +408,7 @@ class TestCafe extends Helper {
408
408
  *
409
409
  * @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
410
410
  * @param {any} [options] Playwright only: [Additional options](https://playwright.dev/docs/api/class-locator#locator-blur) for available options object as 2nd argument.
411
- * @returns {Promise<void>} automatically synchronized promise through #recorder
411
+ * @returns {void} automatically synchronized promise through #recorder
412
412
  *
413
413
  *
414
414
  */
@@ -447,7 +447,7 @@ class TestCafe extends Helper {
447
447
  *
448
448
  * @param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
449
449
  * @param {?CodeceptJS.LocatorOrString | null} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
450
- * @returns {Promise<void>} automatically synchronized promise through #recorder
450
+ * @returns {void} automatically synchronized promise through #recorder
451
451
  *
452
452
  *
453
453
  */
@@ -461,7 +461,7 @@ class TestCafe extends Helper {
461
461
  * ```js
462
462
  * I.refreshPage();
463
463
  * ```
464
- * @returns {Promise<void>} automatically synchronized promise through #recorder
464
+ * @returns {void} automatically synchronized promise through #recorder
465
465
  *
466
466
  */
467
467
  async refreshPage() {
@@ -479,7 +479,7 @@ class TestCafe extends Helper {
479
479
  *
480
480
  * @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
481
481
  * @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
482
- * @returns {Promise<void>} automatically synchronized promise through #recorder
482
+ * @returns {void} automatically synchronized promise through #recorder
483
483
  *
484
484
  *
485
485
  */
@@ -507,7 +507,7 @@ class TestCafe extends Helper {
507
507
  * ```
508
508
  * @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
509
509
  * @param {CodeceptJS.StringOrSecret} value text value to fill.
510
- * @returns {Promise<void>} automatically synchronized promise through #recorder
510
+ * @returns {void} automatically synchronized promise through #recorder
511
511
  *
512
512
  */
513
513
  async fillField(field, value) {
@@ -528,7 +528,7 @@ class TestCafe extends Helper {
528
528
  * I.clearField('#email');
529
529
  * ```
530
530
  * @param {LocatorOrString} editable field located by label|name|CSS|XPath|strict locator.
531
- * @returns {Promise<void>} automatically synchronized promise through #recorder.
531
+ * @returns {void} automatically synchronized promise through #recorder.
532
532
  *
533
533
  */
534
534
  async clearField(field) {
@@ -553,7 +553,7 @@ class TestCafe extends Helper {
553
553
  * ```
554
554
  * @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator
555
555
  * @param {string} value text value to append.
556
- * @returns {Promise<void>} automatically synchronized promise through #recorder
556
+ * @returns {void} automatically synchronized promise through #recorder
557
557
  *
558
558
  *
559
559
  */
@@ -579,7 +579,7 @@ class TestCafe extends Helper {
579
579
  *
580
580
  * @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
581
581
  * @param {string} pathToFile local file path relative to codecept.conf.ts or codecept.conf.js config file.
582
- * @returns {Promise<void>} automatically synchronized promise through #recorder
582
+ * @returns {void} automatically synchronized promise through #recorder
583
583
  *
584
584
  *
585
585
  */
@@ -606,7 +606,7 @@ class TestCafe extends Helper {
606
606
  * ```
607
607
  *
608
608
  * @param {string|string[]} key key or array of keys to press.
609
- * @returns {Promise<void>} automatically synchronized promise through #recorder
609
+ * @returns {void} automatically synchronized promise through #recorder
610
610
  *
611
611
  *
612
612
  * {{ keys }}
@@ -631,7 +631,7 @@ class TestCafe extends Helper {
631
631
  * @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
632
632
  * @param {number} [offsetX=0] (optional, `0` by default) X-axis offset.
633
633
  * @param {number} [offsetY=0] (optional, `0` by default) Y-axis offset.
634
- * @returns {Promise<void>} automatically synchronized promise through #recorder
634
+ * @returns {void} automatically synchronized promise through #recorder
635
635
  *
636
636
  *
637
637
  */
@@ -657,7 +657,7 @@ class TestCafe extends Helper {
657
657
  *
658
658
  * @param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
659
659
  * @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
660
- * @returns {Promise<void>} automatically synchronized promise through #recorder
660
+ * @returns {void} automatically synchronized promise through #recorder
661
661
  *
662
662
  *
663
663
  */
@@ -689,7 +689,7 @@ class TestCafe extends Helper {
689
689
  *
690
690
  * @param {CodeceptJS.LocatorOrString} locator clickable element located by CSS|XPath|strict locator.
691
691
  * @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS|XPath|strict locator.
692
- * @returns {Promise<void>} automatically synchronized promise through #recorder
692
+ * @returns {void} automatically synchronized promise through #recorder
693
693
  *
694
694
  *
695
695
  */
@@ -720,7 +720,7 @@ class TestCafe extends Helper {
720
720
  * ```
721
721
  * @param {CodeceptJS.LocatorOrString} field checkbox located by label | name | CSS | XPath | strict locator.
722
722
  * @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
723
- * @returns {Promise<void>} automatically synchronized promise through #recorder
723
+ * @returns {void} automatically synchronized promise through #recorder
724
724
  *
725
725
  */
726
726
  async checkOption(field, context = null) {
@@ -744,7 +744,7 @@ class TestCafe extends Helper {
744
744
  * ```
745
745
  * @param {CodeceptJS.LocatorOrString} field checkbox located by label | name | CSS | XPath | strict locator.
746
746
  * @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
747
- * @returns {Promise<void>} automatically synchronized promise through #recorder
747
+ * @returns {void} automatically synchronized promise through #recorder
748
748
  *
749
749
  */
750
750
  async uncheckOption(field, context = null) {
@@ -767,7 +767,7 @@ class TestCafe extends Helper {
767
767
  * ```
768
768
  *
769
769
  * @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
770
- * @returns {Promise<void>} automatically synchronized promise through #recorder
770
+ * @returns {void} automatically synchronized promise through #recorder
771
771
  *
772
772
  */
773
773
  async seeCheckboxIsChecked(field) {
@@ -784,7 +784,7 @@ class TestCafe extends Helper {
784
784
  * ```
785
785
  *
786
786
  * @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
787
- * @returns {Promise<void>} automatically synchronized promise through #recorder
787
+ * @returns {void} automatically synchronized promise through #recorder
788
788
  *
789
789
  */
790
790
  async dontSeeCheckboxIsChecked(field) {
@@ -812,7 +812,7 @@ class TestCafe extends Helper {
812
812
  * ```
813
813
  * @param {LocatorOrString} select field located by label|name|CSS|XPath|strict locator.
814
814
  * @param {string|Array<*>} option visible text or value of option.
815
- * @returns {Promise<void>} automatically synchronized promise through #recorder
815
+ * @returns {void} automatically synchronized promise through #recorder
816
816
  *
817
817
  */
818
818
  async selectOption(select, option) {
@@ -865,7 +865,7 @@ class TestCafe extends Helper {
865
865
  * ```
866
866
  *
867
867
  * @param {string} url a fragment to check
868
- * @returns {Promise<void>} automatically synchronized promise through #recorder
868
+ * @returns {void} automatically synchronized promise through #recorder
869
869
  *
870
870
  */
871
871
  async seeInCurrentUrl(url) {
@@ -876,7 +876,7 @@ class TestCafe extends Helper {
876
876
  * Checks that current url does not contain a provided fragment.
877
877
  *
878
878
  * @param {string} url value to check.
879
- * @returns {Promise<void>} automatically synchronized promise through #recorder
879
+ * @returns {void} automatically synchronized promise through #recorder
880
880
  *
881
881
  */
882
882
  async dontSeeInCurrentUrl(url) {
@@ -894,7 +894,7 @@ class TestCafe extends Helper {
894
894
  * ```
895
895
  *
896
896
  * @param {string} url value to check.
897
- * @returns {Promise<void>} automatically synchronized promise through #recorder
897
+ * @returns {void} automatically synchronized promise through #recorder
898
898
  *
899
899
  */
900
900
  async seeCurrentUrlEquals(url) {
@@ -911,7 +911,7 @@ class TestCafe extends Helper {
911
911
  * ```
912
912
  *
913
913
  * @param {string} url value to check.
914
- * @returns {Promise<void>} automatically synchronized promise through #recorder
914
+ * @returns {void} automatically synchronized promise through #recorder
915
915
  *
916
916
  */
917
917
  async dontSeeCurrentUrlEquals(url) {
@@ -929,7 +929,7 @@ class TestCafe extends Helper {
929
929
  * ```
930
930
  * @param {string} text expected on page.
931
931
  * @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS|Xpath|strict locator in which to search for text.
932
- * @returns {Promise<void>} automatically synchronized promise through #recorder
932
+ * @returns {void} automatically synchronized promise through #recorder
933
933
  *
934
934
  *
935
935
  */
@@ -957,7 +957,7 @@ class TestCafe extends Helper {
957
957
  *
958
958
  * @param {string} text which is not present.
959
959
  * @param {CodeceptJS.LocatorOrString} [context] (optional) element located by CSS|XPath|strict locator in which to perfrom search.
960
- * @returns {Promise<void>} automatically synchronized promise through #recorder
960
+ * @returns {void} automatically synchronized promise through #recorder
961
961
  *
962
962
  *
963
963
  */
@@ -982,7 +982,7 @@ class TestCafe extends Helper {
982
982
  * I.seeElement('#modal');
983
983
  * ```
984
984
  * @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
985
- * @returns {Promise<void>} automatically synchronized promise through #recorder
985
+ * @returns {void} automatically synchronized promise through #recorder
986
986
  *
987
987
  */
988
988
  async seeElement(locator) {
@@ -1000,7 +1000,7 @@ class TestCafe extends Helper {
1000
1000
  * ```
1001
1001
  *
1002
1002
  * @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|Strict locator.
1003
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1003
+ * @returns {void} automatically synchronized promise through #recorder
1004
1004
  *
1005
1005
  */
1006
1006
  async dontSeeElement(locator) {
@@ -1018,7 +1018,7 @@ class TestCafe extends Helper {
1018
1018
  * I.seeElementInDOM('#modal');
1019
1019
  * ```
1020
1020
  * @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
1021
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1021
+ * @returns {void} automatically synchronized promise through #recorder
1022
1022
  *
1023
1023
  */
1024
1024
  async seeElementInDOM(locator) {
@@ -1036,7 +1036,7 @@ class TestCafe extends Helper {
1036
1036
  * ```
1037
1037
  *
1038
1038
  * @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|Strict locator.
1039
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1039
+ * @returns {void} automatically synchronized promise through #recorder
1040
1040
  *
1041
1041
  */
1042
1042
  async dontSeeElementInDOM(locator) {
@@ -1056,7 +1056,7 @@ class TestCafe extends Helper {
1056
1056
  *
1057
1057
  * @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
1058
1058
  * @param {number} num number of elements.
1059
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1059
+ * @returns {void} automatically synchronized promise through #recorder
1060
1060
  *
1061
1061
  *
1062
1062
  */
@@ -1095,7 +1095,7 @@ class TestCafe extends Helper {
1095
1095
  * ```
1096
1096
  * @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
1097
1097
  * @param {CodeceptJS.StringOrSecret} value value to check.
1098
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1098
+ * @returns {void} automatically synchronized promise through #recorder
1099
1099
  *
1100
1100
  */
1101
1101
  async seeInField(field, value) {
@@ -1121,7 +1121,7 @@ class TestCafe extends Helper {
1121
1121
  *
1122
1122
  * @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
1123
1123
  * @param {CodeceptJS.StringOrSecret} value value to check.
1124
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1124
+ * @returns {void} automatically synchronized promise through #recorder
1125
1125
  *
1126
1126
  */
1127
1127
  async dontSeeInField(field, value) {
@@ -1157,7 +1157,7 @@ class TestCafe extends Helper {
1157
1157
  * I.seeInSource('<h1>Green eggs &amp; ham</h1>');
1158
1158
  * ```
1159
1159
  * @param {string} text value to check.
1160
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1160
+ * @returns {void} automatically synchronized promise through #recorder
1161
1161
  *
1162
1162
  */
1163
1163
  async seeInSource(text) {
@@ -1173,7 +1173,7 @@ class TestCafe extends Helper {
1173
1173
  * ```
1174
1174
  *
1175
1175
  * @param {string} value to check.
1176
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1176
+ * @returns {void} automatically synchronized promise through #recorder
1177
1177
  *
1178
1178
  */
1179
1179
  async dontSeeInSource(text) {
@@ -1191,7 +1191,7 @@ class TestCafe extends Helper {
1191
1191
  *
1192
1192
  * @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
1193
1193
  * @param {string} fileName file name to save.
1194
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1194
+ * @returns {void} automatically synchronized promise through #recorder
1195
1195
  *
1196
1196
  *
1197
1197
  */
@@ -1218,7 +1218,7 @@ class TestCafe extends Helper {
1218
1218
  *
1219
1219
  * @param {string} fileName file name to save.
1220
1220
  * @param {boolean} [fullPage=false] (optional, `false` by default) flag to enable fullscreen screenshot mode.
1221
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1221
+ * @returns {void} automatically synchronized promise through #recorder
1222
1222
  *
1223
1223
  */
1224
1224
  // TODO Implement full page screenshots
@@ -1238,7 +1238,7 @@ class TestCafe extends Helper {
1238
1238
  * ```
1239
1239
  *
1240
1240
  * @param {number} sec number of second to wait.
1241
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1241
+ * @returns {void} automatically synchronized promise through #recorder
1242
1242
  *
1243
1243
  */
1244
1244
  async wait(sec) {
@@ -1486,7 +1486,7 @@ class TestCafe extends Helper {
1486
1486
  * ```js
1487
1487
  * I.scrollPageToTop();
1488
1488
  * ```
1489
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1489
+ * @returns {void} automatically synchronized promise through #recorder
1490
1490
  *
1491
1491
  */
1492
1492
  scrollPageToTop() {
@@ -1499,7 +1499,7 @@ class TestCafe extends Helper {
1499
1499
  * ```js
1500
1500
  * I.scrollPageToBottom();
1501
1501
  * ```
1502
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1502
+ * @returns {void} automatically synchronized promise through #recorder
1503
1503
  *
1504
1504
  */
1505
1505
  scrollPageToBottom() {
@@ -1528,7 +1528,7 @@ class TestCafe extends Helper {
1528
1528
  * @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
1529
1529
  * @param {number} [offsetX=0] (optional, `0` by default) X-axis offset.
1530
1530
  * @param {number} [offsetY=0] (optional, `0` by default) Y-axis offset.
1531
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1531
+ * @returns {void} automatically synchronized promise through #recorder
1532
1532
  *
1533
1533
  */
1534
1534
  async scrollTo(locator, offsetX = 0, offsetY = 0) {
@@ -1568,7 +1568,7 @@ class TestCafe extends Helper {
1568
1568
  * ```
1569
1569
  *
1570
1570
  * @param {?CodeceptJS.LocatorOrString} [locator=null] (optional, `null` by default) element located by CSS|XPath|strict locator.
1571
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1571
+ * @returns {void} automatically synchronized promise through #recorder
1572
1572
  *
1573
1573
  */
1574
1574
  async switchTo(locator) {
@@ -1602,7 +1602,7 @@ class TestCafe extends Helper {
1602
1602
  * ```
1603
1603
  *
1604
1604
  * @param {Cookie|Array<Cookie>} cookie a cookie object or array of cookie objects.
1605
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1605
+ * @returns {void} automatically synchronized promise through #recorder
1606
1606
  *
1607
1607
  */
1608
1608
  async setCookie(cookie) {
@@ -1628,7 +1628,7 @@ class TestCafe extends Helper {
1628
1628
  * ```
1629
1629
  *
1630
1630
  * @param {string} name cookie name.
1631
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1631
+ * @returns {void} automatically synchronized promise through #recorder
1632
1632
  *
1633
1633
  *
1634
1634
  */
@@ -1645,7 +1645,7 @@ class TestCafe extends Helper {
1645
1645
  * ```
1646
1646
  *
1647
1647
  * @param {string} name cookie name.
1648
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1648
+ * @returns {void} automatically synchronized promise through #recorder
1649
1649
  *
1650
1650
  */
1651
1651
  async dontSeeCookie(name) {
@@ -1692,11 +1692,10 @@ class TestCafe extends Helper {
1692
1692
  *
1693
1693
  * ```js
1694
1694
  * I.clearCookie();
1695
- * I.clearCookie('test');
1695
+ * I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
1696
1696
  * ```
1697
1697
  *
1698
1698
  * @param {?string} [cookie=null] (optional, `null` by default) cookie name
1699
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1700
1699
  *
1701
1700
  */
1702
1701
  async clearCookie(cookieName) {
@@ -1725,7 +1724,7 @@ class TestCafe extends Helper {
1725
1724
  *
1726
1725
  * @param {string} urlPart value to check.
1727
1726
  * @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
1728
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1727
+ * @returns {void} automatically synchronized promise through #recorder
1729
1728
  *
1730
1729
  */
1731
1730
  async waitInUrl(urlPart, sec = null) {
@@ -1752,7 +1751,7 @@ class TestCafe extends Helper {
1752
1751
  *
1753
1752
  * @param {string} urlPart value to check.
1754
1753
  * @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
1755
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1754
+ * @returns {void} automatically synchronized promise through #recorder
1756
1755
  *
1757
1756
  */
1758
1757
  async waitUrlEquals(urlPart, sec = null) {
@@ -1791,7 +1790,7 @@ class TestCafe extends Helper {
1791
1790
  * @param {string|function} fn to be executed in browser context.
1792
1791
  * @param {any[]|number} [argsOrSec] (optional, `1` by default) arguments for function or seconds.
1793
1792
  * @param {number} [sec] (optional, `1` by default) time in seconds to wait
1794
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1793
+ * @returns {void} automatically synchronized promise through #recorder
1795
1794
  *
1796
1795
  */
1797
1796
  async waitForFunction(fn, argsOrSec = null, sec = null) {
@@ -1820,7 +1819,7 @@ class TestCafe extends Helper {
1820
1819
  * @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
1821
1820
  * @param {number} num number of elements.
1822
1821
  * @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
1823
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1822
+ * @returns {void} automatically synchronized promise through #recorder
1824
1823
  *
1825
1824
  */
1826
1825
  async waitNumberOfVisibleElements(locator, num, sec) {
@@ -1843,7 +1842,7 @@ class TestCafe extends Helper {
1843
1842
  *
1844
1843
  * @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
1845
1844
  * @param {number} [sec] (optional, `1` by default) time in seconds to wait
1846
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1845
+ * @returns {void} automatically synchronized promise through #recorder
1847
1846
  *
1848
1847
  */
1849
1848
  async waitForElement(locator, sec) {
@@ -1864,7 +1863,7 @@ class TestCafe extends Helper {
1864
1863
  *
1865
1864
  * @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
1866
1865
  * @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
1867
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1866
+ * @returns {void} automatically synchronized promise through #recorder
1868
1867
  *
1869
1868
  */
1870
1869
  async waitToHide(locator, sec) {
@@ -1885,7 +1884,7 @@ class TestCafe extends Helper {
1885
1884
  *
1886
1885
  * @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
1887
1886
  * @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
1888
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1887
+ * @returns {void} automatically synchronized promise through #recorder
1889
1888
  *
1890
1889
  */
1891
1890
  async waitForInvisible(locator, sec) {
@@ -1909,7 +1908,7 @@ class TestCafe extends Helper {
1909
1908
  * @param {string }text to wait for.
1910
1909
  * @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
1911
1910
  * @param {CodeceptJS.LocatorOrString} [context] (optional) element located by CSS|XPath|strict locator.
1912
- * @returns {Promise<void>} automatically synchronized promise through #recorder
1911
+ * @returns {void} automatically synchronized promise through #recorder
1913
1912
  *
1914
1913
  *
1915
1914
  */