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
.
class ElementHandle {
isVisible(): Promise<boolean>;
}
Returns:
Promise<boolean>