Class: Capypage::Elements
- Inherits:
-
Object
- Object
- Capypage::Elements
- Includes:
- ElementProxy, Enumerable
- Defined in:
- lib/capypage/elements.rb
Instance Attribute Summary collapse
-
#base_element ⇒ Object
readonly
Returns the value of attribute base_element.
-
#child_dsl_block ⇒ Object
readonly
Returns the value of attribute child_dsl_block.
-
#child_selector ⇒ Object
readonly
Returns the value of attribute child_selector.
Instance Method Summary collapse
- #find_by_index(index) ⇒ Object
- #find_by_text(text, options = {}) ⇒ Object
-
#initialize(parent_selector, child_selector, options = {}, &block) ⇒ Elements
constructor
A new instance of Elements.
Constructor Details
#initialize(parent_selector, child_selector, options = {}, &block) ⇒ Elements
Returns a new instance of Elements.
11 12 13 14 15 16 |
# File 'lib/capypage/elements.rb', line 11 def initialize(parent_selector, child_selector, = {}, &block) @base_element = Element.new(parent_selector, ) @child_selector = child_selector @child_dsl_block = block end |
Instance Attribute Details
#base_element ⇒ Object (readonly)
Returns the value of attribute base_element.
6 7 8 |
# File 'lib/capypage/elements.rb', line 6 def base_element @base_element end |
#child_dsl_block ⇒ Object (readonly)
Returns the value of attribute child_dsl_block.
6 7 8 |
# File 'lib/capypage/elements.rb', line 6 def child_dsl_block @child_dsl_block end |
#child_selector ⇒ Object (readonly)
Returns the value of attribute child_selector.
6 7 8 |
# File 'lib/capypage/elements.rb', line 6 def child_selector @child_selector end |