Hi, You don't need the TWebBrowser component. I understand that you know what is on the webpage you want to use. You know the names of the fields of the form, and you know the action address of the form you want to fill in. Just use a HTTP component and create the post-data, and post the data to the action address. This should do the trick.
Groetjes, Frits. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren McBride Sent: vrijdag 23 december 2005 3:28 To: 'Borland's Delphi Discussion List' Subject: Automate Internet Explorer All, I am trying to automate IE using Delphi in a process that can load a web page, fill in some fields, simulate the clicking of a button and navigating to the page that resulted from the simulated click and then processing it in the same manner. I could achieve this with the TWebBrowser component, but all of the IHTMLElements are not loaded until the TWebBrowser finishes loading the first page, and the first page will not load if the TWebBrowser component is not actually visible on the screen. I have been to the great www.euromind.com site, and have used the UILess version written by Per. Unfortunately, I do not know how to handle the clicking of a button on the loaded HTML page using the component. I know how to click the button, but a visible Explorer window appears when I do it, and then my Explorer process crashes. The steps needed are: 1. Load web page using UILess or some other mechanism 2. Auto-select combo box option from HTML page 3. Simulate clicking of button to proceed to next page 4. Load next web page 5. Fill in form fields 6. Simulate clicking of button to post form data 7. Close browser The reason for doing this is to automate a web-based document management system which has no API of its own, and all the business rules are written into the UI logic. This logic must also be reusable from any kind of application, including Windows Service programs. Any suggestions welcome. Many thanks and seasons greetings, Darren _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

