/** * 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 _BaseIcon from 'salesforce-pageobjects/feeds/chat/pageObjects/baseIcon'; /** * A toggleable button component that can represent an active or inactive state, indicated by different labels and icons. It can be interacted with by clicking and can be disabled. * Selector: src-base-button-stateful * generated from JSON dist/feeds/chat/baseButtonStateful.utam.json * @version 2026-03-09T13:56:35.611Z * @author Salesforce */ export default class BaseButtonStateful extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Simulate a click on the stateful button */ clickStatefulButton(): Promise; /** * Check if the stateful button is enabled * @return boolean */ isStatefulButtonEnabled(): Promise; /** * Check if the stateful button is visible * @return boolean */ isStatefulButtonVisible(): Promise; /** * Get the text of the pressed label * @return string */ getPressedLabel(): Promise; /** * Get the text of the button label * @return string */ getButtonLabel(): Promise; /** * Check if the pressed label is visible * @return boolean */ isPressedLabelVisible(): Promise; /** * Check if the button label is visible * @return boolean */ isButtonLabelVisible(): Promise; /** * Returns true if element "pressedLabel" present on the page * @return boolean */ verifyPressedLabelPresence(): Promise; /** * Returns true if element "buttonLabel" present on the page * @return boolean */ verifyButtonLabelPresence(): Promise; /** * Represents the icon shown when the button is in the pressed state. */ getCheckedIcon(): Promise<_BaseIcon | null>; /** * Represents the icon shown when the button is in the unpressed state. */ getAddIcon(): Promise<_BaseIcon | null>; }