Home Reference Source
public class | source

ExecutionContext

Constructor Summary

Public Constructor
public

constructor(client: Chrome | CRIConnection | CDPSession | Object, contextPayload: Object, world: DOMWorld)

Member Summary

Private Members
private
private
private
private

Method Summary

Public Methods
public

async evaluate(pageFunction: Function | string, args: ...*): Promise<Object>

public

async evaluateHandle(pageFunction: Function | string, args: ...*): Promise<JSHandle>

public
public

async queryObjects(prototypeHandle: JSHandle): Promise<JSHandle>

Private Methods
private

Public Constructors

public constructor(client: Chrome | CRIConnection | CDPSession | Object, contextPayload: Object, world: DOMWorld) source

Params:

NameTypeAttributeDescription
client Chrome | CRIConnection | CDPSession | Object
contextPayload Object
  • nullable: false
world DOMWorld
  • nullable: true

Private Members

private _client: Chrome | CRIConnection | CDPSession | Object source

private _contextId: string source

private _contextPayload: Object source

private _world: DOMWorld source

Public Methods

public async evaluate(pageFunction: Function | string, args: ...*): Promise<Object> source

Params:

NameTypeAttributeDescription
pageFunction Function | string
args ...*

Return:

Promise<Object>

public async evaluateHandle(pageFunction: Function | string, args: ...*): Promise<JSHandle> source

Params:

NameTypeAttributeDescription
pageFunction Function | string
args ...*

Return:

Promise<JSHandle>

public frame(): Frame source

Return:

Frame (nullable: true)

public async queryObjects(prototypeHandle: JSHandle): Promise<JSHandle> source

Params:

NameTypeAttributeDescription
prototypeHandle JSHandle
  • nullable: false

Return:

Promise<JSHandle>

Private Methods

private async _adoptElementHandle(elementHandle: ElementHandle): Promise<ElementHandle> source

Params:

NameTypeAttributeDescription
elementHandle ElementHandle