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