[twill] Problem With Login Form

Terry Peppers peppers at gmail.com
Tue Jul 15 14:55:37 PDT 2008


OK - maybe I'm wrong, Adam.

I can get it from my OS X machine just fine. Here's the iPython
session without the clear_extra_headers() call.

In [1]: import twill.commands as t

In [2]: t.go("http://demo.bananascrum.com")
==> at http://demo.bananascrum.com/profile/loginform
Out[2]: 'http://demo.bananascrum.com/profile/loginform'

In [3]: t.code("200")

In [4]: t.fv(1, "login", "admin")

In [5]: t.fv(1, "password", "test")

In [6]: t.submit()
Note: submit is using submit button: name="commit", value="Log in"

In [7]: t.get_browser().get_url()
Out[7]: 'http://demo.bananascrum.com/bananascrum/sprint/show/311806534'



More information about the twill mailing list