/** * 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 _Icon from 'salesforce-pageobjects/lightning/pageObjects/icon'; /** * Component that displays work items or an error message, with support for dynamic content and nested child components. * Selector: src-sme-work-items-renderer * generated from JSON dist/setup/smeWorkItemsRenderer.utam.json * @version 2026-03-09T13:56:37.043Z * @author Salesforce */ export default class SmeWorkItemsRenderer extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the error alert is present and visible * @return boolean */ isErrorAlertVisible(): Promise; /** * Get the text content of the error message * @return string */ getErrorMessageText(): Promise; /** * Check if work item containers are present * @return boolean[] * @param _workItemContainersIndex index of parent element */ areWorkItemsPresent(_workItemContainersIndex: number): Promise; /** * Get the text content of each work item summary * @return string * @param _workItemContainersIndex index of parent element */ getWorkItemSummaries(_workItemContainersIndex: number): Promise; /** * Returns true if element "errorAlert" present on the page * @return boolean */ verifyErrorAlertPresence(): Promise; /** * Returns true if element "workItemContainers" present on the page * @return boolean[] * @param _workItemContainersIndex index of parent element */ verifyWorkItemContainersPresence(_workItemContainersIndex: number): Promise; /** * Represents the error icon inside the error alert */ getErrorIcon(): Promise<_Icon | null>; /** * Represents the child component for rendering the agent view for each work item * @param _workItemContainersIndex index of parent element */ getAgentViewContainer(_workItemContainersIndex: number): Promise<(_BaseUtamElement) | null>; }