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