I want to test an old page by edge ie mode, and this page is so old that I can run it only on IE7. "open this page in Compatibility view" can help me test the page by IE7
When I test page by InternetExplorerDriver, it can remember my local setting and open the page in Compatibility view (IE7)
However, when I use RemoteWebDriver, it always open page in IE11, does selenium have some method to resolve it?
Here's my scripts
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability("unexpectedAlertBehaviour","accept");
cap.setCapability("nativeEvents",true);
cap.setCapability("disable-popup-blocking",true);
cap.setCapability("enablePersistentHover",true);
cap.setCapability("ignoreZoomLevel",true);
cap.setCapability("ignoreZoomSetting",true);
cap.setCapability("javascriptEnabled",true);
cap.setCapability("initialBrowserUrl","Page URL");
cap.setCapability("requirewindowfocus",true);
cap.setCapability("--remote-allow-origins","*");
cap.setCapability("allow-blocked-content",true);
cap.setCapability("browserName","MicrosoftEdge");
cap.setCapability("name", "PICS App");
cap.setCapability("enableVNC", true);
InternetExplorerOptions options = new InternetExplorerOptions();
options.attachToEdgeChrome();
options.ignoreZoomSetting();
options.enablePersistentHovering();
options.destructivelyEnsureCleanSession();
options.introduceFlankinessByIgnoringSecurityDomains();
options.withEdgeExecutablePath("EDGE PATH");
options.merge(cap);
WebDriver driver = new RemoteWebDriver("REMOTE URL", options);
driver.get("Page URL");