@@ -34,13 +34,13 @@ public void clearProperties() {
34
34
35
35
@ Test
36
36
public void basicOptions () {
37
- ChromeOptions options = new ChromeOptions ();
37
+ ChromeOptions options = getDefaultChromeOptions ();
38
38
driver = new ChromeDriver (options );
39
39
}
40
40
41
41
@ Test
42
42
public void arguments () {
43
- ChromeOptions options = new ChromeOptions ();
43
+ ChromeOptions options = getDefaultChromeOptions ();
44
44
45
45
options .addArguments ("--start-maximized" );
46
46
@@ -49,7 +49,7 @@ public void arguments() {
49
49
50
50
@ Test
51
51
public void setBrowserLocation () {
52
- ChromeOptions options = new ChromeOptions ();
52
+ ChromeOptions options = getDefaultChromeOptions ();
53
53
54
54
options .setBinary (getChromeLocation ());
55
55
@@ -58,7 +58,7 @@ public void setBrowserLocation() {
58
58
59
59
@ Test
60
60
public void extensionOptions () {
61
- ChromeOptions options = new ChromeOptions ();
61
+ ChromeOptions options = getDefaultChromeOptions ();
62
62
Path path = Paths .get ("src/test/resources/extensions/webextensions-selenium-example.crx" );
63
63
File extensionFilePath = new File (path .toUri ());
64
64
@@ -73,7 +73,7 @@ public void extensionOptions() {
73
73
74
74
@ Test
75
75
public void excludeSwitches () {
76
- ChromeOptions options = new ChromeOptions ();
76
+ ChromeOptions options = getDefaultChromeOptions ();
77
77
78
78
options .setExperimentalOption ("excludeSwitches" , List .of ("disable-popup-blocking" ));
79
79
@@ -82,7 +82,7 @@ public void excludeSwitches() {
82
82
83
83
@ Test
84
84
public void loggingPreferences () {
85
- ChromeOptions options = new ChromeOptions ();
85
+ ChromeOptions options = getDefaultChromeOptions ();
86
86
LoggingPreferences logPrefs = new LoggingPreferences ();
87
87
logPrefs .enable (LogType .PERFORMANCE , Level .ALL );
88
88
options .setCapability (ChromeOptions .LOGGING_PREFS , logPrefs );
@@ -175,7 +175,7 @@ public void disableBuildChecks() throws IOException {
175
175
}
176
176
177
177
private File getChromeLocation () {
178
- ChromeOptions options = new ChromeOptions ();
178
+ ChromeOptions options = getDefaultChromeOptions ();
179
179
options .setBrowserVersion ("stable" );
180
180
DriverFinder finder = new DriverFinder (ChromeDriverService .createDefaultService (), options );
181
181
return new File (finder .getBrowserPath ());
0 commit comments