2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: JSHandle.asElement
|
|
|
|
---
|
|
|
|
|
|
|
|
# JSHandle.asElement() method
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class JSHandle {
|
|
|
|
asElement(): ElementHandle<Node> | null;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
[ElementHandle](./puppeteer.elementhandle.md)<Node> \| null
|
|
|
|
|
2022-08-16 11:58:16 +00:00
|
|
|
Either `null` or the handle itself if the handle is an instance of [ElementHandle](./puppeteer.elementhandle.md).
|