puppeteer/website/versioned_docs/version-21.1.1/api/puppeteer.elementhandle.isvisible.md

20 lines
356 B
Markdown
Raw Normal View History

---
sidebar_label: ElementHandle.isVisible
---
# ElementHandle.isVisible() method
Checks if an element is visible using the same mechanism as [ElementHandle.waitForSelector()](./puppeteer.elementhandle.waitforselector.md).
#### Signature:
```typescript
class ElementHandle {
isVisible(): Promise<boolean>;
}
```
**Returns:**
Promise&lt;boolean&gt;