Class: Webrat::Locators::Locator
- Defined in:
- lib/webrat/core/locators/locator.rb
Overview
:nodoc:
Direct Known Subclasses
AreaLocator, ButtonLocator, FieldByIdLocator, FieldLabeledLocator, FieldLocator, FieldNamedLocator, FormLocator, LabelLocator, LinkLocator, SelectOptionLocator
Instance Method Summary collapse
-
#initialize(session, dom, value, *field_types) ⇒ Locator
constructor
A new instance of Locator.
- #locate! ⇒ Object
Constructor Details
#initialize(session, dom, value, *field_types) ⇒ Locator
Returns a new instance of Locator.
6 7 8 9 10 11 |
# File 'lib/webrat/core/locators/locator.rb', line 6 def initialize(session, dom, value, *field_types) @session = session @dom = dom @value = value @field_types = field_types end |
Instance Method Details
#locate! ⇒ Object
13 14 15 |
# File 'lib/webrat/core/locators/locator.rb', line 13 def locate! locate || raise(NotFoundError.new()) end |