Path: | lib/mechanize/page/link.rb |
Last Update: | Fri Aug 24 19:49:54 +0000 2012 |
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>