fix: expose a RemoteObject getter (#8642)

Closes #8639
This commit is contained in:
Alex Rudenko
2022-07-07 15:04:28 +02:00
committed by GitHub
parent f82c03682a
commit d0c4291995
6 changed files with 38 additions and 1 deletions

View File

@@ -45,4 +45,5 @@ JSHandle instances can be used as arguments for [Page.$eval()](./puppeteer.page.
| [getProperty(propertyName)](./puppeteer.jshandle.getproperty.md) | | Fetches a single property from the referenced object. |
| [getProperty(propertyName)](./puppeteer.jshandle.getproperty_1.md) | | |
| [jsonValue()](./puppeteer.jshandle.jsonvalue.md) | | |
| [remoteObject()](./puppeteer.jshandle.remoteobject.md) | | Provides access to \[Protocol.Runtime.RemoteObject\](https://chromedevtools.github.io/devtools-protocol/tot/Runtime/\#type-RemoteObject) backing this JSHandle. |
| [toString()](./puppeteer.jshandle.tostring.md) | | Returns a string representation of the JSHandle. |

View File

@@ -0,0 +1,19 @@
---
sidebar_label: JSHandle.remoteObject
---
# JSHandle.remoteObject() method
Provides access to \[Protocol.Runtime.RemoteObject\](https://chromedevtools.github.io/devtools-protocol/tot/Runtime/\#type-RemoteObject) backing this JSHandle.
**Signature:**
```typescript
class JSHandle {
remoteObject(): Protocol.Runtime.RemoteObject;
}
```
**Returns:**
Protocol.Runtime.RemoteObject