/** * 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, ActionableUtamElement as _ActionableUtamElement, ClickableUtamElement as _ClickableUtamElement, UtamBasePageObject as _UtamBasePageObject, EditableUtamElement as _EditableUtamElement } from '@utam/core'; import _Icon from 'salesforce-pageobjects/lightning/pageObjects/icon'; /** * Component that displays a title with icon and provides inline editing functionality * Supports display mode with title text and edit mode with input field and action buttons * Selector: experience_ui_gen_canvas-tile-title * generated from JSON dist/experience/ui/gen/canvas/tileTitle.utam.json * @version 2026-03-09T13:56:35.587Z * @author Salesforce */ export default class TileTitle extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Retrieves the text content of the title * @return string */ getTitleText(): Promise; /** * Checks if the title text is visible * @return boolean */ isTitleVisible(): Promise; /** * Checks if the edit button is visible * @return boolean */ isEditButtonVisible(): Promise; /** * Clicks the edit button to enter edit mode */ clickEditButton(): Promise; /** * Checks if the component is currently in edit mode * @return boolean */ isInEditMode(): Promise; /** * Sets the text in the title input field */ setTitleText(text: string): Promise; /** * Gets the current value of the title input field * @return string */ getTitleInputValue(): Promise; /** * Clicks the save button to save title changes */ clickSaveButton(): Promise; /** * Clicks the cancel button to discard title changes */ clickCancelButton(): Promise; /** * Checks if the save button is visible (edit mode) * @return boolean */ isSaveButtonVisible(): Promise; /** * Checks if the cancel button is visible (edit mode) * @return boolean */ isCancelButtonVisible(): Promise; waitForTitleText(): Promise<(_BaseUtamElement)>; waitForEditButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; /** * Represents the icon displayed next to the title */ getTitleIcon(): Promise<_Icon>; /** * Represents the input field for editing the title */ getTitleInput(): Promise<(_BaseUtamElement & _EditableUtamElement)>; }