[twill] Problem With Login Form
C. Titus Brown
ctb at msu.edu
Tue Jul 15 12:21:03 PDT 2008
ahh! ok. hasn't been applied yet :)
On Tue, Jul 15, 2008 at 02:19:28PM -0500, Terry Peppers wrote:
-> 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.
->
-> _______________________________________________
-> twill mailing list
-> twill at lists.idyll.org
-> http://lists.idyll.org/listinfo/twill
->
--
C. Titus Brown, ctb at msu.edu
More information about the twill
mailing list