Method: Webrat::Locators::SelectOptionLocator#error_message

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

#error_messageObject



44
45
46
47
48
49
50
# File 'lib/webrat/core/locators/select_option_locator.rb', line 44

def error_message
  if @id_or_name_or_label
    "The '#{@option_text}' option was not found in the #{@id_or_name_or_label.inspect} select box"
  else
    "Could not find option #{@option_text.inspect}"
  end
end