ElementHandle.contentFrame() 方法
🌐 ElementHandle.contentFrame() method
contentFrame(): Promise<Frame>
解析与该元素关联的框架(如果有)。对于 HTMLIFrameElements 始终存在。
🌐 Resolves the frame associated with the element, if any. Always exists for HTMLIFrameElements.
语法
🌐 Signature
class ElementHandle {
abstract contentFrame(this: ElementHandle<HTMLIFrameElement>): Promise<Frame>;
}
参数
🌐 Parameters
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
this | ElementHandle<HTMLIFrameElement> |
返回:
Promise<Frame>
contentFrame(): Promise<Frame | null>
语法
🌐 Signature
class ElementHandle {
abstract contentFrame(): Promise<Frame | null>;
}
返回:
Promise<Frame | null>