diff --git a/lib/webrat/core/elements/field.rb b/lib/webrat/core/elements/field.rb index c887167..024d9ec 100644 --- a/lib/webrat/core/elements/field.rb +++ b/lib/webrat/core/elements/field.rb @@ -134,7 +134,7 @@ module Webrat end def escaped_value - CGI.escape(@value.to_s) + CGI.escape([*@value].first.to_s) end def labels