Add constructors to IEDriver that take IEDriverOptions
So we can start to lead folks to strong typing.
@@ -152,6 +152,10 @@ public InternetExplorerDriver() {
this(null, null, DEFAULT_PORT);
}
+ /**
+ * @deprecated Use {@link InternetExplorerDriver(InternetExplorerOptions)}
+ */
+ @Deprecated
public InternetExplorerDriver(Capabilities capabilities) {
this(null, capabilities, DEFAULT_PORT);
}
@@ -170,10 +174,20 @@ public InternetExplorerDriver(InternetExplorerDriverService service) {
this(service, null, DEFAULT_PORT);
}
+ /**
+ * @deprecated Use {@link InternetExplorerDriver(InternetExplorerDriverService, InternetExplorerOptions)}
+ */
+ @Deprecated
public InternetExplorerDriver(InternetExplorerDriverService service, Capabilities capabilities) {
this(service, capabilities, DEFAULT_PORT);
}
+ public InternetExplorerDriver(
+ InternetExplorerDriverService service,
+ InternetExplorerOptions options) {
+ this(service, options, DEFAULT_PORT);
+ }
+
/**
* @deprecated Create an {@link InternetExplorerDriverService} and then use that to create a
* {@link RemoteWebDriver#RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)} with a
