Unable to open IE11 driver instance using Selenium WebDriver with Java

前端 未结 2 1946
遇见更好的自我
遇见更好的自我 2021-01-14 10:33
    System.setProperty("webdriver.ie.driver","C:\\\\Users\\\\IEDriverServer_Win32_2.45.0\\\\IEDriverServer.exe");
    
    WebDriver driver = new         


        
2条回答
  •  -上瘾入骨i
    2021-01-14 11:24

    If u are behind proxy with no access provision to change the protected mode settings then use this capabilities

    DesiredCapabilities cap = DesiredCapabilities.internetExplorer();
            cap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
    

    this will introduce some flakiness

提交回复
热议问题