[twill] Problem With Login Form

Terry Peppers peppers at gmail.com
Tue Jul 15 12:19:28 PDT 2008


Adam - Titus -

A couple of hunches.

1. Very possible that Bananascrum is a Rails app.
2. We've had success clearing the headers to submit Rails forms.

I can successfully login if I clear_extra_headers()

>>> import twill.commands as t
>>> t.go("http://demo.bananascrum.com")
==> at http://demo.bananascrum.com/profile/loginform
'http://demo.bananascrum.com/profile/loginform'
>>> t.code("200")
>>> t.clear_extra_headers()
>>> t.fv(1, "login", "admin")
>>> t.fv(1, "password", "test")
>>> t.submit()
Note: submit is using submit button: name="commit", value="Log in"
>>> t.get_browser().get_url()
'http://demo.bananascrum.com/bananascrum/sprint/show/311806534'
>>>

Titus, I swear Pam sent in a patch to Twill to clear up this problem. Pam?

t.



More information about the twill mailing list