Skip to content

Latest commit

 

History

History

page-objects

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@agnos-ui/page-objects

npm

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();
});