File Upload Window opens ,But AutoIT does not write the path | Selenium Forum
M
Posted on 16/05/2016
Following is the code ,& autoit application

[b:2a1r7r7j]
Issue:I compile the autoit file
Keep File Upload widow open & available
Double click on autoIT 's exe file.


Path is not written in textbox......[/b:2a1r7r7j]


Following are contents of autoit script\

$Windowhandle=WinGetHandle("File Upload")
WinActivate($Windowhandle)
ControlSetText("File Upload","","[CLASS:ComboBox; INSTANCE:1]","C:\Users\Manju\Pictures\Roby_earrings.jpg")
ControlClick("File Upload","","[CLASS:Button; INSTANCE:1]")

M
Replied on 18/05/2016

Sir, could u pls tell me wats wrong with this script [AutoIT]....

[b:2axdtld6]Why it is not entering file path in path specifying field ?[/b:2axdtld6]


M
Replied on 18/05/2016

i don't know chatira. i can't check every script.


M
Replied on 22/05/2016

k sir , it works now.

only when i give the path of file to upload in AUTOIT script.[It works]

[b:2l4jhhyq]Same thing does not work when i specify file's path in ProcessBuilder & i using $cmdLine...

Was thinking if there was a additional setting to be made, to make this filepath be avaiable to AUTOIT via CMDLINE[A you discuss in video] ?[/b:2l4jhhyq]