Skip to content

Commit fab49a5

Browse files
committed
[java] Removing deprecated createServiceWithConfig in ChromeDriverService
1 parent 9b7c1fb commit fab49a5

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

java/src/org/openqa/selenium/chrome/ChromeDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public ChromeDriver(ChromeDriverService service) {
6868
* @see #ChromeDriver(ChromeDriverService, ChromeOptions)
6969
*/
7070
public ChromeDriver(ChromeOptions options) {
71-
this(ChromeDriverService.createServiceWithConfig(options), options);
71+
this(ChromeDriverService.createDefaultService(), options);
7272
}
7373

7474
/**

java/src/org/openqa/selenium/chrome/ChromeDriverService.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -166,23 +166,6 @@ public static ChromeDriverService createDefaultService() {
166166
return new Builder().build();
167167
}
168168

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-
186169
/** Builder used to configure new {@link ChromeDriverService} instances. */
187170
@AutoService(DriverService.Builder.class)
188171
public static class Builder

0 commit comments

Comments
 (0)