/** * 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 _BaseDropDown from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseDropDown'; import _BaseButtonIcon from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseButtonIcon'; import _PrimitiveInputRadio from 'salesforce-pageobjects/lightning/pageObjects/primitiveInputRadio'; import _BaseButton from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseButton'; /** * Component that allows for selecting an agent from a dropdown list. It handles agent selection, updates based on state changes, and provides a loading state and error handling. * Selector: src-multi-agent-selector * generated from JSON dist/runtime_copilot/multiAgentSelector.utam.json * @version 2026-03-09T13:56:37.200Z * @author Salesforce */ export default class MultiAgentSelector extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the agent item is present in the list * @return boolean[] * @param _agentItemsIndex index of parent element */ isAgentItemPresent(_agentItemsIndex: number): Promise; /** * Check if the agent label is visible * @return boolean * @param _agentItemsIndex index of parent element */ isAgentLabelVisible(_agentItemsIndex: number): Promise; /** * Check if the agent description is visible * @return boolean * @param _agentItemsIndex index of parent element */ isAgentDescriptionVisible(_agentItemsIndex: number): Promise; /** * Check if the title heading is visible * @return boolean */ isTitleHeadingVisible(): Promise; /** * Check if the title heading text is correct * @return string */ isTitleHeadingTextCorrect(): Promise; /** * Returns true if element "titleHeading" present on the page * @return boolean */ verifyTitleHeadingPresence(): Promise; waitForDropdownComponent(): Promise<_BaseDropDown>; waitForCloseButton(): Promise<_BaseButtonIcon>; /** * @param _agentItemsIndex index of parent element */ waitForAgentItems(_agentItemsIndex: number): Promise<(_BaseUtamElement)[]>; /** * @param _agentItemsIndex index of parent element */ waitForRadioButtons(_agentItemsIndex: number): Promise<_PrimitiveInputRadio>; /** * @param _agentItemsIndex index of parent element */ waitForAgentLabels(_agentItemsIndex: number): Promise<(_BaseUtamElement)>; /** * @param _agentItemsIndex index of parent element */ waitForAgentDescriptions(_agentItemsIndex: number): Promise<(_BaseUtamElement)>; waitForSubmitButton(): Promise<_BaseButton>; /** * Represents the dropdown component for agent selection */ getDropdownComponent(): Promise<_BaseDropDown>; /** * Represents the close button in the dropdown header */ getCloseButton(): Promise<_BaseButtonIcon>; /** * Represents the submit button to confirm the agent selection */ getSubmitButton(): Promise<_BaseButton>; }