Unchecked checkboxes should return null and not false as their value #465
Labels
Milestone
Comments
Documentation section 4.14.3 for the most current release still indicates that calling .value() on an unchecked checkbox will return 'false'. Please update the relevant documentation. Thanks. |
Thanks for reporting @Nossarian, I created a new issue for it. |
erdi
added a commit
to geb/geb
that referenced
this issue
Jun 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue is about reverting changes added to fix #156. The rationale there is that
false
can be used to uncheck a checkbox but one can also usenull
as the value when unchecking a checkbox and the manual suggests to use groovy truth when checking if a checkbox is checked.This special case of returning false for unchecked checkboxes means that they behave inconsistently in other parts of the API, namely when obtaining value of multiple checkboxes using form control shortcuts.
Note that this is breaking change and can only be introduced in the next major version.
The text was updated successfully, but these errors were encountered: