I am trying to download a file at a desired location using AutoIT, but it is always downloaded in the 'Downloads' folder
AutoIt script :SaveAs.exe
ControlFocus("Save As","","Edit1")
ControlSetText("Save As","","Edit1","F:\Selenium\Projects\images\abc.png")
ControlClick("Save As","","Button1")
I am calling the exe file as
Runtime.getRuntime().exec("src//test//java//autoIT_Scripts//SaveAs.exe");
But, the file is always downloaded in C:\Users\goyalnn\Downloads location
Although, while running the script, I can see that the desired location is populated in the Save As dialog box, but still the file is not downloaded at this location
I have tried to apply Thread.sleep(3000) before calling the SaveAs.exe, but this didn't help