How to make sure a file is uploaded properly?

Advanced programming using WinTask scripting language

How to make sure a file is uploaded properly?

Postby Carroll on Fri Nov 14, 2014 1:41 pm

Hi,
I run this script:
ClickHTMLElement("BUTTON[INNERTEXT='+']")
ClickHTMLElement("INPUT FILE[NAME='product_images_uploa']")

UseWindow("FIREFOX.EXE|SHELLDLL_DefView|")
ChooseItem(ListView, "1", "test.jpg", double, left )
WriteHTML("INPUT FILE[NAME='product_images_uploa']", "c:\test.jpg")

How to make sure the file is uploaded properly before continue run the next script?
Carroll
 
Posts: 9
Joined: Tue Aug 30, 2005 2:13 pm

Re: How to make sure a file is uploaded properly?

Postby TechSupport on Tue Nov 18, 2014 10:11 am

Hello,

You can use the Exist WinTask function to test after the upload that the file does now exist on c:
a=Exist("c:\test.jpg")
If a = 1 then
msgbox("file correctly uploaded")
EndIf

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