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'

>From what I've experienced with Rails and Twill is that there are some
very odd nuances in their interaction. Clear_extra_headers() was a
workaround that we came up with here - as Pam outlines on her blog.

I'll need to dig more.


On Tue, Jul 15, 2008 at 3:48 PM, Adam Byrtek <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 9:19 PM, Terry Peppers <[EMAIL PROTECTED]> wrote:
>> 1. Very possible that Bananascrum is a Rails app.
>
> That's true.
>
>> 2. We've had success clearing the headers to submit Rails forms.
>>
>> I can successfully login if I clear_extra_headers()
>
> Have you tested first that you cannot login without this command? As I
> said before, I can login successfully on one machine (Mac OS X), but
> have problems on another (Debian Sarge). I'm asking because
> clear_extra_headers does nothing for me, also I have no idea why would
> HTTP headers make any difference when it comes to Twill detecting form
> inputs that *are* visible in the page source when I invoke show.
>
> I assume you are referring to this, which is I presume a different issue:
> http://www.zerbie.com/2008/03/25/twill-rails/
>
> Thanks anyway!
> Adam
>
>
> --
> Adam Byrtek | Alpha
> http://www.adambyrtek.net
> http://www.codesprinters.com
>

_______________________________________________
twill mailing list
[email protected]
http://lists.idyll.org/listinfo/twill

Reply via email to