2023-06-12 08:11:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Locator.setVisibility
|
|
|
|
---
|
|
|
|
|
|
|
|
# Locator.setVisibility() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Locator {
|
2023-08-02 12:50:46 +00:00
|
|
|
setVisibility<NodeType extends Node>(
|
|
|
|
this: Locator<NodeType>,
|
|
|
|
visibility: VisibilityOption
|
|
|
|
): Locator<NodeType>;
|
2023-06-12 08:11:43 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
<table><thead><tr><th>
|
2023-06-12 08:11:43 +00:00
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
Parameter
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
this
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
[Locator](./puppeteer.locator.md)<NodeType>
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td>
|
|
|
|
|
|
|
|
visibility
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
[VisibilityOption](./puppeteer.visibilityoption.md)
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|
2023-06-12 08:11:43 +00:00
|
|
|
**Returns:**
|
|
|
|
|
2023-08-02 12:50:46 +00:00
|
|
|
[Locator](./puppeteer.locator.md)<NodeType>
|