Eddie,

The first page I load with the UILess parser. The problem is that the second
page is accessed using the Javascript code invoked by the OnClick event of
an input button, and I must simulate this call and load the resulting page
into the UILess parser also.

If I could get one component to perform the page to page processing, I would
have the perfect solution. I could have achieved everything with the
TWebBrowser component, but the damn thing does not load the page when it is
invisible, and I have read elsewhere that it is not suitable for background
processing such as Windows Service programs due to its design.

Kind regards,
Darren

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Eddie Shipman
Sent: 23 December 2005 14:28
To: Borland's Delphi Discussion List
Subject: Re: Automate Internet Explorer

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



_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to