Skip to content

Commit 8bbfea8

Browse files
Update Readme.md
1 parent 9ee9e46 commit 8bbfea8

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

Readme.md

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,20 @@ Enable the module in `codeception.yml`:
4040
modules:
4141
enabled:
4242
- 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
4652
```
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)
6054
6155
> [!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!
6357

6458
## Usage
6559

0 commit comments

Comments
 (0)