@@ -24,7 +24,8 @@ Test / jsEnv := new PWEnv(
2424 // For Scala.js 1.x
2525 scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind .ESModule ) }
2626 ```
27- * Some projects which may need to use both Selenium and Playwright . If it runs into google exception, add the following line to your `plugins.sbt`
27+ * Some projects which may need to use both Selenium and Playwright .
28+ If it runs into google exception, add the following line to your `plugins.sbt`
2829```scala
2930libraryDependencies += " com.google.guava" % " guava" % " 33.0.0-jre"
3031```
@@ -33,7 +34,7 @@ libraryDependencies += "com.google.guava" % "guava" % "33.0.0-jre"
3334* chrome
3435* chromium (same as chrome)
3536* firefox
36- * webkit (experimental)
37+ * webkit (experimental) - Works will on macOS. Mileage may vary on other platforms.
3738
3839## Compatibility notes
3940### Scala versions
@@ -56,34 +57,12 @@ jsEnv := new jsenv.playwright.PWEnv(
5657```
5758
5859## KeepAlive configuration
59- ``` scala
60- lazy val pwenvConfig = Def .setting {
61- jsenv.playwright.PWEnv
62- .Config ()
63- .withKeepAlive(false )
64- }
65-
66- jsEnv := new jsenv.playwright.PWEnv (
67- browserName = " chrome" ,
68- headless = true ,
69- showLogs = true ,
70- pwenvConfig.value,
71- )
72-
73- ```
60+ It is work in progress.
61+ As a workaround introducing delay in the test cases may help to keep the browser alive.
7462
7563## Wiki
7664Watch this space for more details on how to use this library.
7765
7866## References
7967* Sample project using this JSEnv: https://github.com/gmkumar2005/scalajs-sbt-vite-laminar-chartjs-example
8068
81- ## Todo
82- * Add examples to demonstrate how to use LaunchOptions
83- * ~~ Add feature to keepAlive the browser~~
84- * Optimize to use a single browser instance for all tests by creating multiple tabs
85- * ~~ Configure github actions to test this project~~
86- * Configure github actions to publish to maven central
87- * Verify debug mode works
88- * Verify other test frameworks work
89- * Verify it works on windows and Linux
0 commit comments