Nishant Posted November 23, 2006 Share Posted November 23, 2006 I am working on a web based application and using internet browser. I want to select a file. Click on Browse Button and select a file from file dialog box and click open. After click on open button from the file dialog box select file should copy on the Image 1 (Attachment) XML file box. I think u understand my query. Please Help and provide some code to do that TILL Now I wrote the following CODE:- #include <IE.au3> ; Open web site on Internet $oIE = _IECreate ("http://mypage.com/index.do") Send("{ENTER}") _IELoadWait ($oIE) ; On the web site there is a BROWSE button, ;Click on browse button $oBrowse = _IEGetObjByName ($oIE, "File") _IEAction ($oBrowse, "click") ;Form Type:file HERE I HAVE TO WRITE THE CODE BUT I AM NOT GETTING< PLEASE HELP......................................... ; Selecting from combo box $oForm = _IEFormGetObjByName ($oIE, "InboundDocumentForm") $oSelect = _IEFormElementGetObjByName ($oForm, "eventName") _IEFormElementOptionselect ($oSelect, "inbound-container-doc-Qiva-XML", 1, "byText") _IEFormSubmit ($oForm) Link to comment Share on other sites More sharing options...
Valuater Posted November 23, 2006 Share Posted November 23, 2006 it is great that you posted some code to work with... however please don't "double" post 8) Link to comment Share on other sites More sharing options...
Nishant Posted November 23, 2006 Author Share Posted November 23, 2006 Ok, Sorry for double post. Can u help me on that Link to comment Share on other sites More sharing options...
Nishant Posted November 23, 2006 Author Share Posted November 23, 2006 Can Any One Help on this issue. Or Tell me that how can we set focous on a command button and after that Click that. Please help. My work is in middle or so that this is not possible with this tool. Thanks 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