Jump to content
Sign in to follow this  

How to work with a file control over internet Explorer

Recommended Posts


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")


_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)

Share this post

Link to post
Share on other sites

it is great that you posted some code to work with... however please don't "double" post



Share this post

Link to post
Share on other sites

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.


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this