I found two issues in twill which are very annoying for me.
1. If a disabled submit button has a value, I can submit the form
anyway (using that particular submit button).
2. If a form has one submit button without a value, I can not submit the
whole form (regardless of the submit button I use).
I checked with the latest darcs revision and both issues are still
present. I attached my scripts to reproduce the issue. Hopefully it can
be fixed soon :-)
fs
Yes, of course. :-)
Did you use the files I attached to reproduce the issue?
I'll check the twill version of Google code and report my findings.
fs
This was my original description:
"2. If a form has one submit button without a value, I can not submit
the whole form (regardless of the submit button I use)."
As I noticed just now, this should read 'If a form has one *disabled*
submit button without value' but I hope that was clear from the subject
anyway.
To reproduce, remove the value attribute from the 'calculate' submit
button in the test.html I sent earlier.
As for your suggestion not to use disabled submit buttons: Nice idea,
but I won't sacrifice usability of the website just to test it with
twill. Also sometimes you can not control the HTML of the website your
visiting....
fs
Ok, I checked and I can still reproduce both problems with the latest
twill svn.
This was my original description:
"2. If a form has one submit button without a value, I can not submitAs I noticed just now, this should read 'If a form has one *disabled*
the whole form (regardless of the submit button I use)."
submit button without value' but I hope that was clear from the subject
anyway.
To reproduce, remove the value attribute from the 'calculate' submit
button in the test.html I sent earlier.
As for your suggestion not to use disabled submit buttons: Nice idea,
but I won't sacrifice usability of the website just to test it with
twill. Also sometimes you can not control the HTML of the website your
visiting....
fs
When I wanted to test if a specific button is disabled, I thought the
easiest would be to click the button and catch the exception. :-)
fs
Let's see when it is integrated into ClientForm.
fs
Thanks, Felix!
--titus