jcjimenez Posted February 4, 2009 Share Posted February 4, 2009 Hi all, I'm user of AutoIT since yesterday and is a great tool! I'm using it for the automation of uploading files to a shop in which I sell some downloadable products and I need some help in my script. I can't correctly capture the finish of the uploading of the file via the form of the web. I correctly fill the file input text and submit the form and the file begins to upload, then I have a _IELoadWait sentence that seems not to work properly because the status bar of the browser begins to fill in blue and a text like "Opening page..." appears in the status text of the browser, but in some moment (before the final of the uploading of big files) the browser status bar gets empty and begins to fill again. It seems that then _IELoadWait jump just at this point not finishing the upload. With small files it is not a problem because the files finish the upload before the status bar resets to empty. So I should wait for the "upload complete" web page to continue the execution of the script and I don't know which mechanism to use. The upload web page has different Address URL and include the HTML text "Upload results" and "upload succesful". No changes in the browser title or any other element I could use. Any help? Regards, Juan Carlos Jiménez Link to comment Share on other sites More sharing options...
jvanegmond Posted February 4, 2009 Share Posted February 4, 2009 Before you try and check the address URL, you could try to do something as simple as this: _IELoadWait($oIE) Sleep(500) _IELoadWait($oIE) Sleep(500) _IELoadWait($oIE) Sleep(500) and see if that resolves the issue.. github.com/jvanegmond Link to comment Share on other sites More sharing options...
jcjimenez Posted February 4, 2009 Author Share Posted February 4, 2009 (edited) FIXED!! ; Wait for completed upload while (_IEPropertyGet($oIE, "busy")) WEnd Edited February 4, 2009 by jcjimenez Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now