/** * 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 } from '@utam/core'; import _BaseButtonIcon from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseButtonIcon'; import _BaseIcon from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseIcon'; /** * Component that displays a disclaimer in a popover or as a message, which can be interacted with to show additional information or to close the disclaimer. * Selector: src-base-disclaimer * generated from JSON dist/runtime_copilot_base/baseDisclaimer.utam.json * @version 2026-03-09T13:56:37.219Z * @author Salesforce */ export default class BaseDisclaimer extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the popover section is present and visible * @return boolean */ isPopoverSectionVisible(): Promise; /** * Get the text content of the disclaimer popover * @return string */ getPopoverText(): Promise; /** * Check if the message area is present and visible * @return boolean */ isMessageAreaVisible(): Promise; /** * Get the text content of the message disclaimer * @return string */ getMessageText(): Promise; /** * Returns true if element "messageArea" present on the page * @return boolean */ verifyMessageAreaPresence(): Promise; /** * Returns true if element "messageFormattedRichText" present on the page * @return boolean */ verifyMessageFormattedRichTextPresence(): Promise; /** * Represents the base tooltip button used to trigger the disclaimer popover */ getDisclaimerPopover(): Promise<(_BaseUtamElement)>; /** * Represents the content slot within the disclaimer popover */ getDisclaimerPopoverContent(ContainerCtor: _ContainerCtor): Promise; /** * Represents the close icon button within the popover disclaimer */ getCloseButtonIcon(): Promise<_BaseButtonIcon>; /** * Represents the icon displayed in the message area */ getMessageIcon(): Promise<_BaseIcon | null>; }