summaryrefslogtreecommitdiff
path: root/lib/WWW/Mechanize.pm
diff options
context:
space:
mode:
authorJulien Fiegehenn <simbabque@cpan.org>2022-07-04 22:16:11 +0100
committerOlaf Alders <olaf@wundersolutions.com>2022-07-04 22:19:12 -0400
commit15fdf99d52e87d8382000577612076eb7d95f504 (patch)
tree5ede4c75b93a90c2b8311941f6b48785ffd3b18b /lib/WWW/Mechanize.pm
parent59336ecb014d674ba86029929c59fe88a0ad8e2d (diff)
add tests for tick() with no value
Diffstat (limited to 'lib/WWW/Mechanize.pm')
-rw-r--r--lib/WWW/Mechanize.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/WWW/Mechanize.pm b/lib/WWW/Mechanize.pm
index ee24ece..79c413a 100644
--- a/lib/WWW/Mechanize.pm
+++ b/lib/WWW/Mechanize.pm
@@ -2076,6 +2076,11 @@ as the third optional argument will cause the checkbox to be unticked.
The third value does not need to be set if you wish to merely tick the
box.
+ $mech->tick('extra', 'cheese');
+ $mech->tick('extra', 'mushrooms');
+
+ $mech->tick('no_value', ''); # <input type="checkbox" name="no_value">
+
=cut
sub tick {