2023-06-02 17:46:10 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Locator.setVisibility
|
|
|
|
---
|
|
|
|
|
|
|
|
# Locator.setVisibility() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Locator {
|
2023-07-25 10:43:07 +00:00
|
|
|
setVisibility<NodeType extends Node>(
|
|
|
|
this: Locator<NodeType>,
|
|
|
|
visibility: VisibilityOption
|
|
|
|
): Locator<NodeType>;
|
2023-06-02 17:46:10 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| ---------- | --------------------------------------------------- | ----------- |
|
2023-07-25 10:43:07 +00:00
|
|
|
| this | [Locator](./puppeteer.locator.md)<NodeType> | |
|
2023-06-02 17:46:10 +00:00
|
|
|
| visibility | [VisibilityOption](./puppeteer.visibilityoption.md) | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
2023-07-25 10:43:07 +00:00
|
|
|
[Locator](./puppeteer.locator.md)<NodeType>
|