From ca102c53a8b6b5b62efbc3e5e41116e9a12abf6a Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Thu, 17 Jun 2021 21:19:36 +0900 Subject: [PATCH] add hidden input --- src/mechanize/form.cr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mechanize/form.cr b/src/mechanize/form.cr index baa1cec..22b436f 100644 --- a/src/mechanize/form.cr +++ b/src/mechanize/form.cr @@ -2,6 +2,7 @@ require "./form/field" require "./form/radio_button" require "./form/check_box" require "./form/text" +require "./form/hidden" class MechanizeCr::Form getter fields : Array(FormContent::Field) @@ -81,6 +82,8 @@ class MechanizeCr::Form radiobuttons << FormContent::RadioButton.new(html_node, self) when "text" fields << FormContent::Text.new(html_node) + when "hidden" + fields << FormContent::Hidden.new(html_node) else fields << FormContent::Field.new(html_node) end