/** * 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 } from '@utam/core'; import _FormattedRichText from 'salesforce-pageobjects/lightning/pageObjects/formattedRichText'; /** * A component that displays a welcome message with the ability to toggle between a truncated "View More" and an expanded "View Less" state based on the content length. * Selector: src-view-more-less * generated from JSON dist/runtime_copilot_base/viewMoreLess.utam.json * @version 2026-03-09T13:56:37.362Z * @author Salesforce */ export default class ViewMoreLess extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Clicks the "View More/Less" toggle link */ clickViewToggle(): Promise; /** * Checks if the "View More/Less" toggle link is visible * @return boolean */ isViewToggleVisible(): Promise; /** * Checks if the "View More/Less" toggle link is present in the DOM * @return boolean */ isViewTogglePresent(): Promise; /** * Returns true if element "viewToggleLink" present on the page * @return boolean */ verifyViewToggleLinkPresence(): Promise; waitForViewToggleLink(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; /** * Represents the container for the message that can be expanded or collapsed. */ getMessageContainer(): Promise<_FormattedRichText>; }