/** * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE file or https://utam.dev/salesforce/license */ import { Driver as _Driver, Element as _Element, Locator as _Locator, BaseUtamElement as _BaseUtamElement, UtamBaseRootPageObject as _UtamBaseRootPageObject, ActionableUtamElement as _ActionableUtamElement, ClickableUtamElement as _ClickableUtamElement } from '@utam/core'; /** * Library: LightningAlert * Interact with the singular alert modal created by the LightningAlert library. * Access the Header label, or the Label when there is no header and the message text. Additionally allows clicking the OK button. * generated from JSON dist/lightning/alert.utam.json * @version 2026-03-09T13:56:35.972Z * @author Salesforce */ export default class Alert extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Click OK button and wait for lightning-interactive-dialog-base absence */ clickOK(): Promise; /** * Get alert header text * @return string */ getHeaderLabel(): Promise; /** * Get alert header aria-label text of headerless variant * @return string */ getHeaderlessLabel(): Promise; /** * Get meassage text that displays in the alert * @return string */ getMessage(): Promise; /** * Checks if the the alert aria label text is in focus * @return boolean */ isFocused(): Promise; /** * Checks if the the lightning-alert is open/shown * @return boolean */ isAlertShown(): Promise; getOkButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement) | null>; getHeader(): Promise<(_BaseUtamElement) | null>; }