lib/watir-webdriver/elements/input.rb in watir-webdriver-0.6.4 vs lib/watir-webdriver/elements/input.rb in watir-webdriver-0.6.5
- old
+ new
@@ -12,23 +12,7 @@
def enabled?
!disabled?
end
- #
- # Return the type attribute of the element, or 'text' if the attribute is invalid.
- # TODO: discuss.
- #
- # @return [String]
- #
-
- def type
- assert_exists
- value = @element.attribute("type").to_s
-
- # we return 'text' if the type is invalid
- # not sure if we really should do this
- TextFieldLocator::NON_TEXT_TYPES.include?(value) ? value : 'text'
- end
-
end # Input
end # Watir