fix: allow getting a frame from an elementhandle (#8875)
Libraries like pptr-testing-library and expect-puppeteer seem to rely on it.
This commit is contained in:
parent
3499e1292e
commit
3732757450
13
docs/api/puppeteer.elementhandle.frame.md
Normal file
13
docs/api/puppeteer.elementhandle.frame.md
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
sidebar_label: ElementHandle.frame
|
||||
---
|
||||
|
||||
# ElementHandle.frame property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
class ElementHandle {
|
||||
get frame(): Frame;
|
||||
}
|
||||
```
|
@ -39,6 +39,12 @@ If you're using TypeScript, ElementHandle takes a generic argument that denotes
|
||||
|
||||
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `ElementHandle` class.
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| ------------------------------------------- | --------------------- | ----------------------------- | ----------- |
|
||||
| [frame](./puppeteer.elementhandle.frame.md) | <code>readonly</code> | [Frame](./puppeteer.frame.md) | |
|
||||
|
||||
## Methods
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
|
@ -88,9 +88,6 @@ export class ElementHandle<
|
||||
return this.#frame.page();
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
get frame(): Frame {
|
||||
return this.#frame;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user