[Home](./index.md) > [puppeteer](./puppeteer.md) > [JSHandle](./puppeteer.jshandle.md) > [asElement](./puppeteer.jshandle.aselement.md)
## JSHandle.asElement() method
Returns either `null` or the object handle itself, if the object handle is an instance of [ElementHandle](./puppeteer.elementhandle.md).
Signature:
```typescript
asElement(): ElementHandle | null;
```
Returns:
[ElementHandle](./puppeteer.elementhandle.md) \| null