puppeteer/docs/api/puppeteer.elementhandle.isvisible.md

356 B

sidebar_label
ElementHandle.isVisible

ElementHandle.isVisible() method

Checks if an element is visible using the same mechanism as ElementHandle.waitForSelector().

Signature:

class ElementHandle {
  isVisible(): Promise<boolean>;
}

Returns:

Promise<boolean>