new PageObjects(pages)
Defines a new set of application pages.
Parameters:
Name | Type | Description |
---|---|---|
pages |
Array.<Page~PageDefinition> | definitions for the pages to be added |
- Source:
Examples
Pass in a variable number of pages
var app = new PageObjects(login, home, settings);
Pass in an array of pages
var app = new PageObjects([login, home, settings]);
Or mix the two
var app = new PageObjects(login, [home], settings);
Methods
$page(definition)
Creates a new definition for a page in the application
Parameters:
Name | Type | Description |
---|---|---|
definition |
Page~PageDefinition | the definition for the new page |
- Source: