/** * 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 _Spinner from 'salesforce-pageobjects/lightning/pageObjects/spinner'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; /** * A chat input component that allows users to type messages, validate character limits, and send messages with a button click. It provides visual feedback when character limits are exceeded and displays a spinner while processing. * Selector: app_dev_agent-studio-chat-input * generated from JSON dist/app_dev_agent/studioChatInput.utam.json * @version 2026-03-09T13:56:34.904Z * @author Salesforce */ export default class StudioChatInput extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the textarea container is present and visible * @return boolean */ isTextareaContainerVisible(): Promise; /** * Check if the message text area is focused * @return boolean */ isMessageTextAreaFocused(): Promise; /** * Clear the message text area and type a new message */ typeMessage(text: string): Promise; /** * Get the current text from the message text area * @return string */ getMessageText(): Promise; /** * Check if the error message box is visible * @return boolean */ isErrorMessageBoxVisible(): Promise; /** * Check if the error character count message is visible * @return boolean */ isErrorCharacterCountVisible(): Promise; /** * Get the text from the error character count message * @return string */ getErrorCharacterCountText(): Promise; /** * Returns true if element "errorMessageBox" present on the page * @return boolean */ verifyErrorMessageBoxPresence(): Promise; /** * Returns true if element "errorCharacterCount" present on the page * @return boolean */ verifyErrorCharacterCountPresence(): Promise; waitForSpinner(): Promise<_Spinner>; /** * Represents a loading spinner displayed conditionally. */ getSpinner(): Promise<_Spinner | null>; /** * Represents the send button to submit the message. */ getSendButtonIcon(): Promise<_ButtonIcon>; }