I want to test (using selenium webdriver) if clicking a button causes the right file download dialog to appear. For the automated part of the test I don't have to download the actual file, checking the filename and the window title would be enough.
At a first glance, I see no way to get this OS-specific dialog box. Do you know a way?
The two questions selenium wget download file and How to download a file using Selenium's WebDriver? are the opposite of my question -- I need the dialog, not the file.
Edit/Clarification: The system under test has a button to download a file which gets saved with the native OS dialog, and the default filename in the dialog is set from the header in the server response.
- Automated API test: Call the server, examine the header.
- Manual (full) GUI test: Klick the button, save the file, examine the filename and the contents.
- Automated (limited) GUI test: Klick the button, examine the filename, abort.
The third bullet point is the one I'm asking about.