Class: SeleniumRecord::Lookup::ClassMethods::RootStrategy
- Inherits:
-
LookupStrategy
- Object
- LookupStrategy
- SeleniumRecord::Lookup::ClassMethods::RootStrategy
- Defined in:
- lib/selenium_record/lookup.rb
Overview
Defines a lookup sequence matching the whole document body
Instance Attribute Summary
Attributes inherited from LookupStrategy
Instance Method Summary collapse
Methods inherited from LookupStrategy
Constructor Details
This class inherits a constructor from SeleniumRecord::Lookup::ClassMethods::LookupStrategy
Instance Method Details
#before_run ⇒ Object
117 118 119 |
# File 'lib/selenium_record/lookup.rb', line 117 def before_run -> { @parent_el = nil } end |
#run ⇒ Object
113 114 115 |
# File 'lib/selenium_record/lookup.rb', line 113 def run lookup_sequence { [{ xpath: '//body' }] } end |