Class: Webrat::Locators::FormLocator

Inherits:
Locator show all
Defined in:
lib/webrat/core/locators/form_locator.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Locator

#initialize, #locate!

Constructor Details

This class inherits a constructor from Webrat::Locators::Locator

Instance Method Details

#form_elementObject



12
13
14
# File 'lib/webrat/core/locators/form_locator.rb', line 12

def form_element
  @dom.css("#" + @value).first
end

#locateObject



8
9
10
# File 'lib/webrat/core/locators/form_locator.rb', line 8

def locate
  Form.load(@session, form_element)
end