Jump to content

How to work with a file control over internet Explorer


Nishant
 Share

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...