ElementHandle.contentFrame() 方法
contentFrame(): Promise<Frame>
解析与该元素关联的框架(如果存在)。对于 HTMLIFrameElement 始终存在。
签名
class ElementHandle {
abstract contentFrame(this: ElementHandle<HTMLIFrameElement>): Promise<Frame>;
}
参数
|
参数 |
类型 |
说明 |
|---|---|---|
|
this |
ElementHandle<HTMLIFrameElement> |
返回值:
Promise<Frame>
contentFrame(): Promise<Frame \| null>
签名
class ElementHandle {
abstract contentFrame(): Promise<Frame | null>;
}
返回值:
Promise<Frame | null>