From 709b27c746c61e88dbc3b8cb0560a7a0cf18c4e8 Mon Sep 17 00:00:00 2001 From: Matthew McGarvey Date: Mon, 8 Jun 2020 17:14:09 -0500 Subject: [PATCH] LuckyFlow::Element#value uses property instead of attribute --- src/lucky_flow/element.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lucky_flow/element.cr b/src/lucky_flow/element.cr index 6e250e4..2602f66 100644 --- a/src/lucky_flow/element.cr +++ b/src/lucky_flow/element.cr @@ -1,7 +1,7 @@ class LuckyFlow::Element private getter raw_selector getter inner_text - delegate text, click, send_keys, displayed?, attribute, to: element + delegate text, click, send_keys, displayed?, attribute, property, to: element delegate session, to: LuckyFlow def initialize(@raw_selector : String, text @inner_text : String? = nil) @@ -14,7 +14,7 @@ class LuckyFlow::Element end def value - attribute("value") + property("value") end # Set the text of a form field