Method: Webrat::Locators::AreaLocator#area_element

Defined in:
lib/webrat/core/locators/area_locator.rb

#area_elementObject



12
13
14
15
16
17
# File 'lib/webrat/core/locators/area_locator.rb', line 12

def area_element
  area_elements.detect do |area_element|
    Webrat::XML.attribute(area_element, "title") =~ matcher ||
    Webrat::XML.attribute(area_element, "id") =~ matcher
  end
end