puppeteer/website/versioned_docs/version-22.6.0/api/puppeteer.locatoroptions.md
release-please[bot] 4f9f060408
chore: release main (#12108)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-03-20 09:57:03 +01:00

2.0 KiB

sidebar_label
LocatorOptions

LocatorOptions interface

Signature:

export interface LocatorOptions

Properties

Property Modifiers Type Description Default
ensureElementIsInTheViewport boolean Whether to scroll the element into viewport if not in the viewprot already. true
timeout number

Total timeout for the entire locator operation.

Pass 0 to disable timeout.

Page.getDefaultTimeout()
visibility VisibilityOption Whether to wait for the element to be visible or hidden. null to disable visibility checks.
waitForEnabled boolean Whether to wait for input elements to become enabled before the action. Applicable to click and fill actions. true
waitForStableBoundingBox boolean Whether to wait for the element's bounding box to be same between two animation frames. true