Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Minor changes
  • Loading branch information
gmkumar2005 committed Jan 22, 2024
commit 02e0d16895082715309a4cc332c649f36f919912
11 changes: 8 additions & 3 deletions doc/project/js-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ Addtionally it requires the following line in `project/plugins.sbt`:
libraryDependencies += "io.github.gmkumar2005" %% "scala-js-env-playwright" % "0.1.8"
```

The `browserName` parameter accepts `chrome` , `chromium` , `firefox`, and `webkit` as possible options. Please be aware that webkit support is currently in an experimental stage.
The `browserName` parameter accepts `chrome` , `chromium` , `firefox`, and `webkit` as possible options.

Please be aware that webkit support is currently in an experimental stage.

### In browser debugging
To maintain the browser window open post-execution, simply incorporate the `withKeepAlive` option into the environment.
To maintain the browser window open post-execution, add the `withKeepAlive` option into the environment.

```scala
lazy val pwenvConfig = Def.setting {
Expand All @@ -111,7 +113,10 @@ jsEnv := new jsenv.playwright.PWEnv(

```
### Headless Usage
Running in headless mode is crucial for operations within Docker containers and build servers. By default, `scala-js-env-playwright` operates in headless mode. However, for debugging purposes, you can set headless to `false`.
Running in headless mode is crucial for operations within Docker containers and build servers.

By default, `scala-js-env-playwright` operates in headless mode.
However, for debugging purposes, you can set headless to `false`.

## Details
For more options of the plawwright environment see the github project [PlayWright-jsEnv](https://github.com/gmkumar2005/scala-js-env-playwright)
Expand Down