puppeteer/scripts
Jack Franklin b349c91e7d
fix: make $ and $$ selectors generic (#6883)
* fix: make `$` and `$$` selectors generic

This means, much like TS's in built `querySelector` type, you can now do:

```ts
const listItems = page.$$<HTMLLIElement>('ul li');
```

And/or:

```ts
const h2 = page.$<HTMLHeadingElement>('h2');
```

And the return value will be of type `ElementHandle<T>|null`, where `T`
is the type you provided. By default `T` is an `Element`, so you don't
have to provide this if you don't care as a consumer about the exact
type you get back.

* chore: fix test assertions
2021-03-25 11:40:34 +00:00
..
ensure-correct-devtools-protocol-package.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
test-install.sh test(install): check for Firefox binary, clean up messages (#6316) 2020-08-10 10:22:31 +02:00
test-ts-definition-files.ts fix: make $ and $$ selectors generic (#6883) 2021-03-25 11:40:34 +00:00
tsconfig.json chore(agnostic): Remove use of util.promisify (#6446) 2020-09-28 10:35:35 +01:00