You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/helpers/Playwright.md
+45-23Lines changed: 45 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,22 +46,22 @@ Type: [object][5]
46
46
-`url`**[string][8]?** base url of website to be tested
47
47
-`browser`**(`"chromium"` | `"firefox"` | `"webkit"` | `"electron"`)?** a browser to test on, either: `chromium`, `firefox`, `webkit`, `electron`. Default: chromium.
48
48
-`show`**[boolean][25]?** show browser window.
49
-
-`restart`**([string][8] | [boolean][25])?** restart strategy between tests. Possible values:- 'context' or **false** - restarts [browser context][42] but keeps running browser. Recommended by Playwright team to keep tests isolated.
49
+
-`restart`**([string][8] | [boolean][25])?** restart strategy between tests. Possible values:- 'context' or **false** - restarts [browser context][43] but keeps running browser. Recommended by Playwright team to keep tests isolated.
50
50
- 'browser' or **true** - closes browser and opens it again between tests.
51
51
- 'session' or 'keep' - keeps browser context and session, but cleans up cookies and localStorage between tests. The fastest option when running tests in windowed mode. Works with `keepCookies` and `keepBrowserState` options. This behavior was default before CodeceptJS 3.1
52
-
-`timeout`**[number][19]?** - [timeout][43] in ms of all Playwright actions .
52
+
-`timeout`**[number][19]?** - [timeout][44] in ms of all Playwright actions .
53
53
-`disableScreenshots`**[boolean][25]?** don't save screenshot on failure.
54
54
-`emulate`**any?** browser in device emulation mode.
55
55
-`video`**[boolean][25]?** enables video recording for failed tests; videos are saved into `output/videos` folder
56
56
-`keepVideoForPassedTests`**[boolean][25]?** save videos for passed tests; videos are saved into `output/videos` folder
57
-
-`trace`**[boolean][25]?** record [tracing information][44] with screenshots and snapshots.
57
+
-`trace`**[boolean][25]?** record [tracing information][45] with screenshots and snapshots.
58
58
-`keepTraceForPassedTests`**[boolean][25]?** save trace for passed tests.
59
59
-`fullPageScreenshots`**[boolean][25]?** make full page screenshots on failure.
60
60
-`uniqueScreenshotNames`**[boolean][25]?** option to prevent screenshot override if you have scenarios with the same name in different suites.
61
61
-`keepBrowserState`**[boolean][25]?** keep browser state between tests when `restart` is set to 'session'.
62
62
-`keepCookies`**[boolean][25]?** keep cookies between tests when `restart` is set to 'session'.
63
63
-`waitForAction`**[number][19]?** how long to wait after click, doubleClick or PressKey actions in ms. Default: 100.
64
-
-`waitForNavigation`**(`"load"` | `"domcontentloaded"` | `"commit"`)?** When to consider navigation succeeded. Possible options: `load`, `domcontentloaded`, `commit`. Choose one of those options is possible. See [Playwright API][40].
64
+
-`waitForNavigation`**(`"load"` | `"domcontentloaded"` | `"commit"`)?** When to consider navigation succeeded. Possible options: `load`, `domcontentloaded`, `commit`. Choose one of those options is possible. See [Playwright API][41].
65
65
-`pressKeyDelay`**[number][19]?** Delay between key presses in ms. Used when calling Playwrights page.type(...) in fillField/appendField
66
66
-`getPageTimeout`**[number][19]?** config option to set maximum navigation time in milliseconds.
67
67
-`waitForTimeout`**[number][19]?** default wait* timeout in ms. Default: 1000.
-`electron`**[object][5]?** (pass additional electron options
77
-
-`channel`**any?** (While Playwright can operate against the stock Google Chrome and Microsoft Edge browsers available on the machine. In particular, current Playwright version will support Stable and Beta channels of these browsers. See [Google Chrome & Microsoft Edge][45].
78
-
-`ignoreLog`**[Array][9]<[string][8]>?** An array with console message types that are not logged to debug log. Default value is `['warning', 'log']`. E.g. you can set `[]` to log all messages. See all possible [values][46].
77
+
-`channel`**any?** (While Playwright can operate against the stock Google Chrome and Microsoft Edge browsers available on the machine. In particular, current Playwright version will support Stable and Beta channels of these browsers. See [Google Chrome & Microsoft Edge][46].
78
+
-`ignoreLog`**[Array][9]<[string][8]>?** An array with console message types that are not logged to debug log. Default value is `['warning', 'log']`. E.g. you can set `[]` to log all messages. See all possible [values][47].
79
79
-`ignoreHTTPSErrors`**[boolean][25]?** Allows access to untrustworthy pages, e.g. to a page with an expired certificate. Default value is `false`
80
80
-`bypassCSP`**[boolean][25]?** bypass Content Security Policy or CSP
81
81
-`highlightElement`**[boolean][25]?** highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
@@ -1606,6 +1606,26 @@ I.refreshPage();
1606
1606
1607
1607
Returns **void** automatically synchronized promise through #recorder
0 commit comments