[Zope3-dev] zope.testbrowser.browser problem

Gary Poster gary at zope.com
Thu Nov 24 22:43:51 EST 2005


On Nov 24, 2005, at 6:04 AM, Chris Withers wrote:

> Hi All,
>
> Not sure if this is the right place to report this, please let me  
> know if I should do so somewhere else...

No idea, sounds reasonable.

> I have a form as follows:
>
> <form action="aPythonScript"
>       method="POST" name="form_name">
> ...
> <input type="submit" name="action" value=" Go " />
> <input type="submit" name="action" value=" Do Something " />
> ...
> </form>
>
> Now, I do the following with a zope.testbrowser.browser:
>
> browser.getForm(name='form_name').getControl(' Do Something ').click()
>
> However, the value of REQUEST.form['action'] in aPythonScript is "  
> Go ", not " Do Something ", as I'd expect.
>
> Any idea what's causing this and how I can fix it?

Unfortunately, not off-hand.  If you send me a smallest-possible- 
failing doctest (which might be pretty close to this email?) I'll  
look at it and try to make it pass.

Gary


More information about the Zope3-dev mailing list