Class: Webrat::Area

Inherits:
Element show all
Defined in:
lib/webrat/core/elements/area.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Element

#element

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Element

#initialize, #inspect, load, load_all, #path

Constructor Details

This class inherits a constructor from Webrat::Element

Class Method Details

.xpath_searchObject



6
7
8
# File 'lib/webrat/core/elements/area.rb', line 6

def self.xpath_search
  [".//area"]
end

Instance Method Details

#click(method = nil, options = {}) ⇒ Object



10
11
12
# File 'lib/webrat/core/elements/area.rb', line 10

def click(method = nil, options = {})
  @session.request_page(absolute_href, :get, {})
end