File upload with ClickHTMLElement INPUT FILE

Advanced programming using WinTask scripting language

File upload with ClickHTMLElement INPUT FILE

Postby SoerenSoeby on Fri Mar 06, 2015 8:51 am

I have recorded the below steps on an online form where I upload a file. When the executor gets to the line "UseWindow("FIREFOX.EXE|CtrlNotifySink|Transfer file|5",1)", it stops because the "choose file" window in Firefox doesn't open. What am I doing wrong?


UsePage("https://www.xxx.yy/form.htm")
ClickHTMLElement("INPUT FILE[NAME='fileWrapperImage']")

UseWindow("FIREFOX.EXE|CtrlNotifySink|Transfer file|5",1)
ClickScrollBar("2",2349,ABS)

UseWindow("FIREFOX.EXE|DirectUIHWND|Transfer file|2",1)
ClickMouse(Left,Down,96,113)
ClickMouse(Left,Up,96,113)

UseWindow("FIREFOX.EXE|#32770|Transfer file",1)
Click(Button,"Open")
WriteHTML("INPUT FILE[NAME='fileWrapperImage']", "C:\temp\test.jpg")
SoerenSoeby
 
Posts: 1
Joined: Thu Mar 05, 2015 11:21 am

Re: File upload with ClickHTMLElement INPUT FILE

Postby TechSupport on Sat Mar 07, 2015 1:31 pm

Hello,
Can you connect to http://www.wintask.com/support, it's a Citrix tool where we can see your desktop and give advice directly seeing the file transfer button.

Best regards.
WinTask Tech Support
TechSupport
 
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am


Return to Scripts programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron