Skip to main content
Version: Next

Locator.setVisibility() method

Creates a new locator instance by cloning the current locator with the visibility property changed to the specified value.

Signature

class Locator {
setVisibility<NodeType extends Node>(
this: Locator<NodeType>,
visibility: VisibilityOption,
): Locator<NodeType>;
}

Parameters

Parameter

Type

Description

this

Locator<NodeType>

visibility

VisibilityOption

Returns:

Locator<NodeType>