@pageobject/standard
This package defines an API that can be implemented for virtually any browser automation framework.
Installation
yarn add @pageobject/standard
API
Please find the API documentation here.
Usage
For examples of use, please have a look at either the Puppeteer example or the Selenium example. For a more detailed example, please see here (coming soon).
The PageObjectJS standard API defines the interface StandardElement
as the representation of a DOM element and the interface StandardPage
as the representation of the DOM. The abstract class StandardPageObject
offers methods to comfortably use these representations.
Page objects inheriting from class StandardPageObject
are compatible with any browser automation framework for which the PageObjectJS standard API can be implemented.
Compatible implementations already exist for Puppeteer and Selenium!
If you want to write your own implementation of the PageObjectJS standard API for a browser automation framework of your choice, you have to implement the interfaces StandardElement
and StandardPage
. The package @pageobject/standard-test can help you to test your implementation for compatibility.
Built by (c) Clemens Akens. Released under the terms of the MIT License.