fix: deprecate root in WaitForSelectorOptions (#8795)

This commit is contained in:
jrandolf 2022-08-16 10:09:07 +02:00 committed by GitHub
parent 8f612d5ff8
commit 65a5ce8464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,10 @@ sidebar_label: WaitForSelectorOptions.root
# WaitForSelectorOptions.root property
> Warning: This API is now obsolete.
>
> Do not use. Use the [ElementHandle.waitForSelector()](./puppeteer.elementhandle.waitforselector.md)
**Signature:**
```typescript

View File

@ -77,6 +77,9 @@ export interface WaitForSelectorOptions {
* @defaultValue `30000` (30 seconds)
*/
timeout?: number;
/**
* @deprecated Do not use. Use the {@link ElementHandle.waitForSelector}
*/
root?: ElementHandle<Node>;
}