Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasvuono authored Jul 27, 2022
1 parent 2783cd3 commit 8591360
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,18 @@ Then:
```shell
xk6 build --output xk6-playwright --with github.com/wosp-io/xk6-playwright
```

on Windows:
```shell
xk6 build --output xk6-playwright.exe --with github.com/wosp-io/xk6-playwright
```
This will create a `xk6-playwright` binary file in the current working directory. This file can be used exactly the same as the main `k6` binary, with the addition of being able to run xk6-playwright scripts.

3. For the tool to work, the browsers and OS dependencies must be installed locally. You can use the following command for this:
```shell
go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps
```

3. Run scripts that import `k6/x/playwright` with the new `xk6-playwright` binary. On Linux and macOS make sure this is done by referencing the file in the current directory, e.g. `./xk6-playwright run <script>`, or you can place it somewhere in your `PATH` so that it can be run from anywhere on your system.
4. Run scripts that import `k6/x/playwright` with the new `xk6-playwright` binary. On Linux and macOS make sure this is done by referencing the file in the current directory, e.g. `./xk6-playwright run <script>`, or you can place it somewhere in your `PATH` so that it can be run from anywhere on your system.

</br>

Expand Down

0 comments on commit 8591360

Please sign in to comment.