Skip to content

Commit 12a4217

Browse files
authored
Merge pull request #2592 from oxsoft/headless
Update headless option
2 parents fd50544 + a8f5e46 commit 12a4217

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

karate-core/src/main/java/com/intuit/karate/driver/chrome/Chrome.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static Chrome start(Map<String, Object> map, ScenarioRuntime sr) {
7070
}
7171
options.arg("--disable-popup-blocking");
7272
if (options.headless) {
73-
options.arg("--headless");
73+
options.arg("--headless=new");
7474
}
7575
Command command = options.startProcess();
7676
Http http = options.getHttp();

karate-core/src/main/java/com/intuit/karate/driver/microsoft/EdgeChromium.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static EdgeChromium start(Map<String, Object> map, ScenarioRuntime sr) {
7272
}
7373
options.arg("--disable-popup-blocking");
7474
if (options.headless) {
75-
options.arg("--headless");
75+
options.arg("--headless=new");
7676
}
7777
Command command = options.startProcess();
7878
Http http = options.getHttp();

0 commit comments

Comments
 (0)