DuncanM Posted September 28, 2006 Share 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. Link to comment Share on other sites More sharing options...
DuncanM Posted September 28, 2006 Author Share 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! Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 28, 2006 Moderators Share Posted September 28, 2006 (edited) Here is an example of how to do this.ImageShack Upload Edited September 28, 2006 by big_daddy Link to comment Share on other sites More sharing options...
DuncanM Posted September 28, 2006 Author Share 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)? Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 28, 2006 Moderators Share Posted September 28, 2006 @DuncanM - If you could post the source of the "completed" page we should be able to come up with something. Link to comment Share on other sites More sharing options...
DuncanM Posted September 28, 2006 Author Share 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)? Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 28, 2006 Moderators Share Posted September 28, 2006 Something similar to this should work. While Not StringInStr(_IEBodyReadText($oIE), "Completed") Sleep(100) WEnd Link to comment Share on other sites More sharing options...
DuncanM Posted September 29, 2006 Author Share Posted September 29, 2006 Something similar to this should work. While Not StringInStr(_IEBodyReadText($oIE), "Completed") Sleep(100) WEnd Thanks again..works perfectly! 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