2023-06-02 17:46:10 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Locator.setEnsureElementIsInTheViewport
|
|
|
|
---
|
|
|
|
|
|
|
|
# Locator.setEnsureElementIsInTheViewport() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Locator {
|
2023-06-07 10:45:02 +00:00
|
|
|
abstract setEnsureElementIsInTheViewport(value: boolean): this;
|
2023-06-02 17:46:10 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ------- | ----------- |
|
|
|
|
| value | boolean | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
this
|