module PageObject::NestedElements
Public Class Methods
included(cls)
click to toggle source
# File lib/page-object/nested_elements.rb, line 6 def self.included(cls) ::PageObject::LocatorGenerator.generate_locators(cls) end
Private Instance Methods
locator(identifier)
click to toggle source
# File lib/page-object/nested_elements.rb, line 12 def locator(identifier) identifier[0] ? identifier[0] : {:index => 0} end