2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: JSHandle.asElement
|
|
|
|
---
|
|
|
|
|
|
|
|
# JSHandle.asElement() method
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```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).
|