@agnos-ui/page-objects
v0.5.0
Published
Page objects to be used when testing AgnosUI-based applications with Playwright.
Downloads
172
Readme
@agnos-ui/page-objects
Page objects to be used when testing AgnosUI-based applications with Playwright.
Installation
npm install -D @agnos-ui/page-objects
Usage
Here is a sample test using the RatingPO
:
import {expect, test} from '@playwright/test';
import {RatingPO} from '@agnos-ui/page-objects';
test(`Click on rating star`, async ({page}) => {
const ratingPO = new RatingPO(page);
await ratingPO.locatorRoot.waitFor();
await ratingPO.locatorStar(4).click();
});