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
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,6 @@ Most common config values are:
53
53
* `browser` - either `chromium`, `firefox`, `webkit`
54
54
* `show` - (default: `true`) to show browser or set to `false` to run tests in headless mode
55
55
* `timeout` - (default: `5000`) timeout (in ms) for all Playwright operations
56
-
* `pw_start` - (default: `true`) start Playwright Server (Proxy to CodeceptJS) automatically. Set to `false` and run server manually in case server doesn't start.
57
56
* `pw_server` - (default: 'http://localhost:8191') url of Playwright Server
58
57
* `pw_debug` - (default: `false`) print Playwright Server debug information
59
58
* `video` - save video on fail
@@ -68,28 +67,29 @@ More configuration options are is listed on [CodeceptJS Playwright page](https:/
68
67
69
68
## Usage
70
69
71
-
Playwright module requires NodeJS server to be running. Playwright module will start it and stop automatically. Default port is **8191**.
70
+
Playwright module requires NodeJS server to be running. Start the server manually:
72
71
73
-
If you want to disable automatic server start, set `start` option to `false`:
72
+
```
73
+
npx codeception-playwright-module
74
+
```
75
+
76
+
If you want to start server automatically, use [RunProcess extension](https://codeception.com/extensions#RunProcess) from Codeception
74
77
75
78
```yaml
76
-
modules:
79
+
extensions:
77
80
enabled:
78
-
- Playwright:
79
-
url: 'http://localhost'
80
-
browser: 'chromium'
81
-
show: true
82
-
pw_start: false
81
+
- Codeception\Extension\RunProcess:
82
+
0: npx codeception-playwright-module
83
+
sleep: 3 # wait 5 seconds for processes to boot
83
84
```
84
85
85
-
In this case you can start the server manually:
86
+
If you start server on different host or port, run port with `--port` option:
86
87
87
-
```bash
88
-
npx codeception-playwright-module
89
88
```
90
-
Please check that server can be started with no issues.
0 commit comments