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.
- package/README.md +1 -1
- package/docs/build/Appium.js +18 -18
- package/docs/build/Nightmare.js +51 -52
- package/docs/build/Playwright.js +74 -75
- package/docs/build/Protractor.js +64 -65
- package/docs/build/Puppeteer.js +74 -75
- package/docs/build/TestCafe.js +54 -55
- package/docs/build/WebDriver.js +79 -80
- package/docs/changelog.md +1 -571
- package/docs/community-helpers.md +4 -8
- package/docs/examples.md +2 -8
- package/docs/helpers/Appium.md +18 -18
- package/docs/helpers/Nightmare.md +75 -77
- package/docs/helpers/Playwright.md +175 -177
- package/docs/helpers/Protractor.md +153 -155
- package/docs/helpers/Puppeteer.md +146 -148
- package/docs/helpers/TestCafe.md +124 -126
- package/docs/helpers/WebDriver.md +155 -157
- package/docs/webapi/amOnPage.mustache +1 -1
- package/docs/webapi/appendField.mustache +1 -1
- package/docs/webapi/attachFile.mustache +1 -1
- package/docs/webapi/blur.mustache +1 -1
- package/docs/webapi/checkOption.mustache +1 -1
- package/docs/webapi/clearCookie.mustache +1 -2
- package/docs/webapi/clearField.mustache +1 -1
- package/docs/webapi/click.mustache +1 -1
- package/docs/webapi/clickLink.mustache +1 -1
- package/docs/webapi/closeCurrentTab.mustache +1 -1
- package/docs/webapi/closeOtherTabs.mustache +1 -1
- package/docs/webapi/dontSee.mustache +1 -1
- package/docs/webapi/dontSeeCheckboxIsChecked.mustache +1 -1
- package/docs/webapi/dontSeeCookie.mustache +1 -1
- package/docs/webapi/dontSeeCurrentUrlEquals.mustache +1 -1
- package/docs/webapi/dontSeeElement.mustache +1 -1
- package/docs/webapi/dontSeeElementInDOM.mustache +1 -1
- package/docs/webapi/dontSeeInCurrentUrl.mustache +1 -1
- package/docs/webapi/dontSeeInField.mustache +1 -1
- package/docs/webapi/dontSeeInSource.mustache +1 -1
- package/docs/webapi/dontSeeInTitle.mustache +1 -1
- package/docs/webapi/doubleClick.mustache +1 -1
- package/docs/webapi/downloadFile.mustache +1 -1
- package/docs/webapi/dragAndDrop.mustache +1 -1
- package/docs/webapi/dragSlider.mustache +1 -1
- package/docs/webapi/fillField.mustache +1 -1
- package/docs/webapi/focus.mustache +1 -1
- package/docs/webapi/forceClick.mustache +1 -1
- package/docs/webapi/forceRightClick.mustache +1 -1
- package/docs/webapi/grabDataFromPerformanceTiming.mustache +1 -1
- package/docs/webapi/moveCursorTo.mustache +1 -1
- package/docs/webapi/openNewTab.mustache +1 -1
- package/docs/webapi/pressKey.mustache +1 -1
- package/docs/webapi/pressKeyDown.mustache +1 -1
- package/docs/webapi/pressKeyUp.mustache +1 -1
- package/docs/webapi/pressKeyWithKeyNormalization.mustache +1 -1
- package/docs/webapi/refreshPage.mustache +1 -1
- package/docs/webapi/resizeWindow.mustache +1 -1
- package/docs/webapi/rightClick.mustache +1 -1
- package/docs/webapi/saveElementScreenshot.mustache +1 -1
- package/docs/webapi/saveScreenshot.mustache +1 -1
- package/docs/webapi/say.mustache +1 -1
- package/docs/webapi/scrollIntoView.mustache +1 -1
- package/docs/webapi/scrollPageToBottom.mustache +1 -1
- package/docs/webapi/scrollPageToTop.mustache +1 -1
- package/docs/webapi/scrollTo.mustache +1 -1
- package/docs/webapi/see.mustache +1 -1
- package/docs/webapi/seeAttributesOnElements.mustache +1 -1
- package/docs/webapi/seeCheckboxIsChecked.mustache +1 -1
- package/docs/webapi/seeCookie.mustache +1 -1
- package/docs/webapi/seeCssPropertiesOnElements.mustache +1 -1
- package/docs/webapi/seeCurrentUrlEquals.mustache +1 -1
- package/docs/webapi/seeElement.mustache +1 -1
- package/docs/webapi/seeElementInDOM.mustache +1 -1
- package/docs/webapi/seeInCurrentUrl.mustache +1 -1
- package/docs/webapi/seeInField.mustache +1 -1
- package/docs/webapi/seeInPopup.mustache +1 -1
- package/docs/webapi/seeInSource.mustache +1 -1
- package/docs/webapi/seeInTitle.mustache +1 -1
- package/docs/webapi/seeNumberOfElements.mustache +1 -1
- package/docs/webapi/seeNumberOfVisibleElements.mustache +1 -1
- package/docs/webapi/seeTextEquals.mustache +1 -1
- package/docs/webapi/seeTitleEquals.mustache +1 -1
- package/docs/webapi/selectOption.mustache +1 -1
- package/docs/webapi/setCookie.mustache +1 -1
- package/docs/webapi/setGeoLocation.mustache +1 -1
- package/docs/webapi/switchTo.mustache +1 -1
- package/docs/webapi/switchToNextTab.mustache +1 -1
- package/docs/webapi/switchToPreviousTab.mustache +1 -1
- package/docs/webapi/type.mustache +1 -1
- package/docs/webapi/uncheckOption.mustache +1 -1
- package/docs/webapi/wait.mustache +1 -1
- package/docs/webapi/waitForClickable.mustache +1 -1
- package/docs/webapi/waitForDetached.mustache +1 -1
- package/docs/webapi/waitForElement.mustache +1 -1
- package/docs/webapi/waitForEnabled.mustache +1 -1
- package/docs/webapi/waitForFunction.mustache +1 -1
- package/docs/webapi/waitForInvisible.mustache +1 -1
- package/docs/webapi/waitForText.mustache +1 -1
- package/docs/webapi/waitForValue.mustache +1 -1
- package/docs/webapi/waitForVisible.mustache +1 -1
- package/docs/webapi/waitInUrl.mustache +1 -1
- package/docs/webapi/waitNumberOfVisibleElements.mustache +1 -1
- package/docs/webapi/waitToHide.mustache +1 -1
- package/docs/webapi/waitUrlEquals.mustache +1 -1
- package/lib/helper/Playwright.js +2 -2
- package/package.json +1 -1
- package/typings/promiseBasedTypes.d.ts +418 -1007
- package/typings/types.d.ts +418 -424
package/docs/build/WebDriver.js
CHANGED
|
@@ -900,7 +900,7 @@ class WebDriver extends Helper {
|
|
|
900
900
|
* ```
|
|
901
901
|
*
|
|
902
902
|
* @param {string} url url path or global url.
|
|
903
|
-
* @returns {
|
|
903
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
904
904
|
*
|
|
905
905
|
*
|
|
906
906
|
*/
|
|
@@ -941,7 +941,7 @@ class WebDriver extends Helper {
|
|
|
941
941
|
*
|
|
942
942
|
* @param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
|
|
943
943
|
* @param {?CodeceptJS.LocatorOrString | null} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
|
|
944
|
-
* @returns {
|
|
944
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
945
945
|
*
|
|
946
946
|
*
|
|
947
947
|
* {{ react }}
|
|
@@ -989,7 +989,7 @@ class WebDriver extends Helper {
|
|
|
989
989
|
*
|
|
990
990
|
* @param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
|
|
991
991
|
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
|
|
992
|
-
* @returns {
|
|
992
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
993
993
|
*
|
|
994
994
|
*
|
|
995
995
|
* {{ react }}
|
|
@@ -1029,7 +1029,7 @@ class WebDriver extends Helper {
|
|
|
1029
1029
|
*
|
|
1030
1030
|
* @param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
|
|
1031
1031
|
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
|
|
1032
|
-
* @returns {
|
|
1032
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1033
1033
|
*
|
|
1034
1034
|
*
|
|
1035
1035
|
* {{ react }}
|
|
@@ -1063,7 +1063,7 @@ class WebDriver extends Helper {
|
|
|
1063
1063
|
*
|
|
1064
1064
|
* @param {CodeceptJS.LocatorOrString} locator clickable element located by CSS|XPath|strict locator.
|
|
1065
1065
|
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS|XPath|strict locator.
|
|
1066
|
-
* @returns {
|
|
1066
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1067
1067
|
*
|
|
1068
1068
|
*
|
|
1069
1069
|
* {{ react }}
|
|
@@ -1107,7 +1107,7 @@ class WebDriver extends Helper {
|
|
|
1107
1107
|
*
|
|
1108
1108
|
* @param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
|
|
1109
1109
|
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
|
|
1110
|
-
* @returns {
|
|
1110
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1111
1111
|
*
|
|
1112
1112
|
*
|
|
1113
1113
|
* {{ react }}
|
|
@@ -1149,7 +1149,7 @@ class WebDriver extends Helper {
|
|
|
1149
1149
|
* ```
|
|
1150
1150
|
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
1151
1151
|
* @param {CodeceptJS.StringOrSecret} value text value to fill.
|
|
1152
|
-
* @returns {
|
|
1152
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1153
1153
|
*
|
|
1154
1154
|
* {{ react }}
|
|
1155
1155
|
* {{ custom }}
|
|
@@ -1174,7 +1174,7 @@ class WebDriver extends Helper {
|
|
|
1174
1174
|
* ```
|
|
1175
1175
|
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator
|
|
1176
1176
|
* @param {string} value text value to append.
|
|
1177
|
-
* @returns {
|
|
1177
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1178
1178
|
*
|
|
1179
1179
|
* {{ react }}
|
|
1180
1180
|
*/
|
|
@@ -1195,7 +1195,7 @@ class WebDriver extends Helper {
|
|
|
1195
1195
|
* I.clearField('#email');
|
|
1196
1196
|
* ```
|
|
1197
1197
|
* @param {LocatorOrString} editable field located by label|name|CSS|XPath|strict locator.
|
|
1198
|
-
* @returns {
|
|
1198
|
+
* @returns {void} automatically synchronized promise through #recorder.
|
|
1199
1199
|
*
|
|
1200
1200
|
*
|
|
1201
1201
|
*/
|
|
@@ -1228,7 +1228,7 @@ class WebDriver extends Helper {
|
|
|
1228
1228
|
* ```
|
|
1229
1229
|
* @param {LocatorOrString} select field located by label|name|CSS|XPath|strict locator.
|
|
1230
1230
|
* @param {string|Array<*>} option visible text or value of option.
|
|
1231
|
-
* @returns {
|
|
1231
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1232
1232
|
*
|
|
1233
1233
|
*/
|
|
1234
1234
|
async selectOption(select, option) {
|
|
@@ -1273,7 +1273,7 @@ class WebDriver extends Helper {
|
|
|
1273
1273
|
*
|
|
1274
1274
|
* @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
|
|
1275
1275
|
* @param {string} pathToFile local file path relative to codecept.conf.ts or codecept.conf.js config file.
|
|
1276
|
-
* @returns {
|
|
1276
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1277
1277
|
*
|
|
1278
1278
|
* Appium: not tested
|
|
1279
1279
|
*/
|
|
@@ -1314,7 +1314,7 @@ class WebDriver extends Helper {
|
|
|
1314
1314
|
* ```
|
|
1315
1315
|
* @param {CodeceptJS.LocatorOrString} field checkbox located by label | name | CSS | XPath | strict locator.
|
|
1316
1316
|
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
|
|
1317
|
-
* @returns {
|
|
1317
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1318
1318
|
*
|
|
1319
1319
|
* Appium: not tested
|
|
1320
1320
|
*/
|
|
@@ -1347,7 +1347,7 @@ class WebDriver extends Helper {
|
|
|
1347
1347
|
* ```
|
|
1348
1348
|
* @param {CodeceptJS.LocatorOrString} field checkbox located by label | name | CSS | XPath | strict locator.
|
|
1349
1349
|
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
|
|
1350
|
-
* @returns {
|
|
1350
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1351
1351
|
*
|
|
1352
1352
|
* Appium: not tested
|
|
1353
1353
|
*/
|
|
@@ -1592,7 +1592,7 @@ class WebDriver extends Helper {
|
|
|
1592
1592
|
* ```
|
|
1593
1593
|
*
|
|
1594
1594
|
* @param {string} text text value to check.
|
|
1595
|
-
* @returns {
|
|
1595
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1596
1596
|
*
|
|
1597
1597
|
*/
|
|
1598
1598
|
async seeInTitle(text) {
|
|
@@ -1608,7 +1608,7 @@ class WebDriver extends Helper {
|
|
|
1608
1608
|
* ```
|
|
1609
1609
|
*
|
|
1610
1610
|
* @param {string} text value to check.
|
|
1611
|
-
* @returns {
|
|
1611
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1612
1612
|
*
|
|
1613
1613
|
*/
|
|
1614
1614
|
async seeTitleEquals(text) {
|
|
@@ -1624,7 +1624,7 @@ class WebDriver extends Helper {
|
|
|
1624
1624
|
* ```
|
|
1625
1625
|
*
|
|
1626
1626
|
* @param {string} text value to check.
|
|
1627
|
-
* @returns {
|
|
1627
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1628
1628
|
*
|
|
1629
1629
|
*/
|
|
1630
1630
|
async dontSeeInTitle(text) {
|
|
@@ -1659,7 +1659,7 @@ class WebDriver extends Helper {
|
|
|
1659
1659
|
* ```
|
|
1660
1660
|
* @param {string} text expected on page.
|
|
1661
1661
|
* @param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS|Xpath|strict locator in which to search for text.
|
|
1662
|
-
* @returns {
|
|
1662
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1663
1663
|
*
|
|
1664
1664
|
*
|
|
1665
1665
|
* {{ react }}
|
|
@@ -1677,7 +1677,7 @@ class WebDriver extends Helper {
|
|
|
1677
1677
|
*
|
|
1678
1678
|
* @param {string} text element value to check.
|
|
1679
1679
|
* @param {CodeceptJS.LocatorOrString?} [context=null] element located by CSS|XPath|strict locator.
|
|
1680
|
-
* @returns {
|
|
1680
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1681
1681
|
*
|
|
1682
1682
|
*/
|
|
1683
1683
|
async seeTextEquals(text, context = null) {
|
|
@@ -1695,7 +1695,7 @@ class WebDriver extends Helper {
|
|
|
1695
1695
|
*
|
|
1696
1696
|
* @param {string} text which is not present.
|
|
1697
1697
|
* @param {CodeceptJS.LocatorOrString} [context] (optional) element located by CSS|XPath|strict locator in which to perfrom search.
|
|
1698
|
-
* @returns {
|
|
1698
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1699
1699
|
*
|
|
1700
1700
|
*
|
|
1701
1701
|
* {{ react }}
|
|
@@ -1716,7 +1716,7 @@ class WebDriver extends Helper {
|
|
|
1716
1716
|
* ```
|
|
1717
1717
|
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
1718
1718
|
* @param {CodeceptJS.StringOrSecret} value value to check.
|
|
1719
|
-
* @returns {
|
|
1719
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1720
1720
|
*
|
|
1721
1721
|
*
|
|
1722
1722
|
*/
|
|
@@ -1736,7 +1736,7 @@ class WebDriver extends Helper {
|
|
|
1736
1736
|
*
|
|
1737
1737
|
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
1738
1738
|
* @param {CodeceptJS.StringOrSecret} value value to check.
|
|
1739
|
-
* @returns {
|
|
1739
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1740
1740
|
*
|
|
1741
1741
|
*
|
|
1742
1742
|
*/
|
|
@@ -1755,7 +1755,7 @@ class WebDriver extends Helper {
|
|
|
1755
1755
|
* ```
|
|
1756
1756
|
*
|
|
1757
1757
|
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
1758
|
-
* @returns {
|
|
1758
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1759
1759
|
*
|
|
1760
1760
|
* Appium: not tested
|
|
1761
1761
|
*/
|
|
@@ -1773,7 +1773,7 @@ class WebDriver extends Helper {
|
|
|
1773
1773
|
* ```
|
|
1774
1774
|
*
|
|
1775
1775
|
* @param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
|
|
1776
|
-
* @returns {
|
|
1776
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1777
1777
|
*
|
|
1778
1778
|
* Appium: not tested
|
|
1779
1779
|
*/
|
|
@@ -1789,7 +1789,7 @@ class WebDriver extends Helper {
|
|
|
1789
1789
|
* I.seeElement('#modal');
|
|
1790
1790
|
* ```
|
|
1791
1791
|
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
|
|
1792
|
-
* @returns {
|
|
1792
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1793
1793
|
*
|
|
1794
1794
|
* {{ react }}
|
|
1795
1795
|
*
|
|
@@ -1809,7 +1809,7 @@ class WebDriver extends Helper {
|
|
|
1809
1809
|
* ```
|
|
1810
1810
|
*
|
|
1811
1811
|
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|Strict locator.
|
|
1812
|
-
* @returns {
|
|
1812
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1813
1813
|
*
|
|
1814
1814
|
* {{ react }}
|
|
1815
1815
|
*/
|
|
@@ -1830,7 +1830,7 @@ class WebDriver extends Helper {
|
|
|
1830
1830
|
* I.seeElementInDOM('#modal');
|
|
1831
1831
|
* ```
|
|
1832
1832
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1833
|
-
* @returns {
|
|
1833
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1834
1834
|
*
|
|
1835
1835
|
*
|
|
1836
1836
|
*/
|
|
@@ -1847,7 +1847,7 @@ class WebDriver extends Helper {
|
|
|
1847
1847
|
* ```
|
|
1848
1848
|
*
|
|
1849
1849
|
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|Strict locator.
|
|
1850
|
-
* @returns {
|
|
1850
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1851
1851
|
*
|
|
1852
1852
|
*
|
|
1853
1853
|
*/
|
|
@@ -1863,7 +1863,7 @@ class WebDriver extends Helper {
|
|
|
1863
1863
|
* I.seeInSource('<h1>Green eggs & ham</h1>');
|
|
1864
1864
|
* ```
|
|
1865
1865
|
* @param {string} text value to check.
|
|
1866
|
-
* @returns {
|
|
1866
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1867
1867
|
*
|
|
1868
1868
|
*
|
|
1869
1869
|
*/
|
|
@@ -1932,7 +1932,7 @@ class WebDriver extends Helper {
|
|
|
1932
1932
|
* ```
|
|
1933
1933
|
*
|
|
1934
1934
|
* @param {string} value to check.
|
|
1935
|
-
* @returns {
|
|
1935
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1936
1936
|
*
|
|
1937
1937
|
*/
|
|
1938
1938
|
async dontSeeInSource(text) {
|
|
@@ -1951,7 +1951,7 @@ class WebDriver extends Helper {
|
|
|
1951
1951
|
*
|
|
1952
1952
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1953
1953
|
* @param {number} num number of elements.
|
|
1954
|
-
* @returns {
|
|
1954
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1955
1955
|
*
|
|
1956
1956
|
* {{ react }}
|
|
1957
1957
|
*/
|
|
@@ -1970,7 +1970,7 @@ class WebDriver extends Helper {
|
|
|
1970
1970
|
*
|
|
1971
1971
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
1972
1972
|
* @param {number} num number of elements.
|
|
1973
|
-
* @returns {
|
|
1973
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1974
1974
|
*
|
|
1975
1975
|
* {{ react }}
|
|
1976
1976
|
*/
|
|
@@ -1988,7 +1988,7 @@ class WebDriver extends Helper {
|
|
|
1988
1988
|
*
|
|
1989
1989
|
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
|
|
1990
1990
|
* @param {object} cssProperties object with CSS properties and their values to check.
|
|
1991
|
-
* @returns {
|
|
1991
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
1992
1992
|
*
|
|
1993
1993
|
*/
|
|
1994
1994
|
async seeCssPropertiesOnElements(locator, cssProperties) {
|
|
@@ -2032,7 +2032,7 @@ class WebDriver extends Helper {
|
|
|
2032
2032
|
*
|
|
2033
2033
|
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
|
|
2034
2034
|
* @param {object} attributes attributes and their values to check.
|
|
2035
|
-
* @returns {
|
|
2035
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2036
2036
|
*
|
|
2037
2037
|
*/
|
|
2038
2038
|
async seeAttributesOnElements(locator, attributes) {
|
|
@@ -2087,7 +2087,7 @@ class WebDriver extends Helper {
|
|
|
2087
2087
|
* ```
|
|
2088
2088
|
*
|
|
2089
2089
|
* @param {string} url a fragment to check
|
|
2090
|
-
* @returns {
|
|
2090
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2091
2091
|
*
|
|
2092
2092
|
*
|
|
2093
2093
|
*/
|
|
@@ -2100,7 +2100,7 @@ class WebDriver extends Helper {
|
|
|
2100
2100
|
* Checks that current url does not contain a provided fragment.
|
|
2101
2101
|
*
|
|
2102
2102
|
* @param {string} url value to check.
|
|
2103
|
-
* @returns {
|
|
2103
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2104
2104
|
*
|
|
2105
2105
|
*
|
|
2106
2106
|
*/
|
|
@@ -2120,7 +2120,7 @@ class WebDriver extends Helper {
|
|
|
2120
2120
|
* ```
|
|
2121
2121
|
*
|
|
2122
2122
|
* @param {string} url value to check.
|
|
2123
|
-
* @returns {
|
|
2123
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2124
2124
|
*
|
|
2125
2125
|
*
|
|
2126
2126
|
*/
|
|
@@ -2139,7 +2139,7 @@ class WebDriver extends Helper {
|
|
|
2139
2139
|
* ```
|
|
2140
2140
|
*
|
|
2141
2141
|
* @param {string} url value to check.
|
|
2142
|
-
* @returns {
|
|
2142
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2143
2143
|
*
|
|
2144
2144
|
*
|
|
2145
2145
|
*/
|
|
@@ -2227,7 +2227,7 @@ class WebDriver extends Helper {
|
|
|
2227
2227
|
*
|
|
2228
2228
|
* @param {LocatorOrString} locator located by CSS|XPath|strict locator.
|
|
2229
2229
|
* @param {ScrollIntoViewOptions} scrollIntoViewOptions see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView.
|
|
2230
|
-
* @returns {
|
|
2230
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2231
2231
|
*
|
|
2232
2232
|
*
|
|
2233
2233
|
*/
|
|
@@ -2250,7 +2250,7 @@ class WebDriver extends Helper {
|
|
|
2250
2250
|
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
|
|
2251
2251
|
* @param {number} [offsetX=0] (optional, `0` by default) X-axis offset.
|
|
2252
2252
|
* @param {number} [offsetY=0] (optional, `0` by default) Y-axis offset.
|
|
2253
|
-
* @returns {
|
|
2253
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2254
2254
|
*
|
|
2255
2255
|
*
|
|
2256
2256
|
*/
|
|
@@ -2293,7 +2293,7 @@ class WebDriver extends Helper {
|
|
|
2293
2293
|
* @param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
|
|
2294
2294
|
* @param {number} [offsetX=0] (optional, `0` by default) X-axis offset.
|
|
2295
2295
|
* @param {number} [offsetY=0] (optional, `0` by default) Y-axis offset.
|
|
2296
|
-
* @returns {
|
|
2296
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2297
2297
|
*
|
|
2298
2298
|
*/
|
|
2299
2299
|
async moveCursorTo(locator, xOffset, yOffset) {
|
|
@@ -2313,7 +2313,7 @@ class WebDriver extends Helper {
|
|
|
2313
2313
|
*
|
|
2314
2314
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
2315
2315
|
* @param {string} fileName file name to save.
|
|
2316
|
-
* @returns {
|
|
2316
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2317
2317
|
*
|
|
2318
2318
|
*
|
|
2319
2319
|
*/
|
|
@@ -2340,7 +2340,7 @@ class WebDriver extends Helper {
|
|
|
2340
2340
|
*
|
|
2341
2341
|
* @param {string} fileName file name to save.
|
|
2342
2342
|
* @param {boolean} [fullPage=false] (optional, `false` by default) flag to enable fullscreen screenshot mode.
|
|
2343
|
-
* @returns {
|
|
2343
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2344
2344
|
*
|
|
2345
2345
|
*/
|
|
2346
2346
|
async saveScreenshot(fileName, fullPage = false) {
|
|
@@ -2396,7 +2396,7 @@ class WebDriver extends Helper {
|
|
|
2396
2396
|
* ```
|
|
2397
2397
|
*
|
|
2398
2398
|
* @param {Cookie|Array<Cookie>} cookie a cookie object or array of cookie objects.
|
|
2399
|
-
* @returns {
|
|
2399
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2400
2400
|
*
|
|
2401
2401
|
*
|
|
2402
2402
|
*
|
|
@@ -2413,11 +2413,10 @@ class WebDriver extends Helper {
|
|
|
2413
2413
|
*
|
|
2414
2414
|
* ```js
|
|
2415
2415
|
* I.clearCookie();
|
|
2416
|
-
* I.clearCookie('test');
|
|
2416
|
+
* I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
|
|
2417
2417
|
* ```
|
|
2418
2418
|
*
|
|
2419
2419
|
* @param {?string} [cookie=null] (optional, `null` by default) cookie name
|
|
2420
|
-
* @returns {Promise<void>} automatically synchronized promise through #recorder
|
|
2421
2420
|
*
|
|
2422
2421
|
*/
|
|
2423
2422
|
async clearCookie(cookie) {
|
|
@@ -2432,7 +2431,7 @@ class WebDriver extends Helper {
|
|
|
2432
2431
|
* ```
|
|
2433
2432
|
*
|
|
2434
2433
|
* @param {string} name cookie name.
|
|
2435
|
-
* @returns {
|
|
2434
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2436
2435
|
*
|
|
2437
2436
|
*/
|
|
2438
2437
|
async seeCookie(name) {
|
|
@@ -2448,7 +2447,7 @@ class WebDriver extends Helper {
|
|
|
2448
2447
|
* ```
|
|
2449
2448
|
*
|
|
2450
2449
|
* @param {string} name cookie name.
|
|
2451
|
-
* @returns {
|
|
2450
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2452
2451
|
*
|
|
2453
2452
|
*/
|
|
2454
2453
|
async dontSeeCookie(name) {
|
|
@@ -2545,7 +2544,7 @@ class WebDriver extends Helper {
|
|
|
2545
2544
|
* ```
|
|
2546
2545
|
*
|
|
2547
2546
|
* @param {string} key name of key to press down.
|
|
2548
|
-
* @returns {
|
|
2547
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2549
2548
|
*
|
|
2550
2549
|
*/
|
|
2551
2550
|
async pressKeyDown(key) {
|
|
@@ -2575,7 +2574,7 @@ class WebDriver extends Helper {
|
|
|
2575
2574
|
* ```
|
|
2576
2575
|
*
|
|
2577
2576
|
* @param {string} key name of key to release.
|
|
2578
|
-
* @returns {
|
|
2577
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2579
2578
|
*
|
|
2580
2579
|
*/
|
|
2581
2580
|
async pressKeyUp(key) {
|
|
@@ -2653,7 +2652,7 @@ class WebDriver extends Helper {
|
|
|
2653
2652
|
* - `'Tab'`
|
|
2654
2653
|
*
|
|
2655
2654
|
* @param {string|string[]} key key or array of keys to press.
|
|
2656
|
-
* @returns {
|
|
2655
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2657
2656
|
*
|
|
2658
2657
|
*
|
|
2659
2658
|
* _Note:_ In case a text field or textarea is focused be aware that some browsers do not respect active modifier when combining modifier keys with other keys.
|
|
@@ -2717,7 +2716,7 @@ class WebDriver extends Helper {
|
|
|
2717
2716
|
*
|
|
2718
2717
|
* @param {string|string[]} key or array of keys to type.
|
|
2719
2718
|
* @param {?number} [delay=null] (optional) delay in ms between key presses
|
|
2720
|
-
* @returns {
|
|
2719
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2721
2720
|
*
|
|
2722
2721
|
*/
|
|
2723
2722
|
async type(keys, delay = null) {
|
|
@@ -2741,7 +2740,7 @@ class WebDriver extends Helper {
|
|
|
2741
2740
|
*
|
|
2742
2741
|
* @param {number} width width in pixels or `maximize`.
|
|
2743
2742
|
* @param {number} height height in pixels.
|
|
2744
|
-
* @returns {
|
|
2743
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2745
2744
|
*
|
|
2746
2745
|
* Appium: not tested in web, in apps doesn't work
|
|
2747
2746
|
*/
|
|
@@ -2783,7 +2782,7 @@ class WebDriver extends Helper {
|
|
|
2783
2782
|
*
|
|
2784
2783
|
* @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
|
|
2785
2784
|
* @param {any} [options] Playwright only: [Additional options](https://playwright.dev/docs/api/class-locator#locator-focus) for available options object as 2nd argument.
|
|
2786
|
-
* @returns {
|
|
2785
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2787
2786
|
*
|
|
2788
2787
|
*
|
|
2789
2788
|
*/
|
|
@@ -2813,7 +2812,7 @@ class WebDriver extends Helper {
|
|
|
2813
2812
|
*
|
|
2814
2813
|
* @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
|
|
2815
2814
|
* @param {any} [options] Playwright only: [Additional options](https://playwright.dev/docs/api/class-locator#locator-blur) for available options object as 2nd argument.
|
|
2816
|
-
* @returns {
|
|
2815
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2817
2816
|
*
|
|
2818
2817
|
*
|
|
2819
2818
|
*/
|
|
@@ -2834,7 +2833,7 @@ class WebDriver extends Helper {
|
|
|
2834
2833
|
*
|
|
2835
2834
|
* @param {LocatorOrString} srcElement located by CSS|XPath|strict locator.
|
|
2836
2835
|
* @param {LocatorOrString} destElement located by CSS|XPath|strict locator.
|
|
2837
|
-
* @returns {
|
|
2836
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2838
2837
|
*
|
|
2839
2838
|
* Appium: not tested
|
|
2840
2839
|
*/
|
|
@@ -2861,7 +2860,7 @@ class WebDriver extends Helper {
|
|
|
2861
2860
|
*
|
|
2862
2861
|
* @param {CodeceptJS.LocatorOrString} locator located by label|name|CSS|XPath|strict locator.
|
|
2863
2862
|
* @param {number} offsetX position to drag.
|
|
2864
|
-
* @returns {
|
|
2863
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2865
2864
|
*
|
|
2866
2865
|
*/
|
|
2867
2866
|
async dragSlider(locator, offsetX = 0) {
|
|
@@ -2949,7 +2948,7 @@ class WebDriver extends Helper {
|
|
|
2949
2948
|
* I.closeOtherTabs();
|
|
2950
2949
|
* ```
|
|
2951
2950
|
*
|
|
2952
|
-
* @returns {
|
|
2951
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2953
2952
|
*
|
|
2954
2953
|
*/
|
|
2955
2954
|
async closeOtherTabs() {
|
|
@@ -2972,7 +2971,7 @@ class WebDriver extends Helper {
|
|
|
2972
2971
|
* ```
|
|
2973
2972
|
*
|
|
2974
2973
|
* @param {number} sec number of second to wait.
|
|
2975
|
-
* @returns {
|
|
2974
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2976
2975
|
*
|
|
2977
2976
|
*/
|
|
2978
2977
|
async wait(sec) {
|
|
@@ -2987,7 +2986,7 @@ class WebDriver extends Helper {
|
|
|
2987
2986
|
*
|
|
2988
2987
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
2989
2988
|
* @param {number} [sec=1] (optional) time in seconds to wait, 1 by default.
|
|
2990
|
-
* @returns {
|
|
2989
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
2991
2990
|
*
|
|
2992
2991
|
*/
|
|
2993
2992
|
async waitForEnabled(locator, sec = null) {
|
|
@@ -3020,7 +3019,7 @@ class WebDriver extends Helper {
|
|
|
3020
3019
|
*
|
|
3021
3020
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
3022
3021
|
* @param {number} [sec] (optional, `1` by default) time in seconds to wait
|
|
3023
|
-
* @returns {
|
|
3022
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3024
3023
|
*
|
|
3025
3024
|
*/
|
|
3026
3025
|
async waitForElement(locator, sec = null) {
|
|
@@ -3043,7 +3042,7 @@ class WebDriver extends Helper {
|
|
|
3043
3042
|
*
|
|
3044
3043
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
3045
3044
|
* @param {number} [sec] (optional, `1` by default) time in seconds to wait
|
|
3046
|
-
* @returns {
|
|
3045
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3047
3046
|
*
|
|
3048
3047
|
*/
|
|
3049
3048
|
async waitForClickable(locator, waitTimeout) {
|
|
@@ -3067,7 +3066,7 @@ class WebDriver extends Helper {
|
|
|
3067
3066
|
*
|
|
3068
3067
|
* @param {string} urlPart value to check.
|
|
3069
3068
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3070
|
-
* @returns {
|
|
3069
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3071
3070
|
*
|
|
3072
3071
|
*/
|
|
3073
3072
|
async waitInUrl(urlPart, sec = null) {
|
|
@@ -3099,7 +3098,7 @@ class WebDriver extends Helper {
|
|
|
3099
3098
|
*
|
|
3100
3099
|
* @param {string} urlPart value to check.
|
|
3101
3100
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3102
|
-
* @returns {
|
|
3101
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3103
3102
|
*
|
|
3104
3103
|
*/
|
|
3105
3104
|
async waitUrlEquals(urlPart, sec = null) {
|
|
@@ -3135,7 +3134,7 @@ class WebDriver extends Helper {
|
|
|
3135
3134
|
* @param {string }text to wait for.
|
|
3136
3135
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3137
3136
|
* @param {CodeceptJS.LocatorOrString} [context] (optional) element located by CSS|XPath|strict locator.
|
|
3138
|
-
* @returns {
|
|
3137
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3139
3138
|
*
|
|
3140
3139
|
*
|
|
3141
3140
|
*/
|
|
@@ -3167,7 +3166,7 @@ class WebDriver extends Helper {
|
|
|
3167
3166
|
* @param {LocatorOrString} field input field.
|
|
3168
3167
|
* @param {string }value expected value.
|
|
3169
3168
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3170
|
-
* @returns {
|
|
3169
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3171
3170
|
*
|
|
3172
3171
|
*/
|
|
3173
3172
|
async waitForValue(field, value, sec = null) {
|
|
@@ -3198,7 +3197,7 @@ class WebDriver extends Helper {
|
|
|
3198
3197
|
*
|
|
3199
3198
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
3200
3199
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3201
|
-
* @returns {
|
|
3200
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3202
3201
|
*
|
|
3203
3202
|
*
|
|
3204
3203
|
*/
|
|
@@ -3226,7 +3225,7 @@ class WebDriver extends Helper {
|
|
|
3226
3225
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
3227
3226
|
* @param {number} num number of elements.
|
|
3228
3227
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3229
|
-
* @returns {
|
|
3228
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3230
3229
|
*
|
|
3231
3230
|
*/
|
|
3232
3231
|
async waitNumberOfVisibleElements(locator, num, sec = null) {
|
|
@@ -3253,7 +3252,7 @@ class WebDriver extends Helper {
|
|
|
3253
3252
|
*
|
|
3254
3253
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
3255
3254
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3256
|
-
* @returns {
|
|
3255
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3257
3256
|
*
|
|
3258
3257
|
*/
|
|
3259
3258
|
async waitForInvisible(locator, sec = null) {
|
|
@@ -3277,7 +3276,7 @@ class WebDriver extends Helper {
|
|
|
3277
3276
|
*
|
|
3278
3277
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
3279
3278
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3280
|
-
* @returns {
|
|
3279
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3281
3280
|
*
|
|
3282
3281
|
*/
|
|
3283
3282
|
async waitToHide(locator, sec = null) {
|
|
@@ -3294,7 +3293,7 @@ class WebDriver extends Helper {
|
|
|
3294
3293
|
*
|
|
3295
3294
|
* @param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
|
|
3296
3295
|
* @param {number} [sec=1] (optional, `1` by default) time in seconds to wait
|
|
3297
|
-
* @returns {
|
|
3296
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3298
3297
|
*
|
|
3299
3298
|
*/
|
|
3300
3299
|
async waitForDetached(locator, sec = null) {
|
|
@@ -3326,7 +3325,7 @@ class WebDriver extends Helper {
|
|
|
3326
3325
|
* @param {string|function} fn to be executed in browser context.
|
|
3327
3326
|
* @param {any[]|number} [argsOrSec] (optional, `1` by default) arguments for function or seconds.
|
|
3328
3327
|
* @param {number} [sec] (optional, `1` by default) time in seconds to wait
|
|
3329
|
-
* @returns {
|
|
3328
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3330
3329
|
*
|
|
3331
3330
|
*/
|
|
3332
3331
|
async waitForFunction(fn, argsOrSec = null, sec = null) {
|
|
@@ -3353,7 +3352,7 @@ class WebDriver extends Helper {
|
|
|
3353
3352
|
* ```
|
|
3354
3353
|
*
|
|
3355
3354
|
* @param {?CodeceptJS.LocatorOrString} [locator=null] (optional, `null` by default) element located by CSS|XPath|strict locator.
|
|
3356
|
-
* @returns {
|
|
3355
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3357
3356
|
*
|
|
3358
3357
|
*/
|
|
3359
3358
|
async switchTo(locator) {
|
|
@@ -3381,7 +3380,7 @@ class WebDriver extends Helper {
|
|
|
3381
3380
|
*
|
|
3382
3381
|
* @param {number} [num] (optional) number of tabs to switch forward, default: 1.
|
|
3383
3382
|
* @param {number | null} [sec] (optional) time in seconds to wait.
|
|
3384
|
-
* @returns {
|
|
3383
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3385
3384
|
*
|
|
3386
3385
|
*/
|
|
3387
3386
|
async switchToNextTab(num = 1, sec = null) {
|
|
@@ -3410,7 +3409,7 @@ class WebDriver extends Helper {
|
|
|
3410
3409
|
*
|
|
3411
3410
|
* @param {number} [num] (optional) number of tabs to switch backward, default: 1.
|
|
3412
3411
|
* @param {number?} [sec] (optional) time in seconds to wait.
|
|
3413
|
-
* @returns {
|
|
3412
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3414
3413
|
*
|
|
3415
3414
|
*/
|
|
3416
3415
|
async switchToPreviousTab(num = 1, sec = null) {
|
|
@@ -3436,7 +3435,7 @@ class WebDriver extends Helper {
|
|
|
3436
3435
|
* I.closeCurrentTab();
|
|
3437
3436
|
* ```
|
|
3438
3437
|
*
|
|
3439
|
-
* @returns {
|
|
3438
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3440
3439
|
*
|
|
3441
3440
|
*/
|
|
3442
3441
|
async closeCurrentTab() {
|
|
@@ -3452,7 +3451,7 @@ class WebDriver extends Helper {
|
|
|
3452
3451
|
* I.openNewTab();
|
|
3453
3452
|
* ```
|
|
3454
3453
|
*
|
|
3455
|
-
* @returns {
|
|
3454
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3456
3455
|
*
|
|
3457
3456
|
*/
|
|
3458
3457
|
async openNewTab(url = 'about:blank', windowName = null) {
|
|
@@ -3487,7 +3486,7 @@ class WebDriver extends Helper {
|
|
|
3487
3486
|
* ```js
|
|
3488
3487
|
* I.refreshPage();
|
|
3489
3488
|
* ```
|
|
3490
|
-
* @returns {
|
|
3489
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3491
3490
|
*
|
|
3492
3491
|
*/
|
|
3493
3492
|
async refreshPage() {
|
|
@@ -3501,7 +3500,7 @@ class WebDriver extends Helper {
|
|
|
3501
3500
|
* ```js
|
|
3502
3501
|
* I.scrollPageToTop();
|
|
3503
3502
|
* ```
|
|
3504
|
-
* @returns {
|
|
3503
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3505
3504
|
*
|
|
3506
3505
|
*/
|
|
3507
3506
|
scrollPageToTop() {
|
|
@@ -3519,7 +3518,7 @@ class WebDriver extends Helper {
|
|
|
3519
3518
|
* ```js
|
|
3520
3519
|
* I.scrollPageToBottom();
|
|
3521
3520
|
* ```
|
|
3522
|
-
* @returns {
|
|
3521
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3523
3522
|
*
|
|
3524
3523
|
*/
|
|
3525
3524
|
scrollPageToBottom() {
|
|
@@ -3574,7 +3573,7 @@ class WebDriver extends Helper {
|
|
|
3574
3573
|
* @param {number} latitude to set.
|
|
3575
3574
|
* @param {number} longitude to set
|
|
3576
3575
|
* @param {number=} altitude (optional, null by default) to set
|
|
3577
|
-
* @returns {
|
|
3576
|
+
* @returns {void} automatically synchronized promise through #recorder
|
|
3578
3577
|
*
|
|
3579
3578
|
*/
|
|
3580
3579
|
async setGeoLocation(latitude, longitude, altitude = null) {
|