SciTE - test.exe file is not working | Selenium Forum
M
Posted on 07/12/2015
Hello There,

Thank you for all your effective replies for all the queries. Here I am with another query.
I have created my own test.exe file with ControlSetText and ControlClick commands. But its not attaching my file.
Can you please take a look?

Tried attaching test.exe file for your reference but exe is not allowed to attach. Below are the command that i have written in my exe file.
$windowHandle = WinGetHandle("File Upload");
WinActivate($windowHandle)

ControlSetText ("File Upload", "", "[CLASS:Edit; INSTANCE:1]", "D:\Leela.jpg")

ControlClick("File Upload", "", "[CLASS:Button; INSTANCE:1]")


Also I have tried with other control ID's like; Nothing is working
ControlSend("File Upload", "", "[CLASSNN:Edit]", "D:\Leela.jpg")

ControlSetText("File Upload", "", "[CLASSNAMENN:Edit; INSTANCE:1]", "D:\Leela.jpg")

ControlClick ("File Upload", "&Open", "[CLASS:Button; INSTANCE:1]")

M
Replied on 07/12/2015

What is error you are getting?


M
Replied on 13/12/2015

Hi Ashish,

Was unable to reply you back as I was busy with Interviews and IELTS exams.

On double clikcing on test.exe file, it used maximize the Upload File window but file was not getting attached. But today, I wanted to try again before replying.
Its working fine.. Responsive image

Not sure if it was bcoz I had kept everything opened for a week.. I had shut down my system yesterday and when I tried today by opening everything newly, it worked fine. Inserted the Process class in the code and ran. Working perfectly fine..

Love the way you teach and make easy to understand the things. I never liked coding. But started liking now.

Thanks a lot,
Leela