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
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Type: [object][5]
40
40
### Properties
41
41
42
42
-`url`**[string][8]** base url of website to be tested
43
-
-`browser`**[string][8]?** a browser to test on, either: `chromium`, `firefox`, `webkit`, `electron`. Default: chromium.
43
+
-`browser`**(`"chromium"` | `"firefox"` | `"webkit"` | `"electron"`)?** a browser to test on, either: `chromium`, `firefox`, `webkit`, `electron`. Default: chromium.
44
44
-`show`**[boolean][26]?** show browser window.
45
45
-`restart`**([string][8] | [boolean][26])?** restart strategy between tests. Possible values:- 'context' or **false** - restarts [browser context][33] but keeps running browser. Recommended by Playwright team to keep tests isolated.
46
46
- 'browser' or **true** - closes browser and opens it again between tests.
@@ -57,13 +57,13 @@ Type: [object][5]
57
57
-`keepBrowserState`**[boolean][26]?** keep browser state between tests when `restart` is set to 'session'.
58
58
-`keepCookies`**[boolean][26]?** keep cookies between tests when `restart` is set to 'session'.
59
59
-`waitForAction`**[number][12]?** how long to wait after click, doubleClick or PressKey actions in ms. Default: 100.
60
-
-`waitForNavigation`**[string][8]?** When to consider navigation succeeded. Possible options: `load`, `domcontentloaded`, `networkidle`. Choose one of those options is possible. See [Playwright API][36].
60
+
-`waitForNavigation`**(`"load"` | `"domcontentloaded"` | `"networkidle"`)?** When to consider navigation succeeded. Possible options: `load`, `domcontentloaded`, `networkidle`. Choose one of those options is possible. See [Playwright API][36].
61
61
-`pressKeyDelay`**[number][12]?** Delay between key presses in ms. Used when calling Playwrights page.type(...) in fillField/appendField
62
62
-`getPageTimeout`**[number][12]?** config option to set maximum navigation time in milliseconds.
63
63
-`waitForTimeout`**[number][12]?** default wait* timeout in ms. Default: 1000.
64
64
-`basicAuth`**[object][5]?** the basic authentication to pass to base url. Example: {username: 'username', password: 'password'}
65
65
-`windowSize`**[string][8]?** default window size. Set a dimension like `640x480`.
66
-
-`colorScheme`**[string][8]?** default color scheme. Possible values: `dark` | `light` | `no-preference`.
66
+
-`colorScheme`**(`"dark"` | `"light"` | `"no-preference"`)?** default color scheme. Possible values: `dark` | `light` | `no-preference`.
-`manualStart`**[boolean][26]?** do not start browser before a test, start it manually inside a helper with `this.helpers["Playwright"]._startBrowser()`.
Copy file name to clipboardExpand all lines: lib/helper/Playwright.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ const pathSeparator = path.sep;
54
54
* @typedef PlaywrightConfig
55
55
* @type {object}
56
56
* @prop {string} url - base url of website to be tested
57
-
* @prop {string} [browser] - a browser to test on, either: `chromium`, `firefox`, `webkit`, `electron`. Default: chromium.
57
+
* @prop {'chromium' | 'firefox'| 'webkit' | 'electron'} [browser='chromium'] - a browser to test on, either: `chromium`, `firefox`, `webkit`, `electron`. Default: chromium.
58
58
* @prop {boolean} [show=false] - show browser window.
59
59
* @prop {string|boolean} [restart=false] - restart strategy between tests. Possible values:
60
60
* * 'context' or **false** - restarts [browser context](https://playwright.dev/docs/api/class-browsercontext) but keeps running browser. Recommended by Playwright team to keep tests isolated.
* @prop {boolean} [keepBrowserState=false] - keep browser state between tests when `restart` is set to 'session'.
73
73
* @prop {boolean} [keepCookies=false] - keep cookies between tests when `restart` is set to 'session'.
74
74
* @prop {number} [waitForAction] - how long to wait after click, doubleClick or PressKey actions in ms. Default: 100.
75
-
* @prop {string} [waitForNavigation] - When to consider navigation succeeded. Possible options: `load`, `domcontentloaded`, `networkidle`. Choose one of those options is possible. See [Playwright API](https://playwright.dev/docs/api/class-page#page-wait-for-navigation).
75
+
* @prop {'load' | 'domcontentloaded' | 'networkidle'} [waitForNavigation] - When to consider navigation succeeded. Possible options: `load`, `domcontentloaded`, `networkidle`. Choose one of those options is possible. See [Playwright API](https://playwright.dev/docs/api/class-page#page-wait-for-navigation).
76
76
* @prop {number} [pressKeyDelay=10] - Delay between key presses in ms. Used when calling Playwrights page.type(...) in fillField/appendField
77
77
* @prop {number} [getPageTimeout] - config option to set maximum navigation time in milliseconds.
* @prop {boolean} [manualStart] - do not start browser before a test, start it manually inside a helper with `this.helpers["Playwright"]._startBrowser()`.
0 commit comments