> is there a specific reason you want to use ics for that ?

Surely his program is written using Delphi.

> imho its much simpler to do stuff like this with selenium.

Don't be offended, but since this is the ICS support mailing list,
please avoid using it to answer questions with any other
products than ICS.

Of course you may always contact the person directly.

--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Friday, January 04, 2008 2:47 PM
Subject: Re: [twsocket] aspx page ICS Auto Fill, Post, and Read Answer


is there a specific reason you want to use ics for that ?
imho its much simpler to do stuff like this with selenium.
you can remote control your browser via a perl script, ie.:

my $sel = Test::WWW::Selenium->new( host => "localhost",
                                    port => 4444,
                                    browser => "*firefox",
                                    browser_url =>
                                    "https://www.yahoo.com"; );

$sel->open_ok("https://www.yahoo.com/login.aspx";);
$sel->wait_for_page_to_load_ok("30000");
$sel->type_ok("username", "hanswurst");
$sel->type_ok("password", "f00");
$sel->click_ok("link=log in");
$sel->wait_for_page_to_load_ok("30000");

#writetofile tempfile
my $src = $sel->get_html_source();
my $tempfile = "temp.html";
open (TEST, ">$tempfile");
print TEST "$src";
close (TEST);

inside that script you can do anything that you could do with perl.



TG> I have been looking through peoples usage of ICS Components today and
TG> have  found it very interesting.

TG> I came across a posting where an individual was asking if you could
TG> use these components inside of Delphi to auto fill a form and click Ok.

TG> Is that what the sample that was posted does?
TG> HttpCli1.URL := 'http://www.borland.com'; HttpCli1.RcvdStream :=
TG> TFileStream.Create('borland.html', fmCreate); HttpCli1.Get; if
TG> HttpCli1.StatusCode <> 200 then
TG>    ShowMessage(HttpCli1.ReasonPhrase);
TG> HttpCli1.RcvdStream.Pos := 0;
TG> Memo1.Lines.LoadFromStream(HttpCli1.RcvdStream);
TG> HttpCli1.RcvdStream.Free;

TG> There is no mention of Post or Put anywhere?

TG> Would you be able to provied a better example of how you are able to
TG> auto-fill aspx input fields automatically and post the information,
TG> causing the page to update which would allow us to read the received
TG> strem
TG> containing the answer?

TG> Thanks very much for your help,
TG> Terry



-- 
Mit freundlichen Grüßen
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to