lib/page-object/platforms/selenium_webdriver/link.rb in page-object-0.9.4 vs lib/page-object/platforms/selenium_webdriver/link.rb in page-object-0.9.5
- old
+ new
@@ -7,10 +7,17 @@
# #value is not available on links in Selenium.
#
def value
raise "value not available on link element with Selenium"
end
+
+ #
+ # return the href for the link
+ #
+ def href
+ attribute('href')
+ end
end
end
end
-end
\ No newline at end of file
+end