lib/watir/elements/text_field.rb in watir-6.0.0.beta4 vs lib/watir/elements/text_field.rb in watir-6.0.0.beta5
- old
+ new
@@ -5,16 +5,21 @@
NON_TEXT_TYPES = %w[file radio checkbox submit reset image button hidden range color]
inherit_attributes_from Watir::TextArea
remove_method :type # we want Input#type here, which was overriden by TextArea's attributes
- private
+ protected
def selector_string
selector = @selector.dup
selector[:type] = '(any text type)'
selector[:tag_name] = "input or textarea"
- selector.inspect
+
+ if @query_scope.is_a?(Browser) || @query_scope.is_a?(IFrame)
+ super
+ else
+ "#{@query_scope.selector_string} --> #{selector.inspect}"
+ end
end
end # TextField
module Container
def text_field(*args)