/** * 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, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _Datatable from 'salesforce-pageobjects/lightning/pageObjects/datatable'; import _RecordForm from 'salesforce-pageobjects/lightning/pageObjects/recordForm'; import _Accordion from 'salesforce-pageobjects/lightning/pageObjects/accordion'; import _AccordionSection from 'salesforce-pageobjects/lightning/pageObjects/accordionSection'; import _Card from 'salesforce-pageobjects/lightning/pageObjects/card'; import _Icon from 'salesforce-pageobjects/lightning/pageObjects/icon'; /** * A component that displays different types of results based on provided data. It can display text results, record forms, data tables, or confirmation prompts with arguments. It also handles section toggling and confirmation of commands. * Selector: src-experience_ui_gen_canvas-/result-card * generated from JSON dist/experience/ui/gen/canvas/resultCard.utam.json * @version 2026-03-09T13:56:35.547Z * @author Salesforce */ export default class ResultCard extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Retrieves the text from the result display * @return string */ getTextResult(): Promise; /** * Checks if the text result is visible * @return boolean */ isTextResultVisible(): Promise; /** * Clicks the confirm button */ clickConfirmButton(): Promise; /** * Checks if the confirm button is enabled * @return boolean */ isConfirmButtonEnabled(): Promise; /** * Retrieves the text from an argument list item * @return string[] */ getArgumentText(): Promise; waitForDataTable(): Promise<_Datatable>; waitForRecordForm(): Promise<_RecordForm>; /** * Represents the accordion component that contains sections. */ getAccordion(): Promise<_Accordion>; /** * Represents the accordion section for text results. */ getAccordionSectionText(): Promise<_AccordionSection | null>; /** * Represents the card component used to display results. */ getResultCard(): Promise<_Card | null>; /** * Represents the icon displayed in the result card title. */ getIconOutcome(): Promise<_Icon | null>; /** * Represents the accordion section for table results. */ getAccordionSectionTable(): Promise<_AccordionSection | null>; /** * Represents the data table component for displaying tabular data. */ getDataTable(): Promise<_Datatable | null>; /** * Represents the form for displaying and editing record data. */ getRecordForm(): Promise<_RecordForm | null>; /** * Represents the card component used for confirmation prompts. */ getConfirmationCard(): Promise<_Card | null>; }