Class: SeleniumRecord::Lookup::ClassMethods::RelativePathStrategy
- Inherits:
-
LookupStrategy
- Object
- LookupStrategy
- SeleniumRecord::Lookup::ClassMethods::RelativePathStrategy
- 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
Instance Method Summary collapse
Methods inherited from LookupStrategy
Constructor Details
This class inherits a constructor from SeleniumRecord::Lookup::ClassMethods::LookupStrategy
Instance Method Details
#run ⇒ Object
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 |