/** * 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, PageObjectCtor as _PageObjectCtor, UtamBaseRootPageObject as _UtamBaseRootPageObject } from '@utam/core'; import _ExplorerContainer from 'salesforce-pageobjects/dev/workspace/pageObjects/explorerContainer'; import _Button from 'salesforce-pageobjects/lightning/pageObjects/button'; /** * A component that allows users to explore different metadata within a workspace, add metadata to a workspace, create solutions, and manage metadata through various actions like adding to an app or removing from the workspace. * Selector: dev_workspace-workspace-explorer * generated from JSON dist/dev/workspace/workspaceExplorer.utam.json * @version 2026-03-09T13:56:35.202Z * @author Salesforce */ export default class WorkspaceExplorer extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Click the Create Solution button */ clickCreateSolutionButton(): Promise; /** * Click the Add Metadata button */ clickAddMetadataButton(): Promise; /** * Click the More button icon to toggle the menu */ clickMoreButtonIcon(): Promise; /** * Click the menu item to add metadata to an app */ clickMenuItemAddMetadataToApp(): Promise; /** * Click the menu item to remove metadata */ clickMenuItemRemoveMetadata(): Promise; /** * Check if the menu dropdown is visible * @return boolean */ isMenuDropdownVisible(): Promise; /** * Returns true if element "createSolutionButton" present on the page * @return boolean */ verifyCreateSolutionButtonPresence(): Promise; /** * Returns true if element "moreButtonIcon" present on the page * @return boolean */ verifyMoreButtonIconPresence(): Promise; /** * Returns true if element "menuDropdown" present on the page * @return boolean */ verifyMenuDropdownPresence(): Promise; waitForExplorerContainer(): Promise<_ExplorerContainer>; waitForHeaderRightButtonsContent(pageObjectType: _PageObjectCtor): Promise; waitForCreateSolutionButton(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; waitForAddMetadataButton(): Promise<_Button>; waitForBulkActionsButtonsContent(pageObjectType: _PageObjectCtor): Promise; waitForMoreButtonIcon(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; waitForMenuDropdown(): Promise<(_BaseUtamElement)>; waitForMenuItemAddMetadataToApp(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; waitForMenuItemRemoveMetadata(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; getRoot(): Promise<(_BaseUtamElement)>; /** * Represents the main container for the workspace explorer */ getExplorerContainer(): Promise<_ExplorerContainer | null>; /** * Represents the content for the header right buttons slot */ getHeaderRightButtonsContent(ContainerCtor: _ContainerCtor): Promise; /** * Represents the button to add metadata */ getAddMetadataButton(): Promise<_Button | null>; /** * Represents the content for the bulk actions buttons slot */ getBulkActionsButtonsContent(ContainerCtor: _ContainerCtor): Promise; }