/** * 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-menu-item * Represents the lightning-menu-item Lightning web component.. * Get the item's text, or get the matching attribute of the menu item. * generated from JSON dist/lightning/menuItem.utam.json * @version 2026-03-09T13:56:36.148Z * @author Salesforce */ export default class MenuItem extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Get lightning-menu-item text attribute value * @return string */ getAttribute(text: string): Promise; /** * Checks if menu item link is in focus * @return boolean */ isFocused(): Promise; /** * Wait for mouse to move to the middle of the link element and checks if the element has focus at the moment */ hover(): Promise; /** * Checks if lightning-menu-item is selected by checking if the element contains the class slds-is-selected * @return boolean */ isSelected(): Promise; /** * Get item link text * @return string */ getItemText(): Promise; /** * Clicks the link of the menu item * @return void */ clickLink(): Promise; getLink(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; }