/** * 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 _AgenticSetupLoader from 'salesforce-pageobjects/setup/pageObjects/agenticSetupLoader'; import _RecordFormInternal from 'salesforce-pageobjects/setup/pageObjects/recordFormInternal'; import _Card from 'salesforce-pageobjects/lightning/pageObjects/card'; import _Icon from 'salesforce-pageobjects/lightning/pageObjects/icon'; import _Badge from 'salesforce-pageobjects/lightning/pageObjects/badge'; import _Button from 'salesforce-pageobjects/lightning/pageObjects/button'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; /** * Component that displays a record form with various statuses and an edit button. * Selector: setup-record-form * generated from JSON dist/setup/recordForm.utam.json * @version 2026-03-09T13:56:37.023Z * @author Salesforce */ export default class RecordForm extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check that header section is present and visible * @return boolean */ isHeaderVisible(): Promise; /** * Check that actions container is present and visible * @return boolean */ isActionsContainerVisible(): Promise; /** * Get text from error message * @return string */ getErrorMessage(): Promise; /** * Returns true if element "header" present on the page * @return boolean */ verifyHeaderPresence(): Promise; /** * Get text from status section showing last updated time * @return string */ getStatusText(): Promise; /** * Check if loader is present and visible * @return boolean */ isLoaderVisible(): Promise; /** * Check if header status section is present and visible * @return boolean */ isHeaderStatusVisible(): Promise; /** * Returns true if element "loader" is present on the page * @return boolean */ verifyLoaderPresence(): Promise; waitForSetupRecordFormInternal(): Promise<_RecordFormInternal>; waitForErrorCard(): Promise<_Card>; waitForErrorIcon(): Promise<_Icon>; waitForErrorMessage(): Promise<(_BaseUtamElement)>; /** * Represents the title in the header section */ getHeaderTitle(): Promise<(_BaseUtamElement) | null>; /** * Slot for header navigation link */ getHeaderNavigationLink(): Promise<(_BaseUtamElement) | null>; /** * Represents the badge indicating changes saved */ getChangesSavedBadge(): Promise<_Badge | null>; /** * Represents the badge indicating draft status */ getDraftBadge(): Promise<_Badge | null>; /** * Represents the badge indicating disabled status */ getDisabledBadge(): Promise<_Badge | null>; /** * Represents the edit button */ getEditButton(): Promise<_Button | null>; /** * Represents the refresh button for reloading form data */ getRefreshButton(): Promise<_ButtonIcon | null>; /** * Represents the slot for custom header actions */ getHeaderActionsSlot(): Promise<(_BaseUtamElement) | null>; /** * Represents the internal setup record form component */ getSetupRecordFormInternal(): Promise<_RecordFormInternal | null>; /** * Card displaying error messages */ getErrorCard(): Promise<_Card | null>; /** * Icon indicating an error */ getErrorIcon(): Promise<_Icon | null>; /** * Represents the loading spinner displayed while data is being fetched */ getLoader(): Promise<_AgenticSetupLoader | null>; }