lib/watir-classic/link.rb in watir-classic-3.2.0 vs lib/watir-classic/link.rb in watir-classic-3.3.0
- old
+ new
@@ -5,15 +5,15 @@
# many of the methods available to this object are inherited from the Element class
#
class Link < Element
attr_ole :type
attr_ole :href
+ attr_ole :name
# if an image is used as part of the link, this will return true
def link_has_image
assert_exists
- return true if @o.getElementsByTagName("IMG").length > 0
- return false
+ @o.getElementsByTagName("IMG").length > 0
end
# this method returns the src of an image, if an image is used as part of the link
def src # BUG?
assert_exists