puppeteer/docs/api/puppeteer.jshandle.getproperty.md
dependabot[bot] 93e9acc410
chore(deps-dev): Bump the dev-dependencies group with 3 updates (#12101)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
2024-03-20 15:03:14 +00:00

601 B

sidebar_label
JSHandle.getProperty

JSHandle.getProperty() method

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]>>