docs/api/puppeteer.jshandle.getproperty.md
Fetches a single property from the referenced object.
class JSHandle {
getProperty<K extends keyof T>(
propertyName: HandleOr<K>,
): Promise<HandleFor<T[K]>>;
}
Parameter
</th><th>Type
</th><th>Description
</th></tr></thead> <tbody><tr><td>propertyName
</td><td>HandleOr<K>
</td><td> </td></tr> </tbody></table>Returns:
Promise<HandleFor<T[K]>>
<h2 id="overload-2">getProperty(): Promise<JSHandle<unknown>></h2>class JSHandle {
getProperty(propertyName: string): Promise<JSHandle<unknown>>;
}
Parameter
</th><th>Type
</th><th>Description
</th></tr></thead> <tbody><tr><td>propertyName
</td><td>string
</td><td> </td></tr> </tbody></table>Returns:
Promise<JSHandle<unknown>>