/** * 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, ContainerCtor as _ContainerCtor, UtamBasePageObject as _UtamBasePageObject, ActionableUtamElement as _ActionableUtamElement, ClickableUtamElement as _ClickableUtamElement } from '@utam/core'; import _Spinner from 'salesforce-pageobjects/lightning/pageObjects/spinner'; import _MenuItem from 'salesforce-pageobjects/lightning/pageObjects/menuItem'; import _PrimitiveIcon from 'salesforce-pageobjects/lightning/pageObjects/primitiveIcon'; /** * Selector: lightning-button-menu * Represents the lightning-button-menu Lightning web component. * Click a button, Check if menu items are loading, Check if dropdown is opened, or wait for a custom menu item by title. * generated from JSON dist/lightning/buttonMenu.utam.json * @version 2026-03-09T13:56:35.996Z * @author Salesforce */ declare class ButtonMenu extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Checks if lightning-button-menu has focus at the moment */ hasFocus(): Promise; /** * Performs a click action and wait for dropdown to open */ clickButton(): Promise; /** * Scrolls to the button and performs a hover action on the button */ hover(): Promise; /** * Checks if menu items are loading and spinner is present * @return boolean */ isLoading(): Promise; /** * Checks if menu dropdown is opened * @return boolean */ isDropdownOpened(): Promise; /** * Wait for dropdown menu to open * @throws TimeoutError */ waitForDropdownToOpen(): Promise; /** * Wait for a specific menu item to be present * @throws TimeoutError * @param title Title of the menu item */ waitForCustomMenuItemByTitle(title: string): Promise; getRoot(): Promise<(_BaseUtamElement)>; getAllCustomMenuItems(ContainerCtor: _ContainerCtor): Promise; getCustomMenuItemByTitle(title: string, ContainerCtor: _ContainerCtor): Promise; getCustomMenuItemByIndex(index: number, ContainerCtor: _ContainerCtor): Promise; getMenuItem(itemIndex: number): Promise<_MenuItem>; getMenuItemByText(text: string): Promise<_MenuItem>; getAllMenuItems(): Promise<_MenuItem[]>; getMenuHeaderByIndex(index: number, ContainerCtor: _ContainerCtor): Promise; getButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; getDropdown(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement) | null>; getIcon(): Promise<_PrimitiveIcon>; } export = ButtonMenu;