This package has been deprecated

Author message:

Please use @pageobject/flexible instead.

@pageobject/standard
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta-4 • Public • Published

@pageobject/standard Package Version Build Status Coverage Status

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.

Package Sidebar

Install

npm i @pageobject/standard

Weekly Downloads

1

Version

1.0.0-beta-4

License

MIT

Unpacked Size

46.8 kB

Total Files

10

Last publish

Collaborators

  • clebert