You can get href attribute of all links with:
browser.links.each do |link|
puts link.href
end
http://google.com/http://facebook.com/
Watir Method | HTML element |
---|---|
areas | |
buttons | |
checkboxes | |
dds | |
divs | |
dls | |
dts | |
ems | |
file_fields | |
forms | |
? |
No comments:
Post a Comment