Skip to main content
Version: 23.9.0

ElementHandle.isVisible() method

An element is considered to be visible if all of the following is true:

  • the element has computed styles.

  • the element has a non-empty bounding client rect.

  • the element's visibility is not hidden or collapse.

Signature

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

Returns:

Promise<boolean>