/** * 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'; /** * Selector: lightning-tree-item * Represents the lightning-tree-item Lightning web component. * Toggle a tree branch by clicking the toggle button. * Get a tree branch or link text, URL, or href value of the link. * Click the link of the tree item. Get the count of root-level items. * Retrieve a specific lightning-tree-item by text value match from the lightning-tree-item. * generated from JSON dist/lightning/treeItem.utam.json * @version 2026-03-09T13:56:36.262Z * @author Salesforce */ export default class TreeItem extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Toggle tree branch on click */ toggleTreeBranch(): Promise; /** * Checks if the lightning-tree-item is open or not based on the value of aria-expanded attribute * @return boolean */ isOpen(): Promise; /** * Get lightning-tree-item tabindex value * @return string */ tabIndex(): Promise; /** * Checks if the lightning-tree-item is selected or not based on the value of aria-selected attribute * @return boolean */ isSelected(): Promise; /** * Get tree branch text * @return string */ getTreeBranchText(): Promise; /** * Click the tree item link */ clickTreeLink(): Promise; /** * Get tree link href attribute * @return string */ getTreeLinkHref(): Promise; /** * Get count of item at root level * @return number */ getRootLevelItemsCount(): Promise; getRoot(): Promise<(_BaseUtamElement)>; getTreeItem(index: number): Promise; }