Module: WorldPages

Defined in:
lib/testcentricity_web/world_extensions.rb

Instance Method Summary collapse

Instance Method Details

#instantiate_page_objectsObject

instantiate and register all page objects specified in page_objects method



19
20
21
22
23
24
25
# File 'lib/testcentricity_web/world_extensions.rb', line 19

def instantiate_page_objects
  # return if page objects have already been instantiated and registered
  return if TestCentricity::PageManager.loaded?

  # register and instantiate all page objects
  eval(TestCentricity::PageManager.register_page_objects(page_objects))
end