-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
I-enhancementSomething could be betterSomething could be better
Milestone
Description
Feature and motivation
Once we execute with Edge IE Mode, there is warn in log
Support for Legacy Capabilities is deprecated; You are sending the following invalid capabilities: [elementScrollBehavior, enablePersistentHover, ie.browserCommandLineSwitches, ie.edgechromium, ie.edgepath, ie.enableFullPageScreenshot, ie.ensureCleanSession, ie.fileUploadDialogTimeout, ie.forceCreateProcessApi, ie.useLegacyFileUploadDialogHandling, ie.usePerProcessProxy, ignoreProtectedModeSettings, ignoreZoomSetting, initialBrowserUrl, nativeEvents, requireWindowFocus, silent]; Please update to W3C Syntax: https://www.selenium.dev/blog/2022/legacy-protocol-support/
I tried to set almost values from docs (https://www.selenium.dev/documentation/webdriver/capabilities/internet_explorer/), I'm sure there are some capabilities expired in Edge IE Mode ( as we should only have this way to run IE at this moment), but what's the qualified capability?
And meanwhile, there won't any Deprecated in InternetExplorerOptions, so user don't know what should be using with latest Selenium.
Usage example
Full configurations case
@Test
public void internetExplorerOptionsTest() {
ieOptions = new InternetExplorerOptions();
ieOptions.attachToEdgeChrome();
ieOptions.ignoreZoomSettings();
ieOptions.destructivelyEnsureCleanSession();
ieOptions.requireWindowFocus();
ieOptions.introduceFlakinessByIgnoringSecurityDomains();
ieOptions.takeFullPageScreenshot();
ieOptions.disableNativeEvents();
ieOptions.waitForUploadDialogUpTo(Duration.ofMillis(1000L));
ieOptions.useLegacyUploadDialog();
ieOptions.elementScrollTo(ElementScrollBehavior.TOP);
ieOptions.enablePersistentHovering();
ieOptions.usePerProcessProxy();
ieOptions.useCreateProcessApiToLaunchIe();
ieOptions.addCommandSwitches("-k");
ieOptions.addCommandSwitches("-private");
ieOptions.setCapability("silent", true);
ieOptions.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
ieOptions.withInitialBrowserUrl("https://www.ianzhang.cn");
driver = new InternetExplorerDriver(ieOptions);
driver.get("https://www.bing.com");
}
Support for Legacy Capabilities is deprecated; You are sending the following invalid capabilities: [elementScrollBehavior, enablePersistentHover, ie.browserCommandLineSwitches, ie.edgechromium, ie.edgepath, ie.enableFullPageScreenshot, ie.ensureCleanSession, ie.fileUploadDialogTimeout, ie.forceCreateProcessApi, ie.useLegacyFileUploadDialogHandling, ie.usePerProcessProxy, ignoreProtectedModeSettings, ignoreZoomSetting, initialBrowserUrl, nativeEvents, requireWindowFocus, silent]; Please update to W3C Syntax: https://www.selenium.dev/blog/2022/legacy-protocol-support/
Minimal Case
@Test
public void internetExplorerOptionsInputTest() {
ieOptions = new InternetExplorerOptions();
ieOptions.attachToEdgeChrome();
ieOptions.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
driver = new InternetExplorerDriver(ieOptions);
driver.get("https://www.bing.com");
}
Started InternetExplorerDriver server (64-bit)
4.2.0.0
Listening on port 63513
Only local connections are allowed
6月 28, 2022 4:11:23 下午 org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected upstream dialect: W3C
6月 28, 2022 4:11:23 下午 org.openqa.selenium.remote.ProtocolHandshake createSession
WARN: Support for Legacy Capabilities is deprecated; You are sending the following invalid capabilities: [ie.edgechromium, ie.edgepath]; Please update to W3C Syntax: https://www.selenium.dev/blog/2022/legacy-protocol-support/
Metadata
Metadata
Assignees
Labels
I-enhancementSomething could be betterSomething could be better