puppeteer/website/versioned_docs/version-21.2.1/api/puppeteer.locator.setvisibility.md
release-please[bot] a25527a223
chore: release main (#10897)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2023-09-13 12:29:09 +02:00

672 B

sidebar_label
Locator.setVisibility

Locator.setVisibility() method

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>