/** * 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, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _ModalHeader from 'salesforce-pageobjects/lightning/pageObjects/modalHeader'; import _CodeEditor from 'salesforce-pageobjects/es_property_editors/pageObjects/codeEditor'; /** * Component that displays a modal with either text or JSON content and provides a close button. * Selector: experience_ui_gen_canvas-modal * generated from JSON dist/experience/ui/gen/canvas/modal.utam.json * @version 2026-03-09T13:56:35.535Z * @author Salesforce */ export default class Modal extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Simulate clicking the close button */ clickCloseButton(): Promise; /** * Check if the text result element is present and visible * @return boolean */ isTextResultVisible(): Promise; /** * Get the text content from the text result element * @return string */ getTextResultContent(): Promise; /** * Returns true if element "textResult" present on the page * @return boolean */ verifyTextResultPresence(): Promise; /** * Represents the header of the modal with the title */ getModalHeader(): Promise<_ModalHeader>; /** * Represents the code editor when displaying JSON content */ getCodeEditor(): Promise<_CodeEditor | null>; }