<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Andrea,
<div><br>
</div>
<div>I've worked around this in my test suite in the way Titus suggests, except that I have a while loop that sleeps for a couple seconds, calls .reload(), then checks for specific content in the page to see if it's safe to continue. I've also disabled refresh
 handling by calling: .config(&quot;acknowledge_equiv_refresh&quot;, False).</div>
<div><br>
</div>
<div>Hope that helps,</div>
<div>Kevin</div>
<div><br>
<div>
<div>On May 10, 2010, at 2:17 PM, C. Titus Brown wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>On Mon, May 10, 2010 at 12:03:58PM &#43;0200, <a href="mailto:ap2003@libero.it">
ap2003@libero.it</a> wrote:<br>
<blockquote type="cite">I'm trying to use twill to automate part of the Drupal installation.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">The installation page refreshes itself automatically to show progress. Unfortunately, it seems this confuses twill since twill believes it's entering an infinite loop.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">I read that twill behaves this way after 5 redirections to the same page. How can I raise the limit so that I will be able to finish the installation properly?<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">The suggested workaround &quot;Try turning off acknowledge_equiv_refresh...&quot; doesn't work for me, since the installation gets stuck.<br>
</blockquote>
<br>
Hi Andrea,<br>
<br>
that's a tough situation to generalize from, at the moment. &nbsp;The equiv-refresh<br>
behavior in twill is not great, and so there aren't so many built-in options.<br>
You could do something like exit after the first equiv-refresh, and then<br>
sleep for some time and then call an explicit reload once you think the<br>
job is complete.<br>
<br>
best,<br>
--titus<br>
<br>
<blockquote type="cite">Here the log:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">go <a href="http://.../install.php?locale=&amp;profile=prof">
http://.../install.php?locale=&amp;profile=prof</a><br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">==&gt; at <a href="http://.../install.php?locale=&amp;profile=prof">
http://.../install.php?locale=&amp;profile=prof</a><br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">submit<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">Note: submit is using submit button: name=&quot;op&quot;, value=&quot;Save and continue&quot;<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Following HTTP-EQUIV=REFRESH to <a href="http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs">
http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs</a><br>
</blockquote>
<blockquote type="cite">Following HTTP-EQUIV=REFRESH to <a href="http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs">
http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs</a><br>
</blockquote>
<blockquote type="cite">Following HTTP-EQUIV=REFRESH to <a href="http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs">
http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs</a><br>
</blockquote>
<blockquote type="cite">Following HTTP-EQUIV=REFRESH to <a href="http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs">
http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs</a><br>
</blockquote>
<blockquote type="cite">Following HTTP-EQUIV=REFRESH to <a href="http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs">
http://.../install.php?locale=&amp;profile=prof&amp;id=2&amp;op=do_nojs</a><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">ERROR: infinite refresh loop discovered; aborting.<br>
</blockquote>
<blockquote type="cite">Try turning off acknowledge_equiv_refresh...<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">current page: &nbsp;*empty page* <br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Thanks,<br>
</blockquote>
<blockquote type="cite">Andrea.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">_______________________________________________<br>
</blockquote>
<blockquote type="cite">twill mailing list<br>
</blockquote>
<blockquote type="cite"><a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>
</blockquote>
<blockquote type="cite"><a href="http://lists.idyll.org/listinfo/twill">http://lists.idyll.org/listinfo/twill</a><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<br>
-- <br>
C. Titus Brown, <a href="mailto:ctb@msu.edu">ctb@msu.edu</a><br>
<br>
_______________________________________________<br>
twill mailing list<br>
<a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>
http://lists.idyll.org/listinfo/twill<br>
</div>
</blockquote>
</div>
<br>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div><font face="Calibri, Verdana, Helvetica, Arial"><font size="2"><span style="font-size: 10pt; "><b>Kevin P. Boers &nbsp;<br>
</b>QA Manager<br>
847-440-8381<br>
</span></font></font><font face="Times New Roman"><span style="font-size: 12pt; "><br>
</span></font><font size="2"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 10pt; "><b>Leapfrog Online<br>
</b>807 Greenwood<br>
Evanston, IL &nbsp;60201<br>
Main 847-492-1968<br>
Fax &nbsp;847-492-1990<br>
<a href="x-msg://107/kboers@leapfrogonline.com">kboers@leapfrogonline.com</a><br>
<a href="http://www.leapfrogonline.com/">www.leapfrogonline.com</a></span></font></font></div>
</span></div>
<br>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">CONFIDENTIALITY NOTE<br>
The document(s) accompanying this e-mail transmission, if any, and the e-mail transmittal message containing information from Leapfrog Online Customer Acquisition, LLC is confidential or privileged. The information is intended to be for the use of the individual(s)
 or entity(ies) named on this e-mail transmission message. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this e-mail is prohibited. If you have received this e-mail in error, please immediately
 delete this e-mail and notify us by telephone of the error.<br>
</font>
</body>
</html>