Deprecation issue for InternetExplorerDriver
I want to use PAGE_LOAD_STRATEGY strategy while launching IE driver by using the following code but I'm facing a deprecation issue for InternetExplorerDriver. What's the reason for it?
DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability(CapabilityType.PAGE_LOAD_STRATEGY, "none"); WebDriver driver = new InternetExplorerDriver(caps);
InternetExplorerDriver is crossed out as indicated in the screenshot.
The docs say you have to instantiate the driver with a different argument type: InternetExplorerOptions:
InternetExplorerOptions have a method called setPageLoadStrategy:
InternetExplorerOptions options = new InternetExplorerOptions().setPageLoadStrategy(PageLoadStrategy.NONE);
You can find all strategies here.