Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitalics/playwright-angular-selectors
Angular selectors engine for playwright
https://github.com/vitalics/playwright-angular-selectors
angular playwright selector-engine selectors
Last synced: 23 days ago
JSON representation
Angular selectors engine for playwright
- Host: GitHub
- URL: https://github.com/vitalics/playwright-angular-selectors
- Owner: vitalics
- License: mit
- Created: 2022-06-03T10:45:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:57:49.000Z (11 months ago)
- Last Synced: 2024-02-15T08:20:17.017Z (9 months ago)
- Topics: angular, playwright, selector-engine, selectors
- Language: HTML
- Homepage: https://www.npmjs.com/package/playwright-angular-selectors
- Size: 112 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular selector engine for Playwright
**!Note**: Selectors engine works only with angular non production mode.
** NOTE: ** router-outlet is not supported, since in angular it is a virtual component.
## Intallation
```bash
npm i playwright-angular-selectors
```## Usage
```ts
import { selectors } from "playwright";
import AngularEngine from "playwright-angular-selectors";// register
selectors.register("angular", AngularEngine);// usage in code
const element = page.locator('angular=app-root[title="ang"]');
element.innerText(); // "Angular"
```The usage are the same as for [React selectors](https://playwright.dev/docs/selectors#react-selectors)