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
* This library can be used with any scala version 2.x and 3.x
42
-
* This project is compiled with scala 2.12.18
42
+
* This project is compiled with scala 2.12.20
43
43
### sbt versions
44
44
* This library can be used with any sbt version 1.x
45
45
### Playwright versions
46
-
* This library can be used with playwright version 1.40.0 `"com.microsoft.playwright" % "playwright" % "1.40.0"`
46
+
* This library can be used with playwright version 1.49.0 `"com.microsoft.playwright" % "playwright" % "1.49.0"`
47
47
### JDK versions
48
48
* This library is tested on JDK11 and JDK21
49
49
@@ -56,6 +56,51 @@ jsEnv := new jsenv.playwright.PWEnv(
56
56
)
57
57
```
58
58
59
+
## Launch options
60
+
61
+
The launch options are used to enable/disable the browser features. They can be overridden via the launchOptions parameter or extended via the additionalLaunchOptions parameter.
62
+
63
+
When not passing launchOptions, default launch options are as follows:
64
+
65
+
### Chrome/chromium
66
+
```scala
67
+
jsEnv :=new jsenv.playwright.PWEnv(
68
+
browserName ="chrome",
69
+
launchOptions =List(
70
+
"--disable-extensions",
71
+
"--disable-web-security",
72
+
"--allow-running-insecure-content",
73
+
"--disable-site-isolation-trials",
74
+
"--allow-file-access-from-files",
75
+
"--disable-gpu"
76
+
)
77
+
)
78
+
```
79
+
80
+
### Firefox
81
+
```scala
82
+
jsEnv :=new jsenv.playwright.PWEnv(
83
+
browserName ="firefox",
84
+
launchOptions =List(
85
+
"--disable-web-security"
86
+
)
87
+
)
88
+
```
89
+
90
+
### Webkit
91
+
```scala
92
+
jsEnv :=new jsenv.playwright.PWEnv(
93
+
browserName ="webkit",
94
+
launchOptions =List(
95
+
"--disable-extensions",
96
+
"--disable-web-security",
97
+
"--allow-running-insecure-content",
98
+
"--disable-site-isolation-trials",
99
+
"--allow-file-access-from-files"
100
+
)
101
+
)
102
+
```
103
+
59
104
## KeepAlive configuration
60
105
It is work in progress.
61
106
As a workaround introducing delay in the test cases may help to keep the browser alive.
0 commit comments