# playwright-html-selector

> Select an element by it's HTML

Latest version **0.13.0** (published 2020-04-10) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install playwright-html-selector
pnpm add playwright-html-selector
yarn add playwright-html-selector
bun add playwright-html-selector
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.13.0 |
| Published | 2020-04-10 |
| First published | 2020-03-01 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10.15.0 |
| Dependencies | 0 |
| Unpacked size | 66.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jperl |

## Links

- npm: https://www.npmjs.com/package/playwright-html-selector
- npm.io page: https://npm.io/package/playwright-html-selector

## Recent versions

- 0.13.0 (latest) — 2020-04-10
- 0.12.0 — 2020-03-24
- 0.4.0 — 2020-03-10
- 0.3.0 — 2020-03-09
- 0.2.0 — 2020-03-06
- 0.0.1 — 2020-03-01

## README

# playwright-html-selector

🔍 Find elements by their HTML.

## Install

```sh
npm i playwright playwright-html-selector
```

### Use

```
const { chromium } = require("playwright");
const { register } = require("playwright-html-selector");

(async () => {
  register();

  const browser = await chromium.launch();
  const page = await browser.newPage();
  await page.goto("http://example.com");

  // use an html selector
  await page.click('html=<a href="https://www.iana.org/domains/example">More information...</a>')

  await browser.close();
})();
```

---
_Source: https://npm.io/package/playwright-html-selector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
