module SeleniumRecord::Lookup::ClassMethods

Contains class method helpers and definition of classes for lookup strategy

Public Instance Methods

lookup_strategy(strategy_sym, opts = {}) click to toggle source

@param strategy_sym [Symbol] lookup strategy corresponding with the

name of a lookup strategy locator
# File lib/selenium_record/lookup.rb, line 51
def lookup_strategy(strategy_sym, opts = {})
  locator_klass = "#{strategy_sym.to_s.camelize}Strategy"
  Module.nesting.shift.const_get(locator_klass).new(self, opts).run
end