Class: QAT::Web::Elements::Element
- Defined in:
- lib/qat/web/elements/element.rb
Overview
Web Element wrapper class for a web element
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#finder ⇒ Proc
Returns the element finder block.
Methods inherited from Base
Methods included from Config
Methods included from Selector
Methods included from Configuration
last_access, #last_access, last_access=, #parse_configuration
Constructor Details
This class inherits a constructor from QAT::Web::Elements::Base
Instance Method Details
#finder ⇒ Proc
Returns the element finder block
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/qat/web/elements/element.rb', line 10 def finder selector = @selector proc do if selector.last.is_a?(Hash) find(*selector[0..1], **selector.last) else find(*selector) end end end |