Skip to content

Commit

Permalink
fix: deprecate root in WaitForSelectorOptions (#8795)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Aug 16, 2022
1 parent 8f612d5 commit 65a5ce8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/puppeteer.waitforselectoroptions.root.md
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/common/IsolatedWorld.ts
Expand Up @@ -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>;
}

Expand Down

0 comments on commit 65a5ce8

Please sign in to comment.