I am using Selenium WebDriver and Java and I need to automate the file upload feature. I tried a lot, but the moment the Browse button is clicked and a new window opens the
The moment after the modal dialog opens the script will not work, it just hangs. So call autoit.exe first and then click to open the modal dialog.
autoit.exe
It works fine like this,
Runtime.getRuntime().exec("Upload_IE.exe"); selenium.click("//input[@name='filecontent']");