We use Selenium-Webdriver on the Jenkins box (running linux) to manage Firefox to test a rather complex web application. The web application requires uploading photos for testing, and we achieved this using sendkeys in the input file dialog box. Unfortunately (possibly due to the way the bootloader works, this is plupload and boot via XHR, not the FORM message). The file selection dialog never closes. Although it was a little annoying, in the past the tests still went fine. Switching from selenium-2.45.0 to selenium-2.53.1 and updating FireFox to 45, we found that our tests are no longer running because the item is no longer displayed due to the File Picker dialog (at least we assume that the reason in that the elements no longer respond to clicks because they are behind the file dialog).
I understand that there is no way to click on the close button, and I tried sending the escape key in various ways in the browser to close the dialog box, but nothing I tried works:
((RemoteWebDriver)driver).getKeyboard().pressKey(Keys.ESCAPE);
Since the Jenkins test server is on a different server than Firefox, managed by Selenium, Roboto, and AutoIt, this is not an option. Is there a way to cause a dialog to close that does not involve interaction with the dialog box. My thought was to insert javascript on the page, to create a form around the file input, and then submit the form (nowhere), and then reload the page, but this turned out to be unsuccessful.

source
share