söndag 01 juli 2007 23:59 skrev Titus Brown:
> -> I'm trying to use twill to examine forms in webpages and it fails all
> the -> time. I have after a fairly long debugging session pinpointed the
> problem.
>
> Jacob, thanks for tracking this down.  Is there any way you can send me
> something to reproduce your original problem?
>
> (I'm interested in adding your bug into some tests, so that I can avoid
> regressions!)
>
> cheers,
> --titus

The webpage I first tried it on was http://bokning.npk.nu/

I have reduced the wepage to something more manageble, which I have enclosed 
as an attachment.

Below is a program which will produce a traceback if twill fails to parse the 
form and which will pass without problems if twill works correctly.

#########
from twill import get_browser
from twill.commands import formclear

baseURL = 'http://www2.openend.se/~jacob/test.html'
b = get_browser()

b.go(baseURL)

assert b.result.http_code == 200

formclear('1')

##########

Cheers

Jacob
Title: NPK - Administratörkalender

Administratörkalender


09:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00
09:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00
1 2 3 4 5
1 2 3 4 5
_______________________________________________
twill mailing list
[email protected]
http://lists.idyll.org/listinfo/twill

Reply via email to