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
+12-16Lines changed: 12 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,14 @@ Type: [object][6]
46
46
*`url`**[string][9]?** 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][27]?** show browser window.
49
-
*`restart`**([string][9] | [boolean][27])?** restart strategy between tests. Possible values:* 'context' or **false** - restarts [browser context][45] but keeps running browser. Recommended by Playwright team to keep tests isolated.
49
+
*`restart`**([string][9] | [boolean][27])?** restart strategy between tests. Possible values:* 'context' or **false** - restarts [browser context][44] but keeps running browser. Recommended by Playwright team to keep tests isolated.
50
50
* '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
51
-
*`timeout`**[number][18]?** * [timeout][46] in ms of all Playwright actions .
51
+
*`timeout`**[number][18]?** * [timeout][45] in ms of all Playwright actions .
52
52
*`disableScreenshots`**[boolean][27]?** don't save screenshot on failure.
53
53
*`emulate`**any?** browser in device emulation mode.
54
54
*`video`**[boolean][27]?** enables video recording for failed tests; videos are saved into `output/videos` folder
55
55
*`keepVideoForPassedTests`**[boolean][27]?** save videos for passed tests; videos are saved into `output/videos` folder
56
-
*`trace`**[boolean][27]?** record [tracing information][47] with screenshots and snapshots.
56
+
*`trace`**[boolean][27]?** record [tracing information][46] with screenshots and snapshots.
57
57
*`keepTraceForPassedTests`**[boolean][27]?** save trace for passed tests.
58
58
*`fullPageScreenshots`**[boolean][27]?** make full page screenshots on failure.
59
59
*`uniqueScreenshotNames`**[boolean][27]?** option to prevent screenshot override if you have scenarios with the same name in different suites.
*`electron`**[object][6]?** (pass additional electron options
76
-
*`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][48].
77
-
*`ignoreLog`**[Array][10]<[string][9]>?** 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][49].
76
+
*`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][47].
77
+
*`ignoreLog`**[Array][10]<[string][9]>?** 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][48].
78
78
*`ignoreHTTPSErrors`**[boolean][27]?** Allows access to untrustworthy pages, e.g. to a page with an expired certificate. Default value is `false`
79
79
*`bypassCSP`**[boolean][27]?** bypass Content Security Policy or CSP
80
80
*`highlightElement`**[boolean][27]?** highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
81
81
*`recordHar`**[object][6]?** record HAR and will be saved to `output/har`. See more of [HAR options][3].
82
-
*`testIdAttribute`**[string][9]?** locate elements based on the testIdAttribute. See more of [locate by test id][50].
82
+
*`testIdAttribute`**[string][9]?** locate elements based on the testIdAttribute. See more of [locate by test id][49].
83
83
*`storageState`**([string][9] | [object][6])?** Playwright storage state (path to JSON file or object)
84
84
passed directly to `browser.newContext`.
85
85
If a Scenario is declared with a `cookies` option (e.g. `Scenario('name', { cookies: [...] }, fn)`),
0 commit comments