Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.Runtime.CallFunctionOnRequest

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
interface Protocol.Runtime.CallFunctionOnRequest
import { type Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { CallFunctionOnRequest } = Protocol.Runtime;

Properties

functionDeclaration: string

Declaration of the function to call.

optional
objectId: RemoteObjectId

Identifier of the object to call function on. Either objectId or executionContextId should be specified.

optional
arguments: CallArgument[]

Call arguments. All call arguments must belong to the same JavaScript world as the target object.

optional
silent: boolean

In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

optional
returnByValue: boolean

Whether the result is expected to be a JSON object which should be sent by value.

optional
generatePreview: boolean

Whether preview should be generated for the result.

optional
userGesture: boolean

Whether execution should be treated as initiated by user in the UI.

optional
awaitPromise: boolean

Whether execution should await for resulting value and return once awaited promise is resolved.

optional
executionContextId: ExecutionContextId

Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.

optional
objectGroup: string

Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.

optional
throwOnSideEffect: boolean

Whether to throw an exception if side effect cannot be ruled out during evaluation.

optional
generateWebDriverValue: boolean

Whether the result should contain webDriverValue, serialized according to https://w3c.github.io/webdriver-bidi. This is mutually exclusive with returnByValue, but resulting objectId is still provided.