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
|
@@ -2492,6 +2492,21 @@ See [Playwright's reference][41]
|
|
|
2492
2492
|
|
|
2493
2493
|
- `options` **any**
|
|
2494
2494
|
|
|
2495
|
+
### waitForNumberOfTabs
|
|
2496
|
+
|
|
2497
|
+
Waits for number of tabs.
|
|
2498
|
+
|
|
2499
|
+
```js
|
|
2500
|
+
I.waitForNumberOfTabs(2);
|
|
2501
|
+
```
|
|
2502
|
+
|
|
2503
|
+
#### Parameters
|
|
2504
|
+
|
|
2505
|
+
- `expectedTabs` **[number][20]** expecting the number of tabs.
|
|
2506
|
+
- `sec` **[number][20]** number of secs to wait.
|
|
2507
|
+
|
|
2508
|
+
Returns **void** automatically synchronized promise through #recorder
|
|
2509
|
+
|
|
2495
2510
|
### waitForRequest
|
|
2496
2511
|
|
|
2497
2512
|
Waits for a network request.
|
|
@@ -2101,6 +2101,21 @@ See [Puppeteer's reference][23]
|
|
|
2101
2101
|
|
|
2102
2102
|
- `opts` **any**
|
|
2103
2103
|
|
|
2104
|
+
### waitForNumberOfTabs
|
|
2105
|
+
|
|
2106
|
+
Waits for number of tabs.
|
|
2107
|
+
|
|
2108
|
+
```js
|
|
2109
|
+
I.waitForNumberOfTabs(2);
|
|
2110
|
+
```
|
|
2111
|
+
|
|
2112
|
+
#### Parameters
|
|
2113
|
+
|
|
2114
|
+
- `expectedTabs` **[number][10]** expecting the number of tabs.
|
|
2115
|
+
- `sec` **[number][10]** number of secs to wait.
|
|
2116
|
+
|
|
2117
|
+
Returns **void** automatically synchronized promise through #recorder
|
|
2118
|
+
|
|
2104
2119
|
### waitForRequest
|
|
2105
2120
|
|
|
2106
2121
|
Waits for a network request.
|