How to handle file window popup using selenium webdriver.
I have clicked on file browse button , new pop up window has been opened and i am unabled to handle this window(as i want to select the file)
WebElement browser=driver.findElement(By.name("uploadFile"));
browser.click();
driver.switchTo().window("File Upload");
WebElement el=driver.findElement(By.name("fileName"));
el.sendKeys("E:\DVBScheduleEvent.xml");
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…