Creates an instance of PageObjectBuilder.
See CustomSnippets.
Adds two methods to the page-object, fillForm and clearForm. For each input element found on the page, the two methods will provide the following functionality.
function | description |
---|---|
fillForm(data) | The fillForm method will fill out any input element with the provided data. The data is provided by the data attribute, which requires a customized interface, according to all found inputs. Each inputs id will be a parameter for the function, in camelCase. |
clearForm() | clears all content from all inputs. |
The original page-object, which the fillForm and clearForm method will be added to.
the async method returns a Promise of IPageObjectInFabrication. See IPageObjectInFabrication for detailed information.
Adds a navigateTo function and a entity route to the page-object. The route entity is of type string and contains the route at the active browser state. The navigateTo method lets you navigate to the route.
The original page-object, which the navigateTo method and route entity will be added to.
the async method returns a Promise
of IPageObjectInFabrication
.
See IPageObjectInFabrication
for detailed information.
Appends new elements to an existing page-object.
The Instruct parameter passes an object, which defines how the page-object should be generated. See more at IGenerationInstruction.
The original page-object, which the new elements will be merged to.
the async method returns a Promise
of IPageObjectInFabrication
.
See IPageObjectInFabrication
for detailed information.
Appends a page-object as child object to a parent page-object. The child-page-object will be composited as a entity to the parent page-object. When a new instance of the parent page-object is created, all child page-objects will be instantiated to.
The Instruct parameter passes an object, which defines how the page-object should be generated. See more at IGenerationInstruction.
The original page-object, which the new child page-object will added to.
the async method returns a Promise
of IPageObjectInFabrication
.
The returned page-object is the parent page-object, containing the new child page-object.
See IPageObjectInFabrication
for detailed information.
should not be used, is not declared as private in code, for testing capability.
Generates a new page-object.
The Instruct parameter passes an object, which defines how the page-object should be generated. See more at IGenerationInstruction. The entity name is mandatory.
the async method returns a Promise of IPageObjectInFabrication. See IPageObjectInFabrication for detailed information.
should not be used, is not declared as private in code, for testing capability.
should not be used, is not declared as private in code, for testing capability.
should not be used, is not declared as private in code, for testing capability.
Generated using TypeDoc
Contains all important interfaces to generate page-objects.
PageObjectBuilder
HVSTRCorePublicApi