Class: SeleniumRecord::Lookup::ClassMethods::RelativePathStrategy

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

Overview

Defines a lookup sequence relative to the xpath of an element present in the selenium object

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



96
97
98
99
100
101
# File 'lib/selenium_record/lookup.rb', line 96

def run
  lookup_sequence do
    [send("#{lookup_attributes[:to]}_locator"),
     lookup_attributes[:locator]]
  end
end