/** * 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: LightningPrompt * Interact with the singular prompt modal created by the LightningPrompt library. * Click the OK or Cancel buttons. Get the header text or the aria label when the header isn't present. Get the message text. * generated from JSON dist/lightning/prompt.utam.json * @version 2026-03-09T13:56:36.208Z * @author Salesforce */ export default class Prompt extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Click OK button and wait for lightning-interactive-dialog-base absence */ clickOK(): Promise; /** * Click Cancel button and wait for lightning-interactive-dialog-base absence */ clickCancel(): Promise; /** * Get prompt header text * @return string */ getHeaderLabel(): Promise; /** * Get prompt header aria-label text of headerless variant * @return string */ getHeaderlessLabel(): Promise; /** * Get message text that displays in the prompt * @return string */ getMessage(): Promise; /** * Checks if the the lightning-prompt is open/shown * @return boolean */ isPromptShown(): Promise; getInput(): Promise<(_BaseUtamElement) | null>; getOkButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement) | null>; getCancelButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement) | null>; getHeader(): Promise<(_BaseUtamElement) | null>; }