/** * 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, UtamBaseRootPageObject as _UtamBaseRootPageObject, ClickableUtamElement as _ClickableUtamElement, ActionableUtamElement as _ActionableUtamElement } from '@utam/core'; /** * Selector: lightning-button. * Represents the lightning-button Lightning web component. * Click the button or check if it is disabled or focused. Access the button's name or class attribute. * generated from JSON dist/lightning/button.utam.json * @version 2026-03-09T13:56:35.988Z * @author Salesforce */ export default class Button extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Performs a click action on button element */ click(): Promise; /** * Performs a click action on root element for mobile devices * @deprecated Since 242 release. */ mobileClick(): Promise; focus(): Promise; /** * Gets the button label * @return string */ getButtonName(): Promise; /** * Gets the class list of button element * @return string */ getClassAttr(): Promise; /** * Check if button element is focused * @return boolean */ isFocused(): Promise; /** * Check if button element is in disabled state * @return boolean */ isDisabled(): Promise; getRoot(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; getButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; }