lib/watir-webdriver/elements/input.rb in watir-webdriver-0.0.3 vs lib/watir-webdriver/elements/input.rb in watir-webdriver-0.0.4
- old
+ new
@@ -15,10 +15,10 @@
# @return [String]
#
def type
assert_exists
- value = rescue_no_match { @element.attribute("type").to_s }
+ 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