Hi Jamal,<div><br></div><div>I was able to reproduce your example without a TwillAssertionError, using twill version 0.9.  I&#39;m not sure what the problem is.  Which version of Twill are you using?</div><div><br></div><div>
Jesse<br><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 11:09 AM, Jamal Mazrui <span dir="ltr">&lt;<a href="mailto:Jamal.Mazrui@fcc.gov">Jamal.Mazrui@fcc.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I&#39;m trying to automate a Wikipedia search using Google to find the best<br>
matching article.  I have things working in an interactive session with<br>
the twill shell, but for some reason, the code is not finding the Google<br>
search form -- I get the error &quot;twill.errors.TwillAssertionError: no<br>
matching forms!&quot;<br>
<br>
Here is the relevant code:<br>
<br>
sQuery = &#39;Python&#39;<br>
sAddress = &#39;<a href="http://google.com" target="_blank">http://google.com</a>&#39;<br>
oBrowser = twill.get_browser()<br>
oBrowser.go(sAddress)<br>
twill.commands.formvalue(1, &#39;q&#39;, &#39;site:<a href="http://wikipedia.org" target="_blank">wikipedia.org</a> &#39; + sQuery<br>
twill.commands.submit()<br>
twill.commands.follow(&#39;<a href="http://en.wikipedia.org" target="_blank">en.wikipedia.org</a>&#39;)<br>
<br>
<br>
Jamal<br>
<br>
<br>
_______________________________________________<br>
twill mailing list<br>
<a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/twill" target="_blank">http://lists.idyll.org/listinfo/twill</a><br>
</blockquote></div><br></div>