title: Is it possible in Selenium to close a OS File Select dialog box?
body: <p>I have an application where user clicks on a button called 'Upload Patient signature'. This opens a File selection dialog box, where the user selects a file and clicks 'OK'. The file name appears in the box, the button gets disabled and the next button 'Upload' gets enabled. I have managed to send_keys to the first button to pick a predefined file which appears in the box. But the File open dialog box has opened and is waiting. Since it is not part of the application i am not able to get hold of it in Selenium. I have read that file upload/ download is not a good idea in Selenium for this very reason that the OS dialog box is out of control. What is the right approach ? </p>