6657364364
* docs(new): migrate ElementHandle to TSDoc Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2.1 KiB
2.1 KiB
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() |