Method: Tooth::PageObject#element
- Defined in:
- lib/deps/tooth/page_object.rb
#element(name, locator, options = {}) ⇒ Object
TODO: refactor to support :xpath locators
53 54 55 56 57 |
# File 'lib/deps/tooth/page_object.rb', line 53 def element name, locator, = {} page_element[name] = lambda { |*args| element_with_finders.find(locator_string(locator, args), ) } end |