My test need to upload test files in different browsers (I use WebDriver + Java).
For a single file upload, everything works fine. I just send the
I also get chance to upload multiple files via Selenium.
Finally get the solution using AutoIT.
You can pass file path at run time.
ControlFocus(“File Upload”,””,”Edit1″)
ControlSetText(“File Upload”,””,”Edit1″,$CmdLine[1])
ControlClick(“File Upload”,””,”Button1″)
Runtime.getRuntime().exec("C:\\Users\\Mukesh_50\\Desktop\\My blog\\AutoIT\\fileUpload3.exe"+" "+"C:\\Users\\Mukesh_50\\Downloads\\VerifyTitle.java");
If finding any issue then check complete article with video.