codeceptjs 3.5.11 → 3.5.12-beta.2
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.
- package/README.md +3 -3
- package/docs/build/Appium.js +35 -35
- package/docs/build/Nightmare.js +50 -50
- package/docs/build/Playwright.js +100 -72
- package/docs/build/Protractor.js +59 -59
- package/docs/build/Puppeteer.js +96 -69
- package/docs/build/TestCafe.js +48 -48
- package/docs/build/WebDriver.js +223 -105
- package/docs/helpers/Playwright.md +15 -0
- package/docs/helpers/Puppeteer.md +15 -0
- package/docs/helpers/WebDriver.md +340 -266
- package/docs/locators.md +9 -1
- package/docs/webapi/waitForNumberOfTabs.mustache +9 -0
- package/docs/webdriver.md +52 -6
- package/lib/command/run-multiple.js +3 -1
- package/lib/command/run-workers.js +32 -1
- package/lib/command/workers/runTests.js +2 -2
- package/lib/css2xpath/js/css_to_xpath.js +20 -0
- package/lib/css2xpath/js/expression.js +23 -0
- package/lib/css2xpath/js/renderer.js +239 -0
- package/lib/helper/Playwright.js +21 -2
- package/lib/helper/Puppeteer.js +18 -0
- package/lib/helper/WebDriver.js +140 -31
- package/lib/locator.js +31 -4
- package/lib/plugin/retryFailedStep.js +5 -1
- package/lib/plugin/retryTo.js +2 -2
- package/package.json +24 -18
- package/typings/index.d.ts +9 -6
- package/typings/promiseBasedTypes.d.ts +84 -1
- package/typings/types.d.ts +102 -2
package/docs/build/TestCafe.js
CHANGED
|
@@ -374,7 +374,7 @@ class TestCafe extends Helper {
|
|
|
374
374
|
* I.see('#add-to-cart-bnt');
|
|
375
375
|
* ```
|
|
376
376
|
*
|
|
377
|
-
* @param {
|
|
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
379
|
* @returns {void} automatically synchronized promise through #recorder
|
|
380
380
|
*
|
|
@@ -406,7 +406,7 @@ class TestCafe extends Helper {
|
|
|
406
406
|
* I.dontSee('#add-to-cart-btn');
|
|
407
407
|
* ```
|
|
408
408
|
*
|
|
409
|
-
* @param {
|
|
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
411
|
* @returns {void} automatically synchronized promise through #recorder
|
|
412
412
|
*
|
|
@@ -445,8 +445,8 @@ class TestCafe extends Helper {
|
|
|
445
445
|
* I.click({css: 'nav a.login'});
|
|
446
446
|
* ```
|
|
447
447
|
*
|
|
448
|
-
* @param {
|
|
449
|
-
* @param {?
|
|
448
|
+
* @param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
|
|
449
|
+
* @param {?CodeceptJS.LocatorOrString | null} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
|
|
450
450
|
* @returns {void} automatically synchronized promise through #recorder
|
|
451
451
|
*
|
|
452
452
|
*
|
|
@@ -477,7 +477,7 @@ class TestCafe extends Helper {
|
|
|
477
477
|
* I.waitForVisible('#popup');
|
|
478
478
|
* ```
|
|
479
479
|
*
|
|
480
|
-
* @param {
|
|
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
482
|
* @returns {void} automatically synchronized promise through #recorder
|
|
483
483
|
*
|
|
@@ -505,8 +505,8 @@ class TestCafe extends Helper {
|
|
|
505
505
|
* // or by strict locator
|
|
506
506
|
* I.fillField({css: 'form#login input[name=username]'}, 'John');
|
|
507
507
|
* ```
|
|
508
|
-
* @param {
|
|
509
|
-
* @param {
|
|
508
|
+
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
509
|
+
* @param {CodeceptJS.StringOrSecret} value text value to fill.
|
|
510
510
|
* @returns {void} automatically synchronized promise through #recorder
|
|
511
511
|
*
|
|
512
512
|
*/
|
|
@@ -527,7 +527,7 @@ class TestCafe extends Helper {
|
|
|
527
527
|
* I.clearField('user[email]');
|
|
528
528
|
* I.clearField('#email');
|
|
529
529
|
* ```
|
|
530
|
-
* @param {
|
|
530
|
+
* @param {LocatorOrString} editable field located by label|name|CSS|XPath|strict locator.
|
|
531
531
|
* @returns {void} automatically synchronized promise through #recorder.
|
|
532
532
|
*
|
|
533
533
|
*/
|
|
@@ -551,7 +551,7 @@ class TestCafe extends Helper {
|
|
|
551
551
|
* // typing secret
|
|
552
552
|
* I.appendField('password', secret('123456'));
|
|
553
553
|
* ```
|
|
554
|
-
* @param {
|
|
554
|
+
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator
|
|
555
555
|
* @param {string} value text value to append.
|
|
556
556
|
* @returns {void} automatically synchronized promise through #recorder
|
|
557
557
|
*
|
|
@@ -577,7 +577,7 @@ class TestCafe extends Helper {
|
|
|
577
577
|
* I.attachFile('form input[name=avatar]', 'data/avatar.jpg');
|
|
578
578
|
* ```
|
|
579
579
|
*
|
|
580
|
-
* @param {
|
|
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
582
|
* @returns {void} automatically synchronized promise through #recorder
|
|
583
583
|
*
|
|
@@ -628,7 +628,7 @@ class TestCafe extends Helper {
|
|
|
628
628
|
* I.moveCursorTo('#submit', 5,5);
|
|
629
629
|
* ```
|
|
630
630
|
*
|
|
631
|
-
* @param {
|
|
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
634
|
* @returns {void} automatically synchronized promise through #recorder
|
|
@@ -655,8 +655,8 @@ class TestCafe extends Helper {
|
|
|
655
655
|
* I.doubleClick('.btn.edit');
|
|
656
656
|
* ```
|
|
657
657
|
*
|
|
658
|
-
* @param {
|
|
659
|
-
* @param {?
|
|
658
|
+
* @param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
|
|
659
|
+
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
|
|
660
660
|
* @returns {void} automatically synchronized promise through #recorder
|
|
661
661
|
*
|
|
662
662
|
*
|
|
@@ -687,8 +687,8 @@ class TestCafe extends Helper {
|
|
|
687
687
|
* I.rightClick('Click me', '.context');
|
|
688
688
|
* ```
|
|
689
689
|
*
|
|
690
|
-
* @param {
|
|
691
|
-
* @param {?
|
|
690
|
+
* @param {CodeceptJS.LocatorOrString} locator clickable element located by CSS|XPath|strict locator.
|
|
691
|
+
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS|XPath|strict locator.
|
|
692
692
|
* @returns {void} automatically synchronized promise through #recorder
|
|
693
693
|
*
|
|
694
694
|
*
|
|
@@ -718,8 +718,8 @@ class TestCafe extends Helper {
|
|
|
718
718
|
* I.checkOption('I Agree to Terms and Conditions');
|
|
719
719
|
* I.checkOption('agree', '//form');
|
|
720
720
|
* ```
|
|
721
|
-
* @param {
|
|
722
|
-
* @param {?
|
|
721
|
+
* @param {CodeceptJS.LocatorOrString} field checkbox located by label | name | CSS | XPath | strict locator.
|
|
722
|
+
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
|
|
723
723
|
* @returns {void} automatically synchronized promise through #recorder
|
|
724
724
|
*
|
|
725
725
|
*/
|
|
@@ -742,8 +742,8 @@ class TestCafe extends Helper {
|
|
|
742
742
|
* I.uncheckOption('I Agree to Terms and Conditions');
|
|
743
743
|
* I.uncheckOption('agree', '//form');
|
|
744
744
|
* ```
|
|
745
|
-
* @param {
|
|
746
|
-
* @param {?
|
|
745
|
+
* @param {CodeceptJS.LocatorOrString} field checkbox located by label | name | CSS | XPath | strict locator.
|
|
746
|
+
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
|
|
747
747
|
* @returns {void} automatically synchronized promise through #recorder
|
|
748
748
|
*
|
|
749
749
|
*/
|
|
@@ -766,7 +766,7 @@ class TestCafe extends Helper {
|
|
|
766
766
|
* I.seeCheckboxIsChecked({css: '#signup_form input[type=checkbox]'});
|
|
767
767
|
* ```
|
|
768
768
|
*
|
|
769
|
-
* @param {
|
|
769
|
+
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
770
770
|
* @returns {void} automatically synchronized promise through #recorder
|
|
771
771
|
*
|
|
772
772
|
*/
|
|
@@ -783,7 +783,7 @@ class TestCafe extends Helper {
|
|
|
783
783
|
* I.dontSeeCheckboxIsChecked('agree'); // located by name
|
|
784
784
|
* ```
|
|
785
785
|
*
|
|
786
|
-
* @param {
|
|
786
|
+
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
787
787
|
* @returns {void} automatically synchronized promise through #recorder
|
|
788
788
|
*
|
|
789
789
|
*/
|
|
@@ -810,7 +810,7 @@ class TestCafe extends Helper {
|
|
|
810
810
|
* ```js
|
|
811
811
|
* I.selectOption('Which OS do you use?', ['Android', 'iOS']);
|
|
812
812
|
* ```
|
|
813
|
-
* @param {
|
|
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
815
|
* @returns {void} automatically synchronized promise through #recorder
|
|
816
816
|
*
|
|
@@ -928,7 +928,7 @@ class TestCafe extends Helper {
|
|
|
928
928
|
* I.see('Register', {css: 'form.register'}); // use strict locator
|
|
929
929
|
* ```
|
|
930
930
|
* @param {string} text expected on page.
|
|
931
|
-
* @param {?
|
|
931
|
+
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS|Xpath|strict locator in which to search for text.
|
|
932
932
|
* @returns {void} automatically synchronized promise through #recorder
|
|
933
933
|
*
|
|
934
934
|
*
|
|
@@ -956,7 +956,7 @@ class TestCafe extends Helper {
|
|
|
956
956
|
* ```
|
|
957
957
|
*
|
|
958
958
|
* @param {string} text which is not present.
|
|
959
|
-
* @param {
|
|
959
|
+
* @param {CodeceptJS.LocatorOrString} [context] (optional) element located by CSS|XPath|strict locator in which to perfrom search.
|
|
960
960
|
* @returns {void} automatically synchronized promise through #recorder
|
|
961
961
|
*
|
|
962
962
|
*
|
|
@@ -981,7 +981,7 @@ class TestCafe extends Helper {
|
|
|
981
981
|
* ```js
|
|
982
982
|
* I.seeElement('#modal');
|
|
983
983
|
* ```
|
|
984
|
-
* @param {
|
|
984
|
+
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
|
|
985
985
|
* @returns {void} automatically synchronized promise through #recorder
|
|
986
986
|
*
|
|
987
987
|
*/
|
|
@@ -999,7 +999,7 @@ class TestCafe extends Helper {
|
|
|
999
999
|
* I.dontSeeElement('.modal'); // modal is not shown
|
|
1000
1000
|
* ```
|
|
1001
1001
|
*
|
|
1002
|
-
* @param {
|
|
1002
|
+
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|Strict locator.
|
|
1003
1003
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1004
1004
|
*
|
|
1005
1005
|
*/
|
|
@@ -1017,7 +1017,7 @@ class TestCafe extends Helper {
|
|
|
1017
1017
|
* ```js
|
|
1018
1018
|
* I.seeElementInDOM('#modal');
|
|
1019
1019
|
* ```
|
|
1020
|
-
* @param {
|
|
1020
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1021
1021
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1022
1022
|
*
|
|
1023
1023
|
*/
|
|
@@ -1035,7 +1035,7 @@ class TestCafe extends Helper {
|
|
|
1035
1035
|
* I.dontSeeElementInDOM('.nav'); // checks that element is not on page visible or not
|
|
1036
1036
|
* ```
|
|
1037
1037
|
*
|
|
1038
|
-
* @param {
|
|
1038
|
+
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|Strict locator.
|
|
1039
1039
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1040
1040
|
*
|
|
1041
1041
|
*/
|
|
@@ -1054,7 +1054,7 @@ class TestCafe extends Helper {
|
|
|
1054
1054
|
* I.seeNumberOfVisibleElements('.buttons', 3);
|
|
1055
1055
|
* ```
|
|
1056
1056
|
*
|
|
1057
|
-
* @param {
|
|
1057
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1058
1058
|
* @param {number} num number of elements.
|
|
1059
1059
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1060
1060
|
*
|
|
@@ -1075,7 +1075,7 @@ class TestCafe extends Helper {
|
|
|
1075
1075
|
* let numOfElements = await I.grabNumberOfVisibleElements('p');
|
|
1076
1076
|
* ```
|
|
1077
1077
|
*
|
|
1078
|
-
* @param {
|
|
1078
|
+
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
|
|
1079
1079
|
* @returns {Promise<number>} number of visible elements
|
|
1080
1080
|
*/
|
|
1081
1081
|
async grabNumberOfVisibleElements(locator) {
|
|
@@ -1093,8 +1093,8 @@ class TestCafe extends Helper {
|
|
|
1093
1093
|
* I.seeInField('form input[type=hidden]','hidden_value');
|
|
1094
1094
|
* I.seeInField('#searchform input','Search');
|
|
1095
1095
|
* ```
|
|
1096
|
-
* @param {
|
|
1097
|
-
* @param {
|
|
1096
|
+
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
1097
|
+
* @param {CodeceptJS.StringOrSecret} value value to check.
|
|
1098
1098
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1099
1099
|
*
|
|
1100
1100
|
*/
|
|
@@ -1119,8 +1119,8 @@ class TestCafe extends Helper {
|
|
|
1119
1119
|
* I.dontSeeInField({ css: 'form input.email' }, 'user@user.com'); // field by CSS
|
|
1120
1120
|
* ```
|
|
1121
1121
|
*
|
|
1122
|
-
* @param {
|
|
1123
|
-
* @param {
|
|
1122
|
+
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
1123
|
+
* @param {CodeceptJS.StringOrSecret} value value to check.
|
|
1124
1124
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1125
1125
|
*
|
|
1126
1126
|
*/
|
|
@@ -1189,7 +1189,7 @@ class TestCafe extends Helper {
|
|
|
1189
1189
|
* I.saveElementScreenshot(`#submit`,'debug.png');
|
|
1190
1190
|
* ```
|
|
1191
1191
|
*
|
|
1192
|
-
* @param {
|
|
1192
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1193
1193
|
* @param {string} fileName file name to save.
|
|
1194
1194
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1195
1195
|
*
|
|
@@ -1291,7 +1291,7 @@ class TestCafe extends Helper {
|
|
|
1291
1291
|
* let pins = await I.grabTextFromAll('#pin li');
|
|
1292
1292
|
* ```
|
|
1293
1293
|
*
|
|
1294
|
-
* @param {
|
|
1294
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1295
1295
|
* @returns {Promise<string[]>} attribute value
|
|
1296
1296
|
*
|
|
1297
1297
|
*/
|
|
@@ -1315,7 +1315,7 @@ class TestCafe extends Helper {
|
|
|
1315
1315
|
* ```
|
|
1316
1316
|
* If multiple elements found returns first element.
|
|
1317
1317
|
*
|
|
1318
|
-
* @param {
|
|
1318
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1319
1319
|
* @returns {Promise<string>} attribute value
|
|
1320
1320
|
*
|
|
1321
1321
|
*/
|
|
@@ -1338,7 +1338,7 @@ class TestCafe extends Helper {
|
|
|
1338
1338
|
* ```js
|
|
1339
1339
|
* let hint = await I.grabAttributeFrom('#tooltip', 'title');
|
|
1340
1340
|
* ```
|
|
1341
|
-
* @param {
|
|
1341
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1342
1342
|
* @param {string} attr attribute name.
|
|
1343
1343
|
* @returns {Promise<string>} attribute value
|
|
1344
1344
|
*
|
|
@@ -1362,7 +1362,7 @@ class TestCafe extends Helper {
|
|
|
1362
1362
|
* ```js
|
|
1363
1363
|
* let hint = await I.grabAttributeFrom('#tooltip', 'title');
|
|
1364
1364
|
* ```
|
|
1365
|
-
* @param {
|
|
1365
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1366
1366
|
* @param {string} attr attribute name.
|
|
1367
1367
|
* @returns {Promise<string>} attribute value
|
|
1368
1368
|
*
|
|
@@ -1385,7 +1385,7 @@ class TestCafe extends Helper {
|
|
|
1385
1385
|
* ```js
|
|
1386
1386
|
* let inputs = await I.grabValueFromAll('//form/input');
|
|
1387
1387
|
* ```
|
|
1388
|
-
* @param {
|
|
1388
|
+
* @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
|
|
1389
1389
|
* @returns {Promise<string[]>} attribute value
|
|
1390
1390
|
*
|
|
1391
1391
|
*/
|
|
@@ -1408,7 +1408,7 @@ class TestCafe extends Helper {
|
|
|
1408
1408
|
* ```js
|
|
1409
1409
|
* let email = await I.grabValueFrom('input[name=email]');
|
|
1410
1410
|
* ```
|
|
1411
|
-
* @param {
|
|
1411
|
+
* @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
|
|
1412
1412
|
* @returns {Promise<string>} attribute value
|
|
1413
1413
|
*
|
|
1414
1414
|
*/
|
|
@@ -1525,7 +1525,7 @@ class TestCafe extends Helper {
|
|
|
1525
1525
|
* I.scrollTo('#submit', 5, 5);
|
|
1526
1526
|
* ```
|
|
1527
1527
|
*
|
|
1528
|
-
* @param {
|
|
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
1531
|
* @returns {void} automatically synchronized promise through #recorder
|
|
@@ -1567,7 +1567,7 @@ class TestCafe extends Helper {
|
|
|
1567
1567
|
* I.switchTo(); // switch back to main page
|
|
1568
1568
|
* ```
|
|
1569
1569
|
*
|
|
1570
|
-
* @param {?
|
|
1570
|
+
* @param {?CodeceptJS.LocatorOrString} [locator=null] (optional, `null` by default) element located by CSS|XPath|strict locator.
|
|
1571
1571
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1572
1572
|
*
|
|
1573
1573
|
*/
|
|
@@ -1816,7 +1816,7 @@ class TestCafe extends Helper {
|
|
|
1816
1816
|
* I.waitNumberOfVisibleElements('a', 3);
|
|
1817
1817
|
* ```
|
|
1818
1818
|
*
|
|
1819
|
-
* @param {
|
|
1819
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1820
1820
|
* @param {number} num number of elements.
|
|
1821
1821
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
1822
1822
|
* @returns {void} automatically synchronized promise through #recorder
|
|
@@ -1840,7 +1840,7 @@ class TestCafe extends Helper {
|
|
|
1840
1840
|
* I.waitForElement('.btn.continue', 5); // wait for 5 secs
|
|
1841
1841
|
* ```
|
|
1842
1842
|
*
|
|
1843
|
-
* @param {
|
|
1843
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1844
1844
|
* @param {number} [sec] (optional, `1` by default) time in seconds to wait
|
|
1845
1845
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1846
1846
|
*
|
|
@@ -1861,7 +1861,7 @@ class TestCafe extends Helper {
|
|
|
1861
1861
|
* I.waitToHide('#popup');
|
|
1862
1862
|
* ```
|
|
1863
1863
|
*
|
|
1864
|
-
* @param {
|
|
1864
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1865
1865
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
1866
1866
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1867
1867
|
*
|
|
@@ -1882,7 +1882,7 @@ class TestCafe extends Helper {
|
|
|
1882
1882
|
* I.waitForInvisible('#popup');
|
|
1883
1883
|
* ```
|
|
1884
1884
|
*
|
|
1885
|
-
* @param {
|
|
1885
|
+
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1886
1886
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
1887
1887
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1888
1888
|
*
|
|
@@ -1907,7 +1907,7 @@ class TestCafe extends Helper {
|
|
|
1907
1907
|
*
|
|
1908
1908
|
* @param {string }text to wait for.
|
|
1909
1909
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
1910
|
-
* @param {
|
|
1910
|
+
* @param {CodeceptJS.LocatorOrString} [context] (optional) element located by CSS|XPath|strict locator.
|
|
1911
1911
|
* @returns {void} automatically synchronized promise through #recorder
|
|
1912
1912
|
*
|
|
1913
1913
|
*
|