Class: WWW::Mechanize::Page::Link

Class | WWW::Mechanize::Page::Link
In: | lib/www/mechanize/monkey_patch.rb lib/www/mechanize/page/link.rb
Parent: | Object

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="Hello">rubyforge.org">Hello World</a> <a href="rubyforge.org"> src="test.jpg" alt="Hello World"></a>

### Methods

click new uri

### External Aliases

pretty_inspect | -> | inspect
text | -> | to_s
page | -> | referer

### Attributes

attributes | [R] |
href | [R] |
node | [R] |
page | [R] |
text | [R] |

### Public Class methods

new(node, mech, page)

### Public Instance methods

click()

Click on this link

uri()

[Validate]