Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Win32::IEAutomation vs Win32::IE::Mechanize

by teabag (Pilgrim)
on May 10, 2006 at 09:13 UTC ( #548415=note: print w/replies, xml ) Need Help??

in reply to Win32::IEAutomation vs Win32::IE::Mechanize

Hey szabgab

I recently tried Win32::IE::Mechanize but it didn't work for me. In the docs it says:

The InternetExplorer automation object does not provide an interface to "popup windows" generated by security settings or JScript contained in the page.

The InternetExplorer automation object does not provide an interface to the content of frames from the toplevel document. This means that you need to load the frame explicitly (using the follow_link() method).

The basic authentication support is quite wonky and will only work with the get() method

Win32::IEAutomation has popup functions, accepts pretty much all js, works perfectly with frames, authentication is solid and is a lot simpler to use, IMO.

It might not offer as many possibilities as Win32::IE::Mechanize, but it fits my needs perfectly. Recommended to anyone (working on windows) who wants to grab pages containing js.

Blessed is the end user who expects nothing, for he/she will not be disappointed.
  • Comment on Re: Win32::IEAutomation vs Win32::IE::Mechanize

Replies are listed 'Best First'.
Re^2: Win32::IEAutomation vs Win32::IE::Mechanize
by hanjie0 (Initiate) on May 27, 2006 at 18:55 UTC
    With Win32::IEAutomation, can I run a java script directly? I have tried the following sentences: use Win32::IEAutomation; my $ie = Win32::IEAutomation->new( visible => 1); $ie->gotoURL(''); my $IE=$ie->getAgent(); $IE->{Document}->scripts->item($script_name); But it does not work. Or pls send your comments to Who can help me? Thanks a lot.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://548415]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2020-11-24 10:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found