Module: LocatorStore::ClassMethods
- Defined in:
- lib/howitzer/utils/locator_store.rb
Defined Under Namespace
Classes: BadLocatorParamsError, LocatorNotSpecifiedError
Instance Method Summary
collapse
Instance Method Details
41
42
43
|
# File 'lib/howitzer/utils/locator_store.rb', line 41
def add_button_locator(name, params)
add_locator_by_type(:button, name, params)
end
|
#add_field_locator(name, params) ⇒ Object
37
38
39
|
# File 'lib/howitzer/utils/locator_store.rb', line 37
def add_field_locator(name, params)
add_locator_by_type(:field, name, params)
end
|
#add_link_locator(name, params) ⇒ Object
33
34
35
|
# File 'lib/howitzer/utils/locator_store.rb', line 33
def add_link_locator(name, params)
add_locator_by_type(:link, name, params)
end
|
#add_locator(name, params) ⇒ Object
29
30
31
|
# File 'lib/howitzer/utils/locator_store.rb', line 29
def add_locator(name, params)
add_locator_by_type(:base, name, params)
end
|
#apply(locator, *values) ⇒ Object
61
62
63
|
# File 'lib/howitzer/utils/locator_store.rb', line 61
def apply(locator, *values)
locator.call(*values).to_a.flatten
end
|
57
58
59
|
# File 'lib/howitzer/utils/locator_store.rb', line 57
def button_locator(name)
locator_by_type(:button, name)
end
|
#field_locator(name) ⇒ Object
53
54
55
|
# File 'lib/howitzer/utils/locator_store.rb', line 53
def field_locator(name)
locator_by_type(:field, name)
end
|
#link_locator(name) ⇒ Object
49
50
51
|
# File 'lib/howitzer/utils/locator_store.rb', line 49
def link_locator(name)
locator_by_type(:link, name)
end
|
#locator(name) ⇒ Object
45
46
47
|
# File 'lib/howitzer/utils/locator_store.rb', line 45
def locator(name)
locator_by_type(:base, name)
end
|