Socket
Socket
Sign inDemoInstall

@agnos-ui/base-po

Package Overview
Dependencies
4
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
17
decreased by-86.18%
Maintainers
3
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 25 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc