How can I start InternetExplorerDriver using Selenium WebDriver

前端 未结 16 2682
半阙折子戏
半阙折子戏 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:54

    static WebDriver driver;
    System.setProperty("webdriver.ie.driver","C:\\(Path)\\IEDriverServer.exe");
    driver = new InternetExplorerDriver();
    driver.manage().window().maximize();
    driver.get("EnterURLHere");          
    driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);
    

提交回复
热议问题