codeceptjs 3.5.7 → 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 (108) hide show
  1. package/README.md +1 -1
  2. package/docs/build/Appium.js +27 -22
  3. package/docs/build/Nightmare.js +51 -52
  4. package/docs/build/Playwright.js +75 -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 -562
  10. package/docs/community-helpers.md +4 -8
  11. package/docs/examples.md +2 -8
  12. package/docs/helpers/Appium.md +85 -83
  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/Appium.js +9 -4
  105. package/lib/helper/Playwright.js +3 -2
  106. package/package.json +5 -5
  107. package/typings/promiseBasedTypes.d.ts +423 -1010
  108. package/typings/types.d.ts +423 -427
@@ -520,11 +520,13 @@ I.setNetworkConnection(6) // airplane mode off, wifi on, data on
520
520
 
521
521
  See corresponding [webdriverio reference][9].
522
522
 
523
+ Appium: support only Android
524
+
523
525
  #### Parameters
524
526
 
525
- - `value`
527
+ - `value` **[number][10]** The network connection mode bitmask
526
528
 
527
- Returns **[Promise][6]<{}>** Appium: support only Android
529
+ Returns **[Promise][6]<[number][10]>**
528
530
 
529
531
  ### setSettings
530
532
 
@@ -536,7 +538,7 @@ I.setSettings({cyberdelia: 'open'});
536
538
 
537
539
  #### Parameters
538
540
 
539
- - `settings` **[object][10]** objectAppium: support Android and iOS
541
+ - `settings` **[object][11]** objectAppium: support Android and iOS
540
542
 
541
543
  ### hideDeviceKeyboard
542
544
 
@@ -561,7 +563,7 @@ Appium: support Android and iOS
561
563
  ### sendDeviceKeyEvent
562
564
 
563
565
  Send a key event to the device.
564
- List of keys: [https://developer.android.com/reference/android/view/KeyEvent.html][11]
566
+ List of keys: [https://developer.android.com/reference/android/view/KeyEvent.html][12]
565
567
 
566
568
  ```js
567
569
  I.sendDeviceKeyEvent(3);
@@ -569,7 +571,7 @@ I.sendDeviceKeyEvent(3);
569
571
 
570
572
  #### Parameters
571
573
 
572
- - `keyValue` **[number][12]** Device specific key value
574
+ - `keyValue` **[number][10]** Device specific key value
573
575
 
574
576
  Returns **[Promise][6]<void>** Appium: support only Android
575
577
 
@@ -631,10 +633,10 @@ I.swipe(locator, 800, 1200, 1000);
631
633
 
632
634
  #### Parameters
633
635
 
634
- - `locator` **([string][5] \| [object][10])**
635
- - `xoffset` **[number][12]**
636
- - `yoffset` **[number][12]**
637
- - `speed` **[number][12]** (optional), 1000 by default (optional, default `1000`)
636
+ - `locator` **([string][5] \| [object][11])**
637
+ - `xoffset` **[number][10]**
638
+ - `yoffset` **[number][10]**
639
+ - `speed` **[number][10]** (optional), 1000 by default (optional, default `1000`)
638
640
 
639
641
  Returns **[Promise][6]<void>** Appium: support Android and iOS
640
642
 
@@ -648,8 +650,8 @@ I.performSwipe({ x: 300, y: 100 }, { x: 200, y: 100 });
648
650
 
649
651
  #### Parameters
650
652
 
651
- - `from` **[object][10]**
652
- - `to` **[object][10]** Appium: support Android and iOS
653
+ - `from` **[object][11]**
654
+ - `to` **[object][11]** Appium: support Android and iOS
653
655
 
654
656
  ### swipeDown
655
657
 
@@ -664,9 +666,9 @@ I.swipeDown(locator, 1200, 1000); // set offset and speed
664
666
 
665
667
  #### Parameters
666
668
 
667
- - `locator` **([string][5] \| [object][10])**
668
- - `yoffset` **[number][12]?** (optional) (optional, default `1000`)
669
- - `speed` **[number][12]** (optional), 1000 by default (optional, default `1000`)
669
+ - `locator` **([string][5] \| [object][11])**
670
+ - `yoffset` **[number][10]?** (optional) (optional, default `1000`)
671
+ - `speed` **[number][10]** (optional), 1000 by default (optional, default `1000`)
670
672
 
671
673
  Returns **[Promise][6]<void>** Appium: support Android and iOS
672
674
 
@@ -683,9 +685,9 @@ I.swipeLeft(locator, 1200, 1000); // set offset and speed
683
685
 
684
686
  #### Parameters
685
687
 
686
- - `locator` **([string][5] \| [object][10])**
687
- - `xoffset` **[number][12]?** (optional) (optional, default `1000`)
688
- - `speed` **[number][12]** (optional), 1000 by default (optional, default `1000`)
688
+ - `locator` **([string][5] \| [object][11])**
689
+ - `xoffset` **[number][10]?** (optional) (optional, default `1000`)
690
+ - `speed` **[number][10]** (optional), 1000 by default (optional, default `1000`)
689
691
 
690
692
  Returns **[Promise][6]<void>** Appium: support Android and iOS
691
693
 
@@ -702,9 +704,9 @@ I.swipeRight(locator, 1200, 1000); // set offset and speed
702
704
 
703
705
  #### Parameters
704
706
 
705
- - `locator` **([string][5] \| [object][10])**
706
- - `xoffset` **[number][12]?** (optional) (optional, default `1000`)
707
- - `speed` **[number][12]** (optional), 1000 by default (optional, default `1000`)
707
+ - `locator` **([string][5] \| [object][11])**
708
+ - `xoffset` **[number][10]?** (optional) (optional, default `1000`)
709
+ - `speed` **[number][10]** (optional), 1000 by default (optional, default `1000`)
708
710
 
709
711
  Returns **[Promise][6]<void>** Appium: support Android and iOS
710
712
 
@@ -721,9 +723,9 @@ I.swipeUp(locator, 1200, 1000); // set offset and speed
721
723
 
722
724
  #### Parameters
723
725
 
724
- - `locator` **([string][5] \| [object][10])**
725
- - `yoffset` **[number][12]?** (optional) (optional, default `1000`)
726
- - `speed` **[number][12]** (optional), 1000 by default (optional, default `1000`)
726
+ - `locator` **([string][5] \| [object][11])**
727
+ - `yoffset` **[number][10]?** (optional) (optional, default `1000`)
728
+ - `speed` **[number][10]** (optional), 1000 by default (optional, default `1000`)
727
729
 
728
730
  Returns **[Promise][6]<void>** Appium: support Android and iOS
729
731
 
@@ -746,9 +748,9 @@ I.swipeTo(
746
748
  - `searchableLocator` **[string][5]**
747
749
  - `scrollLocator` **[string][5]**
748
750
  - `direction` **[string][5]**
749
- - `timeout` **[number][12]**
750
- - `offset` **[number][12]**
751
- - `speed` **[number][12]**
751
+ - `timeout` **[number][10]**
752
+ - `offset` **[number][10]**
753
+ - `speed` **[number][10]**
752
754
 
753
755
  Returns **[Promise][6]<void>** Appium: support Android and iOS
754
756
 
@@ -884,10 +886,10 @@ I.appendField('password', secret('123456'));
884
886
 
885
887
  #### Parameters
886
888
 
887
- - `field` **([string][5] \| [object][10])** located by label|name|CSS|XPath|strict locator
889
+ - `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator
888
890
  - `value` **[string][5]** text value to append.
889
891
 
890
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
892
+ Returns **void** automatically synchronized promise through #recorder
891
893
 
892
894
  ### checkOption
893
895
 
@@ -904,10 +906,10 @@ I.checkOption('agree', '//form');
904
906
 
905
907
  #### Parameters
906
908
 
907
- - `field` **([string][5] \| [object][10])** checkbox located by label | name | CSS | XPath | strict locator.
908
- - `context` **([string][5]? | [object][10])** (optional, `null` by default) element located by CSS | XPath | strict locator. (optional, default `null`)
909
+ - `field` **([string][5] \| [object][11])** checkbox located by label | name | CSS | XPath | strict locator.
910
+ - `context` **([string][5]? | [object][11])** (optional, `null` by default) element located by CSS | XPath | strict locator. (optional, default `null`)
909
911
 
910
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
912
+ Returns **void** automatically synchronized promise through #recorder
911
913
 
912
914
  ### click
913
915
 
@@ -935,10 +937,10 @@ I.click({css: 'nav a.login'});
935
937
 
936
938
  #### Parameters
937
939
 
938
- - `locator` **([string][5] \| [object][10])** clickable link or button located by text, or any element located by CSS|XPath|strict locator.
939
- - `context` **([string][5]? | [object][10] | null)** (optional, `null` by default) element to search in CSS|XPath|Strict locator. (optional, default `null`)
940
+ - `locator` **([string][5] \| [object][11])** clickable link or button located by text, or any element located by CSS|XPath|strict locator.
941
+ - `context` **([string][5]? | [object][11] | null)** (optional, `null` by default) element to search in CSS|XPath|Strict locator. (optional, default `null`)
940
942
 
941
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
943
+ Returns **void** automatically synchronized promise through #recorder
942
944
 
943
945
  ### dontSeeCheckboxIsChecked
944
946
 
@@ -952,9 +954,9 @@ I.dontSeeCheckboxIsChecked('agree'); // located by name
952
954
 
953
955
  #### Parameters
954
956
 
955
- - `field` **([string][5] \| [object][10])** located by label|name|CSS|XPath|strict locator.
957
+ - `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
956
958
 
957
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
959
+ Returns **void** automatically synchronized promise through #recorder
958
960
 
959
961
  ### dontSeeElement
960
962
 
@@ -966,9 +968,9 @@ I.dontSeeElement('.modal'); // modal is not shown
966
968
 
967
969
  #### Parameters
968
970
 
969
- - `locator` **([string][5] \| [object][10])** located by CSS|XPath|Strict locator.
971
+ - `locator` **([string][5] \| [object][11])** located by CSS|XPath|Strict locator.
970
972
 
971
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
973
+ Returns **void** automatically synchronized promise through #recorder
972
974
 
973
975
  ### dontSeeInField
974
976
 
@@ -982,10 +984,10 @@ I.dontSeeInField({ css: 'form input.email' }, 'user@user.com'); // field by CSS
982
984
 
983
985
  #### Parameters
984
986
 
985
- - `field` **([string][5] \| [object][10])** located by label|name|CSS|XPath|strict locator.
986
- - `value` **([string][5] \| [object][10])** value to check.
987
+ - `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
988
+ - `value` **([string][5] \| [object][11])** value to check.
987
989
 
988
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
990
+ Returns **void** automatically synchronized promise through #recorder
989
991
 
990
992
  ### dontSee
991
993
 
@@ -1000,9 +1002,9 @@ I.dontSee('Login', '.nav'); // no login inside .nav element
1000
1002
  #### Parameters
1001
1003
 
1002
1004
  - `text` **[string][5]** which is not present.
1003
- - `context` **([string][5] \| [object][10])?** (optional) element located by CSS|XPath|strict locator in which to perfrom search. (optional, default `null`)
1005
+ - `context` **([string][5] \| [object][11])?** (optional) element located by CSS|XPath|strict locator in which to perfrom search. (optional, default `null`)
1004
1006
 
1005
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1007
+ Returns **void** automatically synchronized promise through #recorder
1006
1008
 
1007
1009
  ### fillField
1008
1010
 
@@ -1022,10 +1024,10 @@ I.fillField({css: 'form#login input[name=username]'}, 'John');
1022
1024
 
1023
1025
  #### Parameters
1024
1026
 
1025
- - `field` **([string][5] \| [object][10])** located by label|name|CSS|XPath|strict locator.
1026
- - `value` **([string][5] \| [object][10])** text value to fill.
1027
+ - `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
1028
+ - `value` **([string][5] \| [object][11])** text value to fill.
1027
1029
 
1028
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1030
+ Returns **void** automatically synchronized promise through #recorder
1029
1031
 
1030
1032
  ### grabTextFromAll
1031
1033
 
@@ -1038,7 +1040,7 @@ let pins = await I.grabTextFromAll('#pin li');
1038
1040
 
1039
1041
  #### Parameters
1040
1042
 
1041
- - `locator` **([string][5] \| [object][10])** element located by CSS|XPath|strict locator.
1043
+ - `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
1042
1044
 
1043
1045
  Returns **[Promise][6]<[Array][8]<[string][5]>>** attribute value
1044
1046
 
@@ -1055,7 +1057,7 @@ If multiple elements found returns first element.
1055
1057
 
1056
1058
  #### Parameters
1057
1059
 
1058
- - `locator` **([string][5] \| [object][10])** element located by CSS|XPath|strict locator.
1060
+ - `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
1059
1061
 
1060
1062
  Returns **[Promise][6]<[string][5]>** attribute value
1061
1063
 
@@ -1070,9 +1072,9 @@ let numOfElements = await I.grabNumberOfVisibleElements('p');
1070
1072
 
1071
1073
  #### Parameters
1072
1074
 
1073
- - `locator` **([string][5] \| [object][10])** located by CSS|XPath|strict locator.
1075
+ - `locator` **([string][5] \| [object][11])** located by CSS|XPath|strict locator.
1074
1076
 
1075
- Returns **[Promise][6]<[number][12]>** number of visible elements
1077
+ Returns **[Promise][6]<[number][10]>** number of visible elements
1076
1078
 
1077
1079
  ### grabAttributeFrom
1078
1080
 
@@ -1088,7 +1090,7 @@ let hint = await I.grabAttributeFrom('#tooltip', 'title');
1088
1090
 
1089
1091
  #### Parameters
1090
1092
 
1091
- - `locator` **([string][5] \| [object][10])** element located by CSS|XPath|strict locator.
1093
+ - `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
1092
1094
  - `attr` **[string][5]** attribute name.
1093
1095
 
1094
1096
  Returns **[Promise][6]<[string][5]>** attribute value
@@ -1105,7 +1107,7 @@ let hints = await I.grabAttributeFromAll('.tooltip', 'title');
1105
1107
 
1106
1108
  #### Parameters
1107
1109
 
1108
- - `locator` **([string][5] \| [object][10])** element located by CSS|XPath|strict locator.
1110
+ - `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
1109
1111
  - `attr` **[string][5]** attribute name.
1110
1112
 
1111
1113
  Returns **[Promise][6]<[Array][8]<[string][5]>>** attribute value
@@ -1121,7 +1123,7 @@ let inputs = await I.grabValueFromAll('//form/input');
1121
1123
 
1122
1124
  #### Parameters
1123
1125
 
1124
- - `locator` **([string][5] \| [object][10])** field located by label|name|CSS|XPath|strict locator.
1126
+ - `locator` **([string][5] \| [object][11])** field located by label|name|CSS|XPath|strict locator.
1125
1127
 
1126
1128
  Returns **[Promise][6]<[Array][8]<[string][5]>>** attribute value
1127
1129
 
@@ -1137,7 +1139,7 @@ let email = await I.grabValueFrom('input[name=email]');
1137
1139
 
1138
1140
  #### Parameters
1139
1141
 
1140
- - `locator` **([string][5] \| [object][10])** field located by label|name|CSS|XPath|strict locator.
1142
+ - `locator` **([string][5] \| [object][11])** field located by label|name|CSS|XPath|strict locator.
1141
1143
 
1142
1144
  Returns **[Promise][6]<[string][5]>** attribute value
1143
1145
 
@@ -1168,10 +1170,10 @@ I.scrollIntoView('#submit', { behavior: "smooth", block: "center", inline: "cent
1168
1170
 
1169
1171
  #### Parameters
1170
1172
 
1171
- - `locator` **([string][5] \| [object][10])** located by CSS|XPath|strict locator.
1173
+ - `locator` **([string][5] \| [object][11])** located by CSS|XPath|strict locator.
1172
1174
  - `scrollIntoViewOptions` **ScrollIntoViewOptions** see [https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView][17].
1173
1175
 
1174
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorderSupported only for web testing
1176
+ Returns **void** automatically synchronized promise through #recorderSupported only for web testing
1175
1177
 
1176
1178
  ### seeCheckboxIsChecked
1177
1179
 
@@ -1185,9 +1187,9 @@ I.seeCheckboxIsChecked({css: '#signup_form input[type=checkbox]'});
1185
1187
 
1186
1188
  #### Parameters
1187
1189
 
1188
- - `field` **([string][5] \| [object][10])** located by label|name|CSS|XPath|strict locator.
1190
+ - `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
1189
1191
 
1190
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1192
+ Returns **void** automatically synchronized promise through #recorder
1191
1193
 
1192
1194
  ### seeElement
1193
1195
 
@@ -1200,9 +1202,9 @@ I.seeElement('#modal');
1200
1202
 
1201
1203
  #### Parameters
1202
1204
 
1203
- - `locator` **([string][5] \| [object][10])** located by CSS|XPath|strict locator.
1205
+ - `locator` **([string][5] \| [object][11])** located by CSS|XPath|strict locator.
1204
1206
 
1205
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1207
+ Returns **void** automatically synchronized promise through #recorder
1206
1208
 
1207
1209
  ### seeInField
1208
1210
 
@@ -1218,10 +1220,10 @@ I.seeInField('#searchform input','Search');
1218
1220
 
1219
1221
  #### Parameters
1220
1222
 
1221
- - `field` **([string][5] \| [object][10])** located by label|name|CSS|XPath|strict locator.
1222
- - `value` **([string][5] \| [object][10])** value to check.
1223
+ - `field` **([string][5] \| [object][11])** located by label|name|CSS|XPath|strict locator.
1224
+ - `value` **([string][5] \| [object][11])** value to check.
1223
1225
 
1224
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1226
+ Returns **void** automatically synchronized promise through #recorder
1225
1227
 
1226
1228
  ### see
1227
1229
 
@@ -1237,9 +1239,9 @@ I.see('Register', {css: 'form.register'}); // use strict locator
1237
1239
  #### Parameters
1238
1240
 
1239
1241
  - `text` **[string][5]** expected on page.
1240
- - `context` **([string][5]? | [object][10])** (optional, `null` by default) element located by CSS|Xpath|strict locator in which to search for text. (optional, default `null`)
1242
+ - `context` **([string][5]? | [object][11])** (optional, `null` by default) element located by CSS|Xpath|strict locator in which to search for text. (optional, default `null`)
1241
1243
 
1242
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1244
+ Returns **void** automatically synchronized promise through #recorder
1243
1245
 
1244
1246
  ### selectOption
1245
1247
 
@@ -1264,10 +1266,10 @@ I.selectOption('Which OS do you use?', ['Android', 'iOS']);
1264
1266
 
1265
1267
  #### Parameters
1266
1268
 
1267
- - `select` **([string][5] \| [object][10])** field located by label|name|CSS|XPath|strict locator.
1269
+ - `select` **([string][5] \| [object][11])** field located by label|name|CSS|XPath|strict locator.
1268
1270
  - `option` **([string][5] \| [Array][8]<any>)** visible text or value of option.
1269
1271
 
1270
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorderSupported only for web testing
1272
+ Returns **void** automatically synchronized promise through #recorderSupported only for web testing
1271
1273
 
1272
1274
  ### waitForElement
1273
1275
 
@@ -1281,10 +1283,10 @@ I.waitForElement('.btn.continue', 5); // wait for 5 secs
1281
1283
 
1282
1284
  #### Parameters
1283
1285
 
1284
- - `locator` **([string][5] \| [object][10])** element located by CSS|XPath|strict locator.
1285
- - `sec` **[number][12]?** (optional, `1` by default) time in seconds to wait (optional, default `null`)
1286
+ - `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
1287
+ - `sec` **[number][10]?** (optional, `1` by default) time in seconds to wait (optional, default `null`)
1286
1288
 
1287
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1289
+ Returns **void** automatically synchronized promise through #recorder
1288
1290
 
1289
1291
  ### waitForVisible
1290
1292
 
@@ -1297,10 +1299,10 @@ I.waitForVisible('#popup');
1297
1299
 
1298
1300
  #### Parameters
1299
1301
 
1300
- - `locator` **([string][5] \| [object][10])** element located by CSS|XPath|strict locator.
1301
- - `sec` **[number][12]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
1302
+ - `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
1303
+ - `sec` **[number][10]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
1302
1304
 
1303
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1305
+ Returns **void** automatically synchronized promise through #recorder
1304
1306
 
1305
1307
  ### waitForInvisible
1306
1308
 
@@ -1313,10 +1315,10 @@ I.waitForInvisible('#popup');
1313
1315
 
1314
1316
  #### Parameters
1315
1317
 
1316
- - `locator` **([string][5] \| [object][10])** element located by CSS|XPath|strict locator.
1317
- - `sec` **[number][12]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
1318
+ - `locator` **([string][5] \| [object][11])** element located by CSS|XPath|strict locator.
1319
+ - `sec` **[number][10]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
1318
1320
 
1319
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1321
+ Returns **void** automatically synchronized promise through #recorder
1320
1322
 
1321
1323
  ### waitForText
1322
1324
 
@@ -1332,10 +1334,10 @@ I.waitForText('Thank you, form has been submitted', 5, '#modal');
1332
1334
  #### Parameters
1333
1335
 
1334
1336
  - `text` **[string][5]** to wait for.
1335
- - `sec` **[number][12]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
1336
- - `context` **([string][5] \| [object][10])?** (optional) element located by CSS|XPath|strict locator. (optional, default `null`)
1337
+ - `sec` **[number][10]** (optional, `1` by default) time in seconds to wait (optional, default `1`)
1338
+ - `context` **([string][5] \| [object][11])?** (optional) element located by CSS|XPath|strict locator. (optional, default `null`)
1337
1339
 
1338
- Returns **[Promise][6]<void>** automatically synchronized promise through #recorder
1340
+ Returns **void** automatically synchronized promise through #recorder
1339
1341
 
1340
1342
  [1]: http://codecept.io/helpers/WebDriver/
1341
1343
 
@@ -1353,13 +1355,13 @@ Returns **[Promise][6]<void>** automatically synchronized promise through #re
1353
1355
 
1354
1356
  [8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array
1355
1357
 
1356
- [9]: http://webdriver.io/api/mobile/setNetworkConnection.html
1358
+ [9]: https://webdriver.io/docs/api/chromium/#setnetworkconnection
1357
1359
 
1358
- [10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
1360
+ [10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
1359
1361
 
1360
- [11]: https://developer.android.com/reference/android/view/KeyEvent.html
1362
+ [11]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
1361
1363
 
1362
- [12]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
1364
+ [12]: https://developer.android.com/reference/android/view/KeyEvent.html
1363
1365
 
1364
1366
  [13]: http://webdriver.io/api/mobile/touchAction.html
1365
1367