puppeteer/new-docs/puppeteer.jshandle.aselement.md
2020-06-25 15:49:35 +01:00

567 B

Home > puppeteer > JSHandle > asElement

JSHandle.asElement() method

Returns either null or the object handle itself, if the object handle is an instance of ElementHandle.

Signature:

asElement(): ElementHandle | null;

Returns:

ElementHandle | null