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: Readme.md
+11-17Lines changed: 11 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -40,26 +40,20 @@ Enable the module in `codeception.yml`:
40
40
modules:
41
41
enabled:
42
42
- Playwright:
43
-
url: 'http://localhost'
44
-
browser: 'chromium'
45
-
show: true
43
+
url: 'http://localhost'# Base url to open pages from
44
+
browser: 'chromium'# Either `chromium`, `firefox`, `webkit`
45
+
show: true # Show the browser (=default) or run tests in headless mode
46
+
timeout: 5000# Timeout (in ms) for all Playwright operations. Default: 5000
47
+
pw_start: true # Start Playwright server (proxy to CodeceptJS) automatically. Set to `false` and run the server manually in case the server doesn't start.
48
+
pw_server: http://localhost:8191 # Url of Playwright server. Default: http://localhost:8191
49
+
pw_debug: false # Print Playwright server debug information. Default: false
50
+
video: true # Save video on fail
51
+
trace: true # Save stack traces on fail
46
52
```
47
-
Most common config values are:
48
-
49
-
* `url`: Base url to open pages from
50
-
* `browser`: Either `chromium`, `firefox`, `webkit`
51
-
* `show` (default: `true`): Show the browser or run tests in headless mode
52
-
* `timeout` (default: `5000`): Timeout (in ms) for all Playwright operations
53
-
* `pw_start` (default: `true`): Start Playwright server (proxy to CodeceptJS) automatically. Set to `false` and run the server manually in case the server doesn't start.
54
-
* `pw_server` (default: `http://localhost:8191`): Url of Playwright server
55
-
* `pw_debug` (default: `false`): Print Playwright server debug information
56
-
* `video`: Save video on fail
57
-
* `trace`: Save stack traces on fail
58
-
59
-
More configuration options are is listed on [CodeceptJS Playwright page](https://codecept.io/helpers/Playwright/#configuration)
53
+
More configuration options are listed on [CodeceptJS Playwright page](https://codecept.io/helpers/Playwright/#configuration)
60
54
61
55
> [!Tip]
62
-
> This module is designed as drop-in WebDriver module replacement, you can change `WebDriver` to `Playwright` in your tests and try how it works!
56
+
> If you're switching from WebDriver, just change `WebDriver` to `Playwright` and see how it works!
0 commit comments