File tree Expand file tree Collapse file tree
java/test/org/openqa/selenium/testing/drivers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818package org .openqa .selenium .testing .drivers ;
1919
20- import static org .openqa .selenium .remote .CapabilityType .BROWSER_NAME ;
21-
2220import org .openqa .selenium .Capabilities ;
2321import org .openqa .selenium .ImmutableCapabilities ;
2422import org .openqa .selenium .chrome .ChromeDriverInfo ;
3937import java .util .Map ;
4038import java .util .logging .Logger ;
4139
40+ import static org .openqa .selenium .remote .CapabilityType .BROWSER_NAME ;
41+
4242public enum Browser {
4343 ALL (new ImmutableCapabilities (), "any" , false ),
4444 CHROME (new ChromeOptions (), new ChromeDriverInfo ().getDisplayName (), true ) {
@@ -84,7 +84,12 @@ public Capabilities getCapabilities() {
8484 options .setHeadless (true );
8585 }
8686
87- options .addArguments ("disable-extensions" , "disable-infobars" , "disable-breakpad" );
87+ options .addArguments (
88+ "disable-extensions" ,
89+ "disable-infobars" ,
90+ "disable-breakpad" ,
91+ "disable-dev-shm-usage" ,
92+ "no-sandbox" );
8893
8994 Map <String , Object > prefs = new HashMap <>();
9095 prefs .put ("exit_type" , "None" );
You can’t perform that action at this time.
0 commit comments