Re: TWebBrowser and automating web surfing

2006-07-09 Thread Chris Stebbing
G'Day Rich,

I may be on the wrong track here, as I'm working at the extent of my 
knowledge in this area, however this is how I've done it in the past.

If you examine the code you should be able to figure out the "url" 
which is sent when you press the search button. For example, it might 
end up being something like
 http://www.you.com/search.asp?find="hello";

If you figure this out, then you should just be able to use that 
entire URL and have your browser call up that.  You may need to use a 
session manager similar for cookies etc.

Cheers,
Chris.


___
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi


TWebBrowser and automating web surfing

2006-07-09 Thread Rich Cooper
Hi Everybody,

Using D7 and TWebBrowser, I would like to automate surfing some
web sites.  To do that, I have to plug strings into text areas of the
web page, and then push a button, all automatically.  That is, I want
the program to do the string plugging and the button pushing.  

Here's an example text area:



and here arethe two buttons that go into the same web page to start the
web server searching its database or canceling the search:




TWebBrowser lets me get the text of a web page using the Indy HTTP
component:

Memo1.Lines.Text := HTTP.Get(VisitURL);

So I can go through the memo lines to find the right sections,
but here's the sticky part I haven't figured out yet:

How do I put the string into the text area and press the "Search" button
in D7 with Indy components?

Thanks,
Rich

___
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi