Module: Howitzer::Web::ElementDsl::ClassMethods
- Includes:
- Utils::ArgumentConvertable
- Defined in:
- lib/howitzer/web/element_dsl.rb
Overview
This module holds element dsl methods
Instance Method Summary collapse
-
#element(name, *args, **options) ⇒ Object
Creates a group of methods to interact with described HTML element(s) on page.
Instance Method Details
#element(name, *args, **options) ⇒ Object
Note:
This method generates following dynamic methods:
element_name_element - equals capybara #find(…) method
element_name_elements - equals capybara #all(…) method
element_name_elements.first - equals capybara #first(…) method
wait_for_element_name_element - equals capybara #find(…) method but returns nil
within_element_name_element - equals capybara #within(…) method
has_element_name_element? - equals capybara #has_selector(…) method
has_no_element_name_element? - equals capybara #has_no_selector(…) method
Creates a group of methods to interact with described HTML element(s) on page
74 75 76 77 78 79 80 81 82 |
# File 'lib/howitzer/web/element_dsl.rb', line 74 def element(name, *args, **) validate_arguments!(args) define_element(name, args, ) define_elements(name, args, ) define_wait_for_element(name, args, ) define_within_element(name, args, ) define_has_element(name, args, ) define_has_no_element(name, args, ) end |