DEV Community

Discussion on: How to automate file upload testing with Autoit and Protractor

Collapse
 
ashokkumarg profile image
Ashok kumar

In .au3 file, trying to pass it as
ControlSetText($hWnd, "", "[CLASS:Edit; INSTANCE:1]", $CmdLine[1])

with the below typescript code
cp.execSync('uploadFile.exe' + ' ' + filePath);

But, the value is passed as empty and nothing is passed in the Open dialogue box.

When I try to keep it as $CmdLine[0] in .au3 file it sends the value in dialogue box as "1".

What I am missing here? Any suggestions!