[twill] Not seeing all of the form

Titus Brown titus at caltech.edu
Sun Nov 27 17:19:33 PST 2005


-> Let me just start with the fact that I think Twill is a great testing 
-> tool and I really hope that it gets better.  And I've been testing 
-> websites for 4 years now.

Glad to hear it!

-> But, it's not seeing the entire form that I have at 
-> https://www.playfirst.com/secure/login.html. 

This seems to be because of the <br/> tags.  When I run things through
'tidy', tidy.sf.net/, showforms works:

...
Form name=loginForm
## __Name______ __Type___ __ID________ __Value__________________
   redir        hidden    (None)
   handle       text      (None)
   password     password  (None)
   remember     checkbox  (None)       ['on'] of ['on']
1               image     (None)
...


Partly as a result of this, and partly because I felt like it ;), I've
added in a couple of 'tidy' features.

First of all, twill will now run tidy on all Web pages before processing
forms, links, or titles.  This can be disabled by executing

	config do_run_tidy 0

twill runs tidy by executing the 'tidy' binary; if it's not installed or
not in the path, it will fail gracefully and ignore the absence.  You
can *require* that tidy exist by executing

	config tidy_should_exist 1

I'll post a new -latest in a bit.

cheers,
--titus



More information about the twill mailing list