Path: | lib/mechanize/page/link.rb |
Last Update: | Fri Apr 26 06:19:23 +0000 2013 |
This class encapsulates links. It contains the text and the URI for ‘a’ tags parsed out of an HTML page. If the link contains an image, the alt text will be used for that image.
For example, the text for the following links with both be ‘Hello World’:
<a href="http://example">Hello World</a> <a href="http://example"><img src="test.jpg" alt="Hello World"></a>