Class: Howitzer::Web::BaseSection

Inherits:
Object
  • Object
show all
Includes:
CapybaraMethodsProxy, ElementDsl, IframeDsl, SectionDsl
Defined in:
lib/howitzer/web/base_section.rb

Overview

This class holds base functinality for sections

Direct Known Subclasses

Section

Constant Summary

Constants included from CapybaraMethodsProxy

CapybaraMethodsProxy::PROXIED_CAPYBARA_METHODS

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CapybaraMethodsProxy

#click_alert_box

Methods included from IframeDsl

included

Methods included from CapybaraContextHolder

#capybara_context

Methods included from SectionDsl

included

Methods included from ElementDsl

included

Constructor Details

#initialize(parent, context) ⇒ BaseSection

Returns a new instance of BaseSection.



21
22
23
24
# File 'lib/howitzer/web/base_section.rb', line 21

def initialize(parent, context)
  @parent = parent
  capybara_scopes << context
end

Class Attribute Details

.default_finder_argsObject (readonly)

Returns the value of attribute default_finder_args.



18
19
20
# File 'lib/howitzer/web/base_section.rb', line 18

def default_finder_args
  @default_finder_args
end

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



15
16
17
# File 'lib/howitzer/web/base_section.rb', line 15

def parent
  @parent
end