Reputation: 75
Is there a way to close this pop up window with selenium? When it appears I send the file to the driver using sendText. The file is well imported but the pop up is not closed.
When the driver is closed sometimes the pop up windows closes with the driver and sometimes don't, i didn't find why this happens.
I'm using Selenium with Java in maven.
If some one knows some way to interact with this window would be a great help! Thank you!
Upvotes: 1
Views: 284
Reputation: 11
Selenium it self cannot interact with Windows. What you can do for upload is to find the upload button and send the filepath to it.
driver.findElement(By.id("your_id")).sendKeys("filepath");
In this case the Window should not be open.
Upvotes: 1