🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@agnos-ui/base-po

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agnos-ui/base-po

Base class to build page objects for end-to-end tests with Playwright.

Source
npmnpm
Version
0.6.0-next.1
Version published
Maintainers
3
Created
Source

@agnos-ui/base-po

npm

Base class to build page objects for end-to-end tests with Playwright.

Installation

npm install @agnos-ui/base-po

Usage

import {BasePO} from '@agnos-ui/base-po';
import {Locator} from '@playwright/test';

export const customComponentSelectors = {
	rootComponent: '.custom',
	otherContent: '.content-class',
};

export class CustomComponentPO extends BasePO {
	selectors = {...customComponentSelectors};

	override getComponentSelector(): string {
		return this.selectors.rootComponent;
	}

	get locatorOtherContent(): Locator {
		return this.locatorRoot.locator(this.selectors.otherContent);
	}
}

Main features

Please refer to the documentation included in the source code.

Keywords

e2e

FAQs

Package last updated on 02 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts