File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed
java/src/org/openqa/selenium/chrome Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public ChromeDriver(ChromeDriverService service) {
68
68
* @see #ChromeDriver(ChromeDriverService, ChromeOptions)
69
69
*/
70
70
public ChromeDriver (ChromeOptions options ) {
71
- this (ChromeDriverService .createServiceWithConfig ( options ), options );
71
+ this (ChromeDriverService .createDefaultService ( ), options );
72
72
}
73
73
74
74
/**
Original file line number Diff line number Diff line change @@ -166,23 +166,6 @@ public static ChromeDriverService createDefaultService() {
166
166
return new Builder ().build ();
167
167
}
168
168
169
- /**
170
- * Configures and returns a new {@link ChromeDriverService} using the supplied configuration. In
171
- * this configuration, the service will use the ChromeDriver executable identified by {@link
172
- * org.openqa.selenium.remote.service.DriverFinder#getPath(DriverService, Capabilities)}. Each
173
- * service created by this method will be configured to use a free port on the current system.
174
- *
175
- * @return A new ChromeDriverService using the supplied configuration from {@link ChromeOptions}.
176
- * @deprecated Use {@link Builder#withLogLevel(ChromiumDriverLogLevel)} }
177
- */
178
- @ Deprecated
179
- public static ChromeDriverService createServiceWithConfig (ChromeOptions options ) {
180
- ChromeDriverLogLevel oldLevel = options .getLogLevel ();
181
- ChromiumDriverLogLevel level =
182
- (oldLevel == null ) ? null : ChromiumDriverLogLevel .fromString (oldLevel .toString ());
183
- return new Builder ().withLogLevel (level ).build ();
184
- }
185
-
186
169
/** Builder used to configure new {@link ChromeDriverService} instances. */
187
170
@ AutoService (DriverService .Builder .class )
188
171
public static class Builder
You can’t perform that action at this time.
0 commit comments