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.

    Deprecation



  • The docs say you have to instantiate the driver with a different argument type: InternetExplorerOptions:

    enter image description here

    InternetExplorerOptions have a method called setPageLoadStrategy:

    InternetExplorerOptions options = new InternetExplorerOptions().setPageLoadStrategy(PageLoadStrategy.NONE);
    

    You can find all strategies here.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2