Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: web mechanize issue with javascript...

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


in reply to web mechanize issue with javascript...

Hey perlknight,

I had a similar problem recently. I had to deal with javascript on a page and I wanted to use WWW::Mechanize.

Checking the monastery gave me some help, but didn't give me a specific answer, just pointers towards a long and winding road.

Browsing though CPAN I stumbled upon Win32::IEAutomation, web application automation using Internet Explorer.

Now I don't know if your code should run on windows or an other platform. Since Win32::IEAutomation uses Win32::OLE to create automation object for IE, it's only usefull on windows. But I had a script whipped up in a couple of minutes.

from the docs:
It drives internet explorer using its DOM properties and methods. The module allows user to interact with web page controls like links, buttons, radios, checkbox, text fields etc. It also supports frames, popup window and interaction with javascript dialogs like security alert, confirmation, warning dialog etc.

There's no ppm for it at activestate, but if you download it, untar it and just put the folder in your Win32 folder in your perl directory it will function perfectly.

Good luck,


teabag
Blessed is the end user who expects nothing, for he/she will not be disappointed.
  • Comment on Re: web mechanize issue with javascript...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2020-11-30 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?