File tree Expand file tree Collapse file tree
java/src/org/openqa/selenium/chrome Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments