I have to test a web-application which contains a drag and drop area for uploading files from the local file system. My test environment is based on C#.
For the auto
The previous answer is correct and works perfectly with the Chrome driver, however might have problems with Mozilla Gecko driver, which throws org.openqa.selenium.ElementNotVisibleException
In order to avoid that, remove input.style.display = 'none';
You can use input.style.opacity = 0;
if you need to make it disappear.