Jump to content

Recommended Posts

Posted

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)

Posted

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

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
×
×
  • Create New...