/** * 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, ContainerCtor as _ContainerCtor, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _Button from 'salesforce-pageobjects/lightning/pageObjects/button'; import _Spinner from 'salesforce-pageobjects/lightning/pageObjects/spinner'; import _ModalHeader from 'salesforce-pageobjects/lightning/pageObjects/modalHeader'; /** * A modal component that displays a customizable header, spinner, error popover, and buttons for submitting and closing the modal. The content and footer buttons are customizable via slots. * Selector: src-base-form-modal * generated from JSON dist/ui/chatbots/components/baseFormModal.utam.json * @version 2026-03-09T13:56:37.115Z * @author Salesforce */ export default class BaseFormModal extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Clicks the cancel button */ clickCancelButton(): Promise; /** * Clicks the submit button if it's visible */ clickSubmitButton(): Promise; /** * Checks if the submit button is visible * @return boolean */ isSubmitButtonVisible(): Promise; /** * Returns true if element "submitButton" present on the page * @return boolean */ verifySubmitButtonPresence(): Promise; waitForSpinner(): Promise<_Spinner>; /** * Represents the default slot for the modal body content. */ getDefaultContent(ContainerCtor: _ContainerCtor): Promise; /** * Represents the named slot for custom footer content. */ getFooterSlot(ContainerCtor: _ContainerCtor): Promise; /** * Represents the header of the modal with a label. */ getModalHeader(): Promise<_ModalHeader>; /** * Represents the loading spinner that appears conditionally. */ getSpinner(): Promise<_Spinner | null>; }