Class: QAT::Web::Elements::Base
- Inherits:
-
Object
- Object
- QAT::Web::Elements::Base
- Defined in:
- lib/qat/web/elements/base.rb
Overview
Web Element wrapper base class
Direct Known Subclasses
Instance Attribute Summary collapse
- #config ⇒ Object readonly
- #name ⇒ Object readonly
- #selector ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(elements, *args) ⇒ Base
constructor
New instance and the second an optional configuration.
Methods included from Config
Methods included from Configuration
last_access, #last_access, last_access=, #parse_configuration
Constructor Details
#initialize(elements, *args) ⇒ Base
New instance and the second an optional configuration. If none is given, it will be automatically loaded from the loaded configuration by the element name
22 23 24 25 |
# File 'lib/qat/web/elements/base.rb', line 22 def initialize(elements, *args) get_element_info(elements, *args) @selector = extract_selector(@config) end |
Instance Attribute Details
#config ⇒ Object (readonly)
15 16 17 |
# File 'lib/qat/web/elements/base.rb', line 15 def config @config end |
#name ⇒ Object (readonly)
15 16 17 |
# File 'lib/qat/web/elements/base.rb', line 15 def name @name end |
#selector ⇒ Object (readonly)
15 16 17 |
# File 'lib/qat/web/elements/base.rb', line 15 def selector @selector end |