Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
syedyasser edited this page Apr 11, 2017 · 1 revision

// Get the runtime object for this dom node let {object} = yield this.rpc.request("DOM.resolveNode", { nodeId: node.handle.nodeId }); // Execute the function on the resolved runtime object let functionDecl = "function() { return this.getBoundingClientRect(); }";

let {result} = yield this.rpc.request("Runtime.callFunctionOn", { objectId: object.objectId, functionDeclaration: functionDecl, arguments: [] }); // Get all the properties from the returned object let response = yield this.rpc.request("Runtime.getProperties", { objectId: result.objectId });

Clone this wiki locally