puppeteer

How to determine the visibility of an element with Puppeteer?

According to the documentation, elementHandle.BoundingBox () returns null when the element is invisible. However, when I run ... e test polls a lot of items and I need details when it "crashes". How do I still get the full visibility state of an element?