class sap.ui.test.PageObjectFactory

Visiblity: protected
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/test/PageObjectFactory
Application Component: CA-UI5-TA

Page Object Factory.


Constructor

new sap.ui.test.PageObjectFactory()

Methods Overview

Method Description
sap.ui.test.PageObjectFactory.create

Creates a set of page objects, each consisting of actions and assertions, and adds them to the Opa configuration.

Use page objects to structure your actions and assertions based on parts of the screen. This helps to avoid name clashes and to structure your tests.

References:

  • sap.ui.test.Opa5.createPageObjects

sap.ui.test.PageObjectFactory.create

Creates a set of page objects, each consisting of actions and assertions, and adds them to the Opa configuration.

Use page objects to structure your actions and assertions based on parts of the screen. This helps to avoid name clashes and to structure your tests.

References:

Param Type DefaultValue Description
mPageDefinitions Object<string,sap.ui.test.PageObjectDefinition>

Definitions of 1 or more page objects

Opa5 sap.ui.test.Opa5

Opa5 class, provided as parameter to avoid a circular dependency