Deprecate ChromeDriver constructors that take a DriverService
If you're at this point, then you might as well just create
a DriverCommandExecutor and create Capabilities yourself.
@@ -129,8 +129,10 @@ public ChromeDriver() {
* and shutdown upon calling {@link #quit()}.
*
* @param service The service to use.
- * @see #ChromeDriver(ChromeDriverService, ChromeOptions)
+ * @see RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)
+ * @deprecated Use {@link RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)}
*/
+ @Deprecated
public ChromeDriver(ChromeDriverService service) {
this(service, new ChromeOptions());
}
@@ -162,7 +164,9 @@ public ChromeDriver(ChromeOptions options) {
*
* @param service The service to use.
* @param options The options to use.
+ * @deprecated Use {@link RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)}
*/
+ @Deprecated
public ChromeDriver(ChromeDriverService service, ChromeOptions options) {
this(service, options.toCapabilities());
}
@@ -173,7 +177,9 @@ public ChromeDriver(ChromeDriverService service, ChromeOptions options) {
*
* @param service The service to use.
* @param capabilities The capabilities required from the ChromeDriver.
+ * @deprecated Use {@link RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)}
*/
+ @Deprecated
public ChromeDriver(ChromeDriverService service, Capabilities capabilities) {
super(new ChromeDriverCommandExecutor(service), capabilities);
locationContext = new RemoteLocationContext(getExecuteMethod());
