Module Webrat::Locators
In: lib/webrat/core/locators/field_by_id_locator.rb
lib/webrat/core/locators/form_locator.rb
lib/webrat/core/locators/field_named_locator.rb
lib/webrat/core/locators/field_labeled_locator.rb
lib/webrat/core/locators/field_locator.rb
lib/webrat/core/locators/link_locator.rb
lib/webrat/core/locators/select_option_locator.rb
lib/webrat/core/locators/label_locator.rb
lib/webrat/core/locators/area_locator.rb
lib/webrat/core/locators/button_locator.rb
lib/webrat/core/locators/locator.rb
lib/webrat/core/locators.rb

Methods

Public Instance methods

Locates a form field based on a label element in the HTML source. This can be useful in order to verify that a field is pre-filled with the correct value.

Example:

  field_labeled("First name").value.should == "Bryan"

[Validate]