Module: PageObject::ElementLocators

Included in:
PageObject
Defined in:
lib/page-object/element_locators.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(cls) ⇒ Object



6
7
8
# File 'lib/page-object/element_locators.rb', line 6

def self.included(cls)
  ::PageObject::LocatorGenerator.generate_locators(cls)
end

Instance Method Details

#element(tag, identifier = {:index => 0}) ⇒ Object



10
11
12
# File 'lib/page-object/element_locators.rb', line 10

def element(tag, identifier={:index => 0})
  platform.element_for(tag, identifier.clone)
end