/** * 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 _Datatable from 'salesforce-pageobjects/lightning/pageObjects/datatable'; import _Card from 'salesforce-pageobjects/lightning/pageObjects/card'; import _Icon from 'salesforce-pageobjects/lightning/pageObjects/icon'; import _FormattedRichText from 'salesforce-pageobjects/lightning/pageObjects/formattedRichText'; /** * Component that can display either rich text or a data table based on the provided type, with the ability to load more data for the table. * Selector: experience_ui_gen_canvas-dynamic-content * generated from JSON dist/experience/ui/gen/canvas/dynamicContent.utam.json * @version 2026-03-09T13:56:35.486Z * @author Salesforce */ export default class DynamicContent extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Get the title text of the rich text card * @return string */ getRichTextTitle(): Promise; /** * Get the title text of the data table card * @return string */ getDataTableTitle(): Promise; /** * Check if the no result message is visible * @return boolean */ isNoResultMessageVisible(): Promise; /** * Check if the no result message is present * @return boolean */ isNoResultMessagePresent(): Promise; /** * Returns true if element "noResultMessage" present on the page * @return boolean */ verifyNoResultMessagePresence(): Promise; waitForDataTable(): Promise<_Datatable>; /** * Represents the card containing rich text. */ getRichTextCard(): Promise<_Card | null>; /** * Represents the icon in the rich text card title. */ getIconInRichText(): Promise<_Icon | null>; /** * Represents the formatted rich text content. */ getFormattedRichText(): Promise<_FormattedRichText | null>; /** * Represents the card containing data table. */ getDataTableCard(): Promise<_Card | null>; /** * Represents the icon in the data table card title. */ getIconInDataTable(): Promise<_Icon | null>; /** * Represents the data table with infinite loading. */ getDataTable(): Promise<_Datatable | null>; }