RE: Open IE and fill out a Web-Form

2005-09-01 Thread peter . pitton
Thanks Mark,

that's also good to know. 
Yes, on the page(s)[not my page] I would have to work with there is a 
whole lot of JavaScript.
I tried to read through the Mechanize stuff, but that's very very indepth 
stuff.
If there would be a sample of code I could try to understand and adapt.

"All that is to do" is "open" a website, enter Login and Password, click 
on "Login-Button", wait for new page, click on some link and fill out a 
form with text-fields and a dropdown menu and then click "Send-
Button"...
But to use Mechanize I think I'd have to understand programming the 
HTML-code myself or have the source-code. 

Thanks for any help (If you had a piece of code ready somewhere that 
does something similar I'd like to work through that, but understanding 
Mechanize from scrap - oh boy.)

Best regards,

Peter



On 1 Sep 2005 at 9:11, Thomas, Mark - BLS CTR wrote:

> > I would have to open an IE window, open a URL, login to some 
> > server that makes 
> > heavy use of JavaScript, wait for feedback and then fill out 
> > a form that has all kinds of 
> > controls (text boxes, drop down boxes, buttons, etc).
> > 
> > It seems not to be THAT simple (as usual with perl).
> 
> Thanks to Mechanize, it's easier in Perl than in any other language.
> 
> Normally I would just use WWW::Mechanize to do what you are asking. It can
> automatically follow links, fill out forms, click buttons, etc. It keeps
> track of cookies automatically, just like a real browser.
> 
> You may be able to use it just fine. If you are sure you need IE for some
> reason (perhaps the javascript stuff) you can use Win32::IE::Mechanize,
> which implements a similar interface but uses a Win32::OLE backend instead
> of LWP::UserAgent.
> 
> -- 
> Mark Thomas 
> Internet Systems Architect
> ___
> BAE SYSTEMS Information Technology 
> 2525 Network Place
> Herndon, VA  20171  USA 
> 


___
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Open IE and fill out a Web-Form

2005-07-25 Thread peter . pitton
Hi everybody,

I would have to open an IE window, open a URL, login to some server that makes 
heavy use of JavaScript, wait for feedback and then fill out a form that has 
all kinds of 
controls (text boxes, drop down boxes, buttons, etc).

Does anybody know a "short" HowTo or some "simple" sample code instead of 
monstrous man-pages?

It seems not to be THAT simple (as usual with perl).

Thanks everybody,

Peter

___
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Automated Web-surfing

2004-08-11 Thread Peter . Pitton
Hi there,

still no idea of how to solve the problem (tried to read through the lwp manpage and 
lwp cookbook):

I have a website that displays a login (username, password) prompt where you have to 
enter the data and click on a button. 
Then select a menu to get a new page (full with java-script commands an cookies) that 
shows a form where I would like to fill out somewhat like 20 "fileds" with data that 
is in 
the clipboard (pretty easy parse"able") and then click on a "submit" button.

So, the question is: should I use perl as a keyboard-macro-tool that just "hits" the 
keys in 
the explorer-window as I would manually (would that be done with OLE like the Win32-
Excel-examples)?

As I understand the other option is to setup a "UserAgent", but therefore I cannot 
find 
any "examples" that show how to work with all that Cookie-Javascript-password stuff.

I think there must be lots of similar problems and solutions out there, so I'd be glad 
to 
find some..


Thanks for any help,


Peter

___
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


How to use Perl to navigate on web-pages

2004-08-09 Thread Peter . Pitton
Hi there,

I am new here, have been using Perl on DOS, Win32 (to work with 
Excel) and on Netware.

What I'm trying to do now is: 

Use Perl to syntactically parse something that is in the Windows 
clipboard, open a web-page and enter the parsed data there, click on 
some buttons, enter data into some text-fields, wait for the website to 
return some data and so on.

Simply said: to automatically enter data from the Clipboard into some 
website(s) instead of doing it manually.

There is too much information to go through to find a solution.

So, anybody who can easily and in short tell me where to look for 
information or are there some samples?

Is Perl "better" than using the Windows Scripting Host (that program 
could surely do the same, right?), but I'd prefer PERL


Thanks for any help,


Peter

___
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs