Frame
Static Method Summary
Static Public Methods | ||
public static |
fromCDPFrame(frameManager: FrameManager, cdpFrame: Object, parentFrame: Frame): Frame |
since chrome-remote-interface-extra |
Constructor Summary
Public Constructor | ||
public |
constructor(frameManager: FrameManager, client: Chrome | CRIConnection | CDPSession | Object, parentFrame: Frame, frameId: string) |
Member Summary
Private Members | ||
private |
|
|
private |
_client: Chrome | CRIConnection | CDPSession | Object |
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
since chrome-remote-interface-extra |
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
since chrome-remote-interface-extra |
private |
|
since chrome-remote-interface-extra |
private |
|
Method Summary
Public Methods | ||
public |
$(selector: string): Promise<ElementHandle|undefined> |
|
public |
$$(selector: string): Promise<Array<ElementHandle>> |
|
public |
|
|
public |
|
|
public |
$x(expression: string): Promise<Array<ElementHandle>> |
|
public |
addScriptTag(options: {url?: string, path?: string, content?: string, type?: string}): Promise<ElementHandle> |
|
public |
addStyleTag(options: {url?: string, path?: string, content?: string}): Promise<ElementHandle> |
|
public |
childFrames(): Array<Frame> |
|
public |
click(selector: string, options: {delay?: number, button?: "left"|"right"|"middle", clickCount?: number}=): * |
|
public |
|
|
public |
|
|
public |
evaluateHandle(pageFunction: Function | string, args: ...*): Promise<JSHandle> |
|
public |
|
|
public |
|
|
public |
|
|
public |
getElementById(elemId: string): Promise<ElementHandle|undefined> |
since chrome-remote-interface-extra |
public |
goto(url: string, options: {referer?: string, timeout?: number, waitUntil?: string|Array<string>}=): Promise<Response|undefined> |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
since chrome-remote-interface-extra |
public |
|
|
public |
parentFrame(): Frame |
|
public |
|
|
public |
querySelector(selector: string): Promise<ElementHandle|undefined> Alias for $ |
|
public |
querySelectorAll(selector: string): Promise<Array<ElementHandle>> Alias for $$ |
|
public |
querySelectorAllEval(selector: string, pageFunction: Function | String, args: ...*): Promise<Object|undefined> Alias for $$eval |
|
public |
querySelectorEval(selector: string, pageFunction: Function | String, args: ...*): Promise<Object|undefined> Alias for $eval |
|
public |
|
since chrome-remote-interface-extra |
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
toJSON(): {"id": *, "detached": *, "url": *, "loaderId": *, "parentId": *, "securityOrigin": *, "mimeType": *, "unreachableUrl": *, "childFrames": *} |
|
public |
|
|
public |
|
|
public |
|
|
public |
waitFor(selectorOrFunctionOrTimeout: string | number | Function, options: Object, args: ...*): Promise<JSHandle|Undefined> |
|
public |
waitForFunction(pageFunction: Function | string, options: {polling?: string|number, timeout?: number}, args: ...*): Promise<JSHandle> |
|
public |
|
|
public |
async waitForSelector(selector: string, options: {visible?: boolean, hidden?: boolean, timeout?: number}=): Promise<ElementHandle|undefined> |
|
public |
async waitForXPath(xpath: string, options: {visible?: boolean, hidden?: boolean, timeout?: number}): Promise<ElementHandle|undefined> |
|
public |
xpathQuery(expression: string): Promise<Array<ElementHandle>> Alias for $x |
since chrome-remote-interface-extra |
Private Methods | ||
private |
_detach() |
|
private |
_navigated(framePayload: Object) |
|
private |
|
|
private |
_onLifecycleEvent(loaderId: string, name: string) |
|
private |
|
Static Public Methods
public static fromCDPFrame(frameManager: FrameManager, cdpFrame: Object, parentFrame: Frame): Frame since chrome-remote-interface-extra source
Params:
Name | Type | Attribute | Description |
frameManager | FrameManager | ||
cdpFrame | Object | ||
parentFrame | Frame |
|
Public Constructors
public constructor(frameManager: FrameManager, client: Chrome | CRIConnection | CDPSession | Object, parentFrame: Frame, frameId: string) source
Params:
Name | Type | Attribute | Description |
frameManager | FrameManager |
|
|
client | Chrome | CRIConnection | CDPSession | Object |
|
|
parentFrame | Frame |
|
|
frameId | string |
Private Members
private _client: Chrome | CRIConnection | CDPSession | Object source
private _frameManager: FrameManager source
Public Methods
public $(selector: string): Promise<ElementHandle|undefined> source
Params:
Name | Type | Attribute | Description |
selector | string |
public $$(selector: string): Promise<Array<ElementHandle>> source
Params:
Name | Type | Attribute | Description |
selector | string |
public $$eval(selector: string, pageFunction: Function | string, args: ...*): Promise<Object|undefined> source
public $eval(selector: string, pageFunction: Function | string, args: ...*): Promise<Object|undefined> source
public $x(expression: string): Promise<Array<ElementHandle>> source
Params:
Name | Type | Attribute | Description |
expression | string |
public addScriptTag(options: {url?: string, path?: string, content?: string, type?: string}): Promise<ElementHandle> source
public addStyleTag(options: {url?: string, path?: string, content?: string}): Promise<ElementHandle> source
public click(selector: string, options: {delay?: number, button?: "left"|"right"|"middle", clickCount?: number}=): * source
Params:
Name | Type | Attribute | Description |
selector | string | ||
options | {delay?: number, button?: "left"|"right"|"middle", clickCount?: number}= |
|
Return:
* |
public executionContext(): Promise<ExecutionContext> source
public focus(selector: string): * source
Params:
Name | Type | Attribute | Description |
selector | string |
Return:
* |
public getElementById(elemId: string): Promise<ElementHandle|undefined> since chrome-remote-interface-extra source
Params:
Name | Type | Attribute | Description |
elemId | string |
public goto(url: string, options: {referer?: string, timeout?: number, waitUntil?: string|Array<string>}=): Promise<Response|undefined> source
Params:
Name | Type | Attribute | Description |
url | string | ||
options | {referer?: string, timeout?: number, waitUntil?: string|Array<string>}= |
|
public hover(selector: string): * source
Params:
Name | Type | Attribute | Description |
selector | string |
Return:
* |
public querySelector(selector: string): Promise<ElementHandle|undefined> source
Alias for $
Params:
Name | Type | Attribute | Description |
selector | string |
public querySelectorAll(selector: string): Promise<Array<ElementHandle>> source
Alias for $$
Params:
Name | Type | Attribute | Description |
selector | string |
public querySelectorAllEval(selector: string, pageFunction: Function | String, args: ...*): Promise<Object|undefined> source
Alias for $$eval
public querySelectorEval(selector: string, pageFunction: Function | String, args: ...*): Promise<Object|undefined> source
Alias for $eval
public setContent(html: string, options: {timeout?: number, waitUntil?: string|Array<string>}): * source
Return:
* |
public tap(selector: string): * source
Params:
Name | Type | Attribute | Description |
selector | string |
Return:
* |
public toJSON(): {"id": *, "detached": *, "url": *, "loaderId": *, "parentId": *, "securityOrigin": *, "mimeType": *, "unreachableUrl": *, "childFrames": *} source
Return:
{"id": *, "detached": *, "url": *, "loaderId": *, "parentId": *, "securityOrigin": *, "mimeType": *, "unreachableUrl": *, "childFrames": *} |
public waitFor(selectorOrFunctionOrTimeout: string | number | Function, options: Object, args: ...*): Promise<JSHandle|Undefined> source
public waitForFunction(pageFunction: Function | string, options: {polling?: string|number, timeout?: number}, args: ...*): Promise<JSHandle> source
public waitForNavigation(options: {timeout?: number, waitUntil?: string|Array<string>}): Promise<Response> source
public async waitForSelector(selector: string, options: {visible?: boolean, hidden?: boolean, timeout?: number}=): Promise<ElementHandle|undefined> source
Params:
Name | Type | Attribute | Description |
selector | string | ||
options | {visible?: boolean, hidden?: boolean, timeout?: number}= |
|
public async waitForXPath(xpath: string, options: {visible?: boolean, hidden?: boolean, timeout?: number}): Promise<ElementHandle|undefined> source
public xpathQuery(expression: string): Promise<Array<ElementHandle>> since chrome-remote-interface-extra source
Alias for $x
Params:
Name | Type | Attribute | Description |
expression | string |
Private Methods
private _detach() source
private _navigated(framePayload: Object) source
Params:
Name | Type | Attribute | Description |
framePayload | Object |
|
private _navigatedWithinDocument(url: string) source
Params:
Name | Type | Attribute | Description |
url | string |