Skip to main content
Version: 21.11.0

Locator.setEnsureElementIsInTheViewport() method

Signature:

class Locator {
setEnsureElementIsInTheViewport<ElementType extends Element>(
this: Locator<ElementType>,
value: boolean
): Locator<ElementType>;
}

Parameters

ParameterTypeDescription
thisLocator<ElementType>
valueboolean

Returns:

Locator<ElementType>