lib/watir/elements/text_field.rb in watir-6.13.0 vs lib/watir/elements/text_field.rb in watir-6.14.0
- old
+ new
@@ -1,17 +1,15 @@
module Watir
class TextField < Input
include UserEditable
- NON_TEXT_TYPES = %w[file radio checkbox submit reset image button hidden range color date datetime-local]
+ NON_TEXT_TYPES = %w[file radio checkbox submit reset image button hidden range color date datetime-local].freeze
- protected
-
def selector_string
selector = @selector.dup
selector[:type] = '(any text type)'
- selector[:tag_name] = "input"
+ selector[:tag_name] = 'input'
if @query_scope.is_a?(Browser) || @query_scope.is_a?(IFrame)
super
else
"#{@query_scope.selector_string} --> #{selector.inspect}"
@@ -19,14 +17,14 @@
end
end # TextField
module Container
def text_field(*args)
- TextField.new(self, extract_selector(args).merge(tag_name: "input"))
+ TextField.new(self, extract_selector(args).merge(tag_name: 'input'))
end
def text_fields(*args)
- TextFieldCollection.new(self, extract_selector(args).merge(tag_name: "input"))
+ TextFieldCollection.new(self, extract_selector(args).merge(tag_name: 'input'))
end
end # Container
class TextFieldCollection < InputCollection
private