Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 2.15 KB

puppeteer.jshandle.md

File metadata and controls

42 lines (30 loc) · 2.15 KB

Home > puppeteer > JSHandle

JSHandle class

Signature:

export declare class JSHandle 

Constructors

Constructor Modifiers Description
(constructor)(context, client, remoteObject) Constructs a new instance of the JSHandle class

Properties

Property Modifiers Type Description
_client CDPSession
_context ExecutionContext
_disposed boolean
_remoteObject Protocol.Runtime.RemoteObject

Methods

Method Modifiers Description
asElement()
dispose() The method stops referencing the element handle.
evaluate(pageFunction, args) This method passes this handle as the first argument to pageFunction. If pageFunction returns a Promise, then handle.evaluate would wait for the promise to resolve and return its value.
evaluateHandle(pageFunction, args) This method passes this handle as the first argument to pageFunction.
executionContext()
getProperties() The method returns a map with property names as keys and JSHandle instances for the property values.
getProperty(propertyName)
jsonValue() Returns a JSON representation of the object.
toString()