We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2acb28 commit 9fe5661Copy full SHA for 9fe5661
java/client/test/org/openqa/selenium/testing/drivers/TestChromeDriver.java
@@ -81,6 +81,10 @@ private static DesiredCapabilities chromeWithCustomCapabilities(
81
Capabilities originalCapabilities) {
82
ChromeOptions options = new ChromeOptions();
83
options.addArguments("disable-extensions", "disable-infobars", "disable-breakpad");
84
+ Map<String, Object> prefs = new HashMap<>();
85
+ prefs.put("exit_type", "None");
86
+ prefs.put("exited_cleanly", true);
87
+ options.setExperimentalOption("prefs", prefs);
88
String chromePath = System.getProperty("webdriver.chrome.binary");
89
if (chromePath != null) {
90
options.setBinary(new File(chromePath));
0 commit comments