Class: Webrat::Locators::Locator

Inherits:
Object
  • Object
show all
Defined in:
lib/webrat/core/locators/locator.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(session, dom, value, *field_types) ⇒ 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(error_message))
end