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

Re: How to simulate?

by LanX (Canon)
on Apr 19, 2011 at 19:35 UTC ( #900205=note: print w/ replies, xml ) Need Help??


in reply to How to simulate?

You're loading a new page, which destroys your Javascript.

Possible advices:

a) use a non JS solution, like WWW::Mechanize or Selenium.

b) use an automation addon for Firefox like iMacros.

c) put your approach in a frameset, one frame holding the JS the other the page to load. (but all parts from the same domain!)

UPDATE:

d) it may be that you can load a HTML page into the sidebar which starts your testscript on load. (UNTESTED)

e) if it's only about loading pages into Firefox you can also write a simple perl script using firefox -remote (IIRC linux only) or mozrepl for communication.

f) last but not least WWW::Mechanize::Firefox

Cheers Rolf


Comment on Re: How to simulate?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-07-04 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls