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
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| ---------- | --------------------------------------------------- | ----------- |
|
2023-08-02 12:50:46 +00:00
|
|
|
| this | [Locator](./puppeteer.locator.md)<NodeType> | |
|
2023-06-12 08:11:43 +00:00
|
|
|
| visibility | [VisibilityOption](./puppeteer.visibilityoption.md) | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
2023-08-02 12:50:46 +00:00
|
|
|
[Locator](./puppeteer.locator.md)<NodeType>
|