Clean up InternetExplorerDriver constructors to match ChromeDriver's
If someone wants to create a DriverService, they should do that
and we don't need a wealth of constructors attempting to hide
that fact from them.
@@ -148,19 +148,45 @@ public InternetExplorerDriver(Capabilities capabilities) {
this(null, capabilities, DEFAULT_PORT);
}
+ /**
+ * @deprecated Create an {@link InternetExplorerDriverService} and then use that to create a
+ * {@link RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)} with a
+ * {@link DriverCommandExecutor}.
+ */
+ @Deprecated
public InternetExplorerDriver(int port) {
this(null, null, port);
}
+ /**
+ * @deprecated Create an {@link InternetExplorerDriverService} and then use that to create a
+ * {@link RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)} with a
+ * {@link DriverCommandExecutor}.
+ */
+ @Deprecated
public InternetExplorerDriver(InternetExplorerDriverService service) {
this(service, null, DEFAULT_PORT);
}
+ /**
+ * @deprecated Create an {@link InternetExplorerDriverService} and then use that to create a
+ * {@link RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)} with a
+ * {@link DriverCommandExecutor}.
+ */
+ @Deprecated
public InternetExplorerDriver(InternetExplorerDriverService service, Capabilities capabilities) {
this(service, capabilities, DEFAULT_PORT);
}
- public InternetExplorerDriver(InternetExplorerDriverService service, Capabilities capabilities,
+ /**
+ * @deprecated Create an {@link InternetExplorerDriverService} and then use that to create a
+ * {@link RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)} with a
+ * {@link DriverCommandExecutor}.
+ */
+ @Deprecated
+ public InternetExplorerDriver(
+ InternetExplorerDriverService service,
+ Capabilities capabilities,
int port) {
if (capabilities == null) {
capabilities = DesiredCapabilities.internetExplorer();
