Chrome Remote Interface v0.4.1 ChromeRemoteInterface.RPC.Runtime View Source
Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.
Link to this section Summary
Functions
Add handler to promise with given promise object id.
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
Compiles expression.
Disables reporting of execution contexts creation.
Discards collected exceptions and console API calls.
Enables reporting of execution contexts creation by means of executionContextCreated
event.
When the reporting gets enabled the event will be sent immediately for each existing execution
context.
Evaluates expression on global object.
Returns properties of a given object. Object group of the result is inherited from the target object.
Returns all let, const and class variables from global scope.
Parameters:
prototypeObjectId -
Releases remote object with given id.
Releases all remote objects that belong to a given group.
Tells inspected instance to run if it was waiting for debugger to attach.
Runs script with given id in a given context.
Enables or disables async call stacks tracking.
Link to this section Functions
awaitPromise(page_pid) View Source
Add handler to promise with given promise object id.
Parameters:
promiseObjectId -
awaitPromise(page_pid, parameters) View Source
awaitPromise(page_pid, parameters, opts) View Source
callFunctionOn(page_pid) View Source
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
Parameters:
functionDeclaration - setPauseOnException
state.returnByValue - await
for resulting value and return once awaited promise is
resolved.executionContextId -
callFunctionOn(page_pid, parameters) View Source
callFunctionOn(page_pid, parameters, opts) View Source
compileScript(page_pid) View Source
Compiles expression.
Parameters:
expression -
compileScript(page_pid, parameters) View Source
compileScript(page_pid, parameters, opts) View Source
disable(page_pid) View Source
Disables reporting of execution contexts creation.
Parameters:
disable(page_pid, parameters) View Source
disable(page_pid, parameters, opts) View Source
discardConsoleEntries(page_pid) View Source
Discards collected exceptions and console API calls.
Parameters:
discardConsoleEntries(page_pid, parameters) View Source
discardConsoleEntries(page_pid, parameters, opts) View Source
enable(page_pid) View Source
Enables reporting of execution contexts creation by means of executionContextCreated
event.
When the reporting gets enabled the event will be sent immediately for each existing execution
context.
Parameters:
enable(page_pid, parameters) View Source
enable(page_pid, parameters, opts) View Source
evaluate(page_pid) View Source
Evaluates expression on global object.
Parameters:
expression - setPauseOnException
state.contextId - await
for resulting value and return once awaited promise is
resolved.throwOnSideEffect -
evaluate(page_pid, parameters) View Source
evaluate(page_pid, parameters, opts) View Source
experimental?() View Source
getProperties(page_pid) View Source
Returns properties of a given object. Object group of the result is inherited from the target object.
Parameters:
objectId -
getProperties(page_pid, parameters) View Source
getProperties(page_pid, parameters, opts) View Source
globalLexicalScopeNames(page_pid) View Source
Returns all let, const and class variables from global scope.
Parameters:
executionContextId -
globalLexicalScopeNames(page_pid, parameters) View Source
globalLexicalScopeNames(page_pid, parameters, opts) View Source
queryObjects(page_pid) View Source
Parameters:
prototypeObjectId -
queryObjects(page_pid, parameters) View Source
queryObjects(page_pid, parameters, opts) View Source
releaseObject(page_pid) View Source
Releases remote object with given id.
Parameters:
objectId -
releaseObject(page_pid, parameters) View Source
releaseObject(page_pid, parameters, opts) View Source
releaseObjectGroup(page_pid) View Source
Releases all remote objects that belong to a given group.
Parameters:
objectGroup -
releaseObjectGroup(page_pid, parameters) View Source
releaseObjectGroup(page_pid, parameters, opts) View Source
runIfWaitingForDebugger(page_pid) View Source
Tells inspected instance to run if it was waiting for debugger to attach.
Parameters:
runIfWaitingForDebugger(page_pid, parameters) View Source
runIfWaitingForDebugger(page_pid, parameters, opts) View Source
runScript(page_pid) View Source
Runs script with given id in a given context.
Parameters:
scriptId - setPauseOnException
state.includeCommandLineAPI - await
for resulting value and return once awaited promise is
resolved.
runScript(page_pid, parameters) View Source
runScript(page_pid, parameters, opts) View Source
setAsyncCallStackDepth(page_pid) View Source
Enables or disables async call stacks tracking.
Parameters:
maxDepth - 0
will effectively disable collecting async
call stacks (default).