Class: SeleniumRecord::Lookup::ClassMethods::RelativeTitleStrategy

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

Overview

Defines a lookup sequence relative to the title xpath

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

#runObject



86
87
88
89
90
# File 'lib/selenium_record/lookup.rb', line 86

def run
  lookup_sequence do
    [title_locator, lookup_attributes[:locator]]
  end
end