DuncanM Posted September 28, 2006 Posted September 28, 2006 I'm using IE.au3 to automate the configuration of a web-based device and am running into a problem filling in fields of type "file" (i.e. looks like a text field and has a BROWSE button next to it). The particular field I'm trying to populate looks just like a text field (which I have no problem populating), but I cannot get AutoIT to populate the file field with the appropriate filename via _IEFormElementSetValue. Anyone know how to do this? Thanks.
DuncanM Posted September 28, 2006 Author Posted September 28, 2006 Actually, I don't see any IE.au3 functions that support filling in a filename on a "File" field - there has to be a way to do it though..I'm stuck!
Moderators big_daddy Posted September 28, 2006 Moderators Posted September 28, 2006 (edited) Here is an example of how to do this.ImageShack Upload Edited September 28, 2006 by big_daddy
DuncanM Posted September 28, 2006 Author Posted September 28, 2006 Here is an example of how to do this.ImageShack UploadThanks! I got it working with Focus and Send. Also, after I upload the file, I need to wait for it to say "Completed", which will appear in the right frame. Is there a way to wait until this appears (sort of like a WinWait)?
Moderators big_daddy Posted September 28, 2006 Moderators Posted September 28, 2006 @DuncanM - If you could post the source of the "completed" page we should be able to come up with something.
DuncanM Posted September 28, 2006 Author Posted September 28, 2006 Big Daddy - I apologize, but this is on a standalone system at the moment. However, the "completed" that I would like to search for is in the source. Is there some way I can have it look in the source of that frame to see if the "completed" string exists (returning a 1 or a 0)?
Moderators big_daddy Posted September 28, 2006 Moderators Posted September 28, 2006 Something similar to this should work. While Not StringInStr(_IEBodyReadText($oIE), "Completed") Sleep(100) WEnd
DuncanM Posted September 29, 2006 Author Posted September 29, 2006 Something similar to this should work. While Not StringInStr(_IEBodyReadText($oIE), "Completed") Sleep(100) WEnd Thanks again..works perfectly!
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