/** * 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, ClickableUtamElement as _ClickableUtamElement, ActionableUtamElement as _ActionableUtamElement } from '@utam/core'; import _PrimitiveIcon from 'salesforce-pageobjects/lightning/pageObjects/primitiveIcon'; /** * Selector: lightning-button-icon * Represents the lightning-button-icon Lightning web component. * Click or focus a button, or click a button with a given title, check if button has focus, hover on a button or get alternate text. * generated from JSON dist/lightning/buttonIcon.utam.json * @version 2026-03-09T13:56:35.990Z * @author Salesforce */ export default class ButtonIcon extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Performs click action on button element */ clickButton(): Promise; /** * Performs focus action on button element */ focus(): Promise; /** * Checks if button has focus * @return boolean */ hasFocus(): Promise; /** * Scroll and hover on the button element */ hover(): Promise; /** * Performs click action on the button which is matching the given title * @param text title of the button element */ clickButtonWithTitle(text: string): Promise; /** * Gets assistive text which is read by screen readers * @return string|null */ getAlternativeText(): Promise; getButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; getIcon(): Promise<_PrimitiveIcon>; }