How can I start InternetExplorerDriver using Selenium WebDriver

前端 未结 16 2644
半阙折子戏
半阙折子戏 2020-12-30 17:23

I downloaded the driver and I gave the exact path in my code but when I ran the code it shows me error

my code with java is as below:

System.out.prin         


        
16条回答
  •  执念已碎
    2020-12-30 17:51

    Below Code snippet will surely work:

        InternetExplorerOptions ops = new InternetExplorerOptions();
        // ops.ignoreZoomSettings(); -- Not necessarily in case 100% zoom.
        ops.introduceFlakinessByIgnoringSecurityDomains(); -- Necessary to skip protected 
         mode setup
    
        System.setProperty("webdriver.ie.driver",
                \\IEDriverServer.exe");
        WebDriver dr = new InternetExplorerDriver(ops);
    

提交回复
热议问题