24 lines
376 B
Markdown
24 lines
376 B
Markdown
---
|
|
sidebar_label: Locator.setEnsureElementIsInTheViewport
|
|
---
|
|
|
|
# Locator.setEnsureElementIsInTheViewport() method
|
|
|
|
#### Signature:
|
|
|
|
```typescript
|
|
class Locator {
|
|
setEnsureElementIsInTheViewport(value: boolean): this;
|
|
}
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ------- | ----------- |
|
|
| value | boolean | |
|
|
|
|
**Returns:**
|
|
|
|
this
|