/** * 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, ContainerCtor as _ContainerCtor, UtamBasePageObject as _UtamBasePageObject, UtamBaseRootPageObject as _UtamBaseRootPageObject } from '@utam/core'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; /** * Represents a lightning modal dialog with custom content * generated from JSON dist/commons/customModal.utam.json * @version 2026-03-09T13:56:35.161Z * @author Salesforce */ export default class CustomModal extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Gets a value indicating whether the modal is open * @return true if the modal is open; otherwise, false */ isModalOpen(): Promise; /** * Waits for the modal to be open */ waitForModal(): Promise; /** * Waits for the modal to close */ waitForModalToClose(): Promise; /** * Clicks on the close button icon */ clickCloseButtonIcon(): Promise; getRoot(): Promise<(_BaseUtamElement)>; getCloseButtonIcon(): Promise<_ButtonIcon | null>; getCustomModalContent(ContainerCtor: _ContainerCtor): Promise; /** * DO NOT USE THIS METHOD! If you find you must use this * method, it is a sign your lightning-modal is customized * incorrectly, and should be modified. Once all instances * of this method's use are eliminated, this method will be * removed. * @param selector Selector within the container */ getScopedModalContent(selector: string, ContainerCtor: _ContainerCtor): Promise; getCustomModalContentByIndex(index: number, ContainerCtor: _ContainerCtor): Promise; }