Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by szabgab (Priest)
on May 09, 2006 at 13:21 UTC ( [id://548202]=perlquestion: print w/replies, xml ) Need Help??

szabgab has asked for the wisdom of the Perl Monks concerning the following question:

I am slow, so I have just noticed Win32::IEAutomation. As I have been a long time user of Win32::IE::Mechanize I wonder what are the advantages of the other module over the Mechanize API?
  • Comment on Win32::IEAutomation vs Win32::IE::Mechanize

Replies are listed 'Best First'.
Re: Win32::IEAutomation vs Win32::IE::Mechanize
by teabag (Pilgrim) on May 10, 2006 at 09:13 UTC
    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.


    teabag
    Blessed is the end user who expects nothing, for he/she will not be disappointed.
      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('http://www.google.com'); my $IE=$ie->getAgent(); $IE->{Document}->scripts->item($script_name); But it does not work. Or pls send your comments to hanjie@sina.com Who can help me? Thanks a lot.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://548202]
Approved by monsieur_champs
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found