/** * 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, PageObjectCtor as _PageObjectCtor, ClickableUtamElement as _ClickableUtamElement } from '@utam/core'; import _BasePopoverContainer from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/basePopoverContainer'; import _BaseIcon from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseIcon'; /** * Component that serves as a dropdown with a button that can display a popover with customizable content and headers. The button can be disabled, and the popover can be opened or closed programmatically. * Selector: src-base-drop-down * generated from JSON dist/runtime_copilot_base/baseDropDown.utam.json * @version 2026-03-09T13:56:37.221Z * @author Salesforce */ declare class BaseDropDown extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the dropdown header is visible * @return boolean */ isDropdownHeaderVisible(): Promise; /** * Retrieve the text of the dropdown header * @return string */ getDropdownHeaderText(): Promise; /** * Returns true if element "dropdownHeader" present on the page * @return boolean */ verifyDropdownHeaderPresence(): Promise; waitForPopoverContainer(): Promise<_BasePopoverContainer>; waitForHeaderStartSlot(pageObjectType: _PageObjectCtor): Promise; waitForHeaderSlot(pageObjectType: _PageObjectCtor): Promise; waitForHeaderEndSlot(pageObjectType: _PageObjectCtor): Promise; waitForPopoverContentSlot(pageObjectType: _PageObjectCtor): Promise; waitForFooterSlot(pageObjectType: _PageObjectCtor): Promise; /** * Represents the popover manager that controls the popover visibility. */ getPopoverManager(): Promise<(_BaseUtamElement)>; /** * Represents the button that triggers the popover. */ getDropdownButton(): Promise<(_BaseUtamElement & _ClickableUtamElement)>; /** * Represents the icon displayed within the dropdown button. */ getDropdownButtonIcon(): Promise<_BaseIcon>; /** * Represents the container for the popover content. */ getPopoverContainer(): Promise<_BasePopoverContainer>; /** * Represents the slot for custom content at the start of the popover header. */ getHeaderStartSlot(ContainerCtor: _ContainerCtor): Promise; /** * Represents the slot for custom content in the popover header. */ getHeaderSlot(ContainerCtor: _ContainerCtor): Promise; /** * Represents the slot for custom content at the end of the popover header. */ getHeaderEndSlot(ContainerCtor: _ContainerCtor): Promise; /** * Represents the main content slot of the popover. */ getPopoverContentSlot(ContainerCtor: _ContainerCtor): Promise; /** * Represents the slot for custom content in the popover footer. */ getFooterSlot(ContainerCtor: _ContainerCtor): Promise; } export = BaseDropDown;