You can get href attribute of all links with:
browser.links.each do |link|
puts link.href
endhttp://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