Type alias WaitForLocatorActionOptions

WaitForLocatorActionOptions: {
    state?: "attached" | "detached" | "visible" | "hidden";
    timeout?: number;
}

Type declaration

  • Optional state?: "attached" | "detached" | "visible" | "hidden"

    Defaults to 'visible'. Can be either:

    • 'attached' - wait for element to be present in DOM.
    • 'detached' - wait for element to not be present in DOM.
    • 'visible' - wait for element to have non-empty bounding box and no visibility:hidden. Note that element without any content or with display:none has an empty bounding box and is not considered visible.
    • 'hidden' - wait for element to be either detached from DOM, or have an empty bounding box or visibility:hidden. This is opposite to the 'visible' option.
  • Optional timeout?: number

    Maximum time in milliseconds. Defaults to 0 - no timeout. The default value can be changed via actionTimeout option in the config, or by using the browserContext.setDefaultTimeout(timeout) or page.setDefaultTimeout(timeout) methods.

Generated using TypeDoc