Class: QAT::Web::Elements::Collection
- Defined in:
- lib/qat/web/elements/collection.rb
Overview
Web Element wrapper class for web elements collection
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#finder ⇒ Proc
Returns the collection 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 collection finder block
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/qat/web/elements/collection.rb', line 10 def finder selector = @selector proc do if selector.last.is_a?(Hash) all(*selector[0..1], **selector.last) else all(*selector) end end end |