The best way would just to use the DOM with the UILEss parser and use the Form's post or get action with idHTTP to send the form's values to the new page.
This is not difficult to do and you don't even need a Webbrowser. --- Darren McBride <[EMAIL PROTECTED]> wrote: > 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 > __________________________________________ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

