puppeteer/website/versioned_docs/version-20.9.0/api/puppeteer.jshandle.getproperty.md
release-please[bot] 03adf4189e
chore: release main (#10577)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2023-07-20 07:36:56 +00:00

28 lines
614 B
Markdown

---
sidebar_label: JSHandle.getProperty
---
# JSHandle.getProperty() method
Fetches a single property from the referenced object.
#### Signature:
```typescript
class JSHandle {
getProperty<K extends keyof T>(
propertyName: HandleOr<K>
): Promise<HandleFor<T[K]>>;
}
```
## Parameters
| Parameter | Type | Description |
| ------------ | -------------------------------------------- | ----------- |
| propertyName | [HandleOr](./puppeteer.handleor.md)&lt;K&gt; | |
**Returns:**
Promise&lt;[HandleFor](./puppeteer.handlefor.md)&lt;T\[K\]&gt;&gt;