Class: RIESS::LocatorStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/finders.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLocatorStrategy

Returns a new instance of LocatorStrategy.



7
8
9
10
11
12
13
14
# File 'lib/finders.rb', line 7

def initialize
  @locator = {
    :id => :find_element_by_id,
    :name => :find_element_by_name,
    :search => :find_element_by_search,
    :search_path => :find_element_by_search_path
  }
end

Instance Attribute Details

#locatorObject (readonly)

Returns the value of attribute locator.



5
6
7
# File 'lib/finders.rb', line 5

def locator
  @locator
end