puppeteer/docs/api/puppeteer.jshandle.aselement.md
2022-07-05 15:41:43 +02:00

363 B

sidebar_label
JSHandle.asElement

JSHandle.asElement() method

Signature:

class JSHandle {
  asElement(): ElementHandle | null;
}

Returns:

ElementHandle | null

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