我正在使用seleniumwebdriver自动化一个场景,在该场景中,单击下载图像将打开一个新窗口。这个新窗口将有“另存为”对话框。当我单击图像时,新窗口打开,但立即关闭,没有显示“另存为”对话框。WebElement e1= driver.findElement(By.id("id of image"))
我下载了驱动程序,并在代码中给出了确切的路径,但当我运行代码时,它显示错误System.out.println("InternetExplorer is selected");
System.setProperty("webdriver.ie.driver","C:\\Program Files\\Selenium\\Drivers\\IEDriver\\IEDriverServer.exe&