Reputation: 9
When I am trying to download a file from Browser. Download File location popup is displayed. Is there a way to handle this window popup using Selenium 4 ? There are 2 buttons in this popup 1. Cancel and Another is Save. How to Press Cancel using Selenium 4 ?
I have tried using Action Class like
new Actions(driver).keyDown(Keys.CANCEL).keyUp(Keys.CANCEL);
but still not able to close this window-based popup.
Upvotes: 0
Views: 34