Class: SeleniumRecord::Lookup::ClassMethods::RootStrategy

Inherits:
LookupStrategy
  • Object
show all
Defined in:
lib/selenium_record/lookup.rb

Overview

Defines a lookup sequence matching the whole document body

Instance Attribute Summary

Attributes inherited from LookupStrategy

#lookup_attributes

Instance Method Summary collapse

Methods inherited from LookupStrategy

#initialize, #lookup_sequence

Constructor Details

This class inherits a constructor from SeleniumRecord::Lookup::ClassMethods::LookupStrategy

Instance Method Details

#before_runObject



117
118
119
# File 'lib/selenium_record/lookup.rb', line 117

def before_run
  -> { @parent_el = nil }
end

#runObject



113
114
115
# File 'lib/selenium_record/lookup.rb', line 113

def run
  lookup_sequence { [{ xpath: '//body' }] }
end