Test page for file selection with a short-lived input[type=file].
input[type=file]
Clicking the button creates an input[type=file], calls input.click(), and immediately removes the input from the DOM.
input.click()