<?xml version="1.0" encoding="windows-1252"?>
<node id="900205" title="Re: How to simulate?" created="2011-04-19 15:35:01" updated="2011-04-19 15:35:01">
<type id="11">
note</type>
<author id="708738">
LanX</author>
<data>
<field name="doctext">
You're loading a new page, which destroys your Javascript.&lt;P&gt;

Possible advices:&lt;P&gt;

a) use a non JS solution, like [mod://WWW::Mechanize] or [google://Selenium].&lt;P&gt;

b) use an automation addon for Firefox like [https://addons.mozilla.org/en-us/firefox/addon/imacros-for-firefox/|iMacros].&lt;P&gt;

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!)&lt;P&gt;

UPDATE:&lt;P&gt;

d) it &lt;i&gt;may be&lt;/i&gt; that you can load a HTML page  into the sidebar which starts your testscript on load. (UNTESTED)&lt;P&gt;

e) if it's only about loading pages into Firefox you can also write a simple perl script using &lt;c&gt;firefox -remote&lt;/c&gt; (IIRC linux only) or [google://mozrepl] for communication.&lt;P&gt;

f) last but not least [doc://WWW::Mechanize::Firefox]&lt;P&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-708738"&gt;
&lt;p&gt;Cheers Rolf
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
900187</field>
<field name="parent_node">
900187</field>
</data>
</node>
