Module: CapybaraObjects::ValidationMethods
- Extended by:
- ActiveSupport::Concern
- Included in:
- ComponentObject, PageObject
- Defined in:
- lib/capybara_objects/validation_methods.rb
Instance Method Summary collapse
-
#validate! ⇒ Object
Validates that the component exists this is simply done by searching for the root node.
Instance Method Details
#validate! ⇒ Object
Validates that the component exists this is simply done by searching for the root node. However, a sub class may implement its own stricter validation if required.
12 13 14 15 |
# File 'lib/capybara_objects/validation_methods.rb', line 12 def validate! raise Exceptions::MissingLocator unless locator.present? root_node.present? end |