mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-10-30 14:46:24 +00:00
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
1.1 KiB
1.1 KiB
sidebar_label
| sidebar_label |
|---|
| JSHandle.getProperty |
JSHandle.getProperty() method
getProperty(): Promise<HandleFor<T\[K\]>>
Fetches a single property from the referenced object.
Signature
class JSHandle {
getProperty<K extends keyof T>(
propertyName: HandleOr<K>,
): Promise<HandleFor<T[K]>>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
propertyName |
HandleOr<K> |
Returns:
Promise<HandleFor<T[K]>>
getProperty(): Promise<JSHandle<unknown>>
Signature
class JSHandle {
getProperty(propertyName: string): Promise<JSHandle<unknown>>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
propertyName |
string |
Returns:
Promise<JSHandle<unknown>>