/** * 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 _ViewRecordListInternal from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/viewRecordListInternal'; import _BaseRecordForm from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseRecordForm'; import _ViewRecordIdList from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/viewRecordIdList'; import _RecordHeader from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/recordHeader'; /** * Component that conditionally displays a list of records either as a simple record ID list or as cards with detailed fields, depending on the data provided. * Selector: runtime_copilot_base-view-record-list * generated from JSON dist/runtime_copilot_base/viewRecordList.utam.json * @version 2026-03-09T13:56:37.368Z * @author Salesforce */ export default class ViewRecordList extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the list of record items is visible * @return boolean[] */ isRecordItemListVisible(): Promise; /** * Returns true if element "recordItemByIndex" present on the page * @return boolean * @param index element index starting from 1 */ verifyRecordItemByIndexPresence(index: number): Promise; waitForRecordListInternal(): Promise<_ViewRecordListInternal>; waitForHeteroCard(): Promise<(_BaseUtamElement)>; waitForRecordItems(): Promise<(_BaseUtamElement)[]>; /** * @param index element index starting from 1 */ waitForRecordItemByIndex(index: number): Promise<(_BaseUtamElement)>; /** * @param index element index starting from 1 */ waitForViewComponent(index: number): Promise<(_BaseUtamElement)>; /** * @param index element index starting from 1 */ waitForBaseRecordForm(index: number): Promise<_BaseRecordForm>; /** * Represents a list of record IDs when no fields are available */ getNoFieldRecordList(): Promise<_ViewRecordIdList | null>; /** * Represents a card containing a homogenous list of records */ getHomogenousCard(): Promise<(_BaseUtamElement) | null>; /** * Represents the header of the card with the title and icon */ getRecordHeader(): Promise<_RecordHeader | null>; /** * Represents the internal list of records within the card */ getRecordListInternal(): Promise<_ViewRecordListInternal | null>; /** * Represents a card without a header for displaying heterogeneous records */ getHeteroCard(): Promise<(_BaseUtamElement) | null>; /** * Represents list items of heterogeneous records */ getRecordItems(): Promise<(_BaseUtamElement)[] | null>; /** * Represents list items of heterogeneous records * @param index element index starting from 1 */ getRecordItemByIndex(index: number): Promise<(_BaseUtamElement) | null>; /** * @param index element index starting from 1 */ getViewComponent(index: number): Promise<(_BaseUtamElement) | null>; /** * Represents the form for a single record within the heterogeneous list * @param index element index starting from 1 */ getBaseRecordForm(index: number): Promise<_BaseRecordForm | null>; }