mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: deprecate root
in WaitForSelectorOptions
(#8795)
This commit is contained in:
parent
8f612d5ff8
commit
65a5ce8464
@ -4,6 +4,10 @@ sidebar_label: WaitForSelectorOptions.root
|
|||||||
|
|
||||||
# WaitForSelectorOptions.root property
|
# WaitForSelectorOptions.root property
|
||||||
|
|
||||||
|
> Warning: This API is now obsolete.
|
||||||
|
>
|
||||||
|
> Do not use. Use the [ElementHandle.waitForSelector()](./puppeteer.elementhandle.waitforselector.md)
|
||||||
|
|
||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
|
@ -77,6 +77,9 @@ export interface WaitForSelectorOptions {
|
|||||||
* @defaultValue `30000` (30 seconds)
|
* @defaultValue `30000` (30 seconds)
|
||||||
*/
|
*/
|
||||||
timeout?: number;
|
timeout?: number;
|
||||||
|
/**
|
||||||
|
* @deprecated Do not use. Use the {@link ElementHandle.waitForSelector}
|
||||||
|
*/
|
||||||
root?: ElementHandle<Node>;
|
root?: ElementHandle<Node>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user