/** * 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, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _GroupedCombobox from 'salesforce-pageobjects/lightning/pageObjects/groupedCombobox'; import _PillContainer from 'salesforce-pageobjects/lightning/pageObjects/pillContainer'; /** * Selector: lightning-lookup-desktop * Represents the lightning-lookup-desktop Lightning web component. * generated from JSON dist/lightning/lookupDesktop.utam.json * @version 2026-03-09T13:56:36.138Z * @author Salesforce */ declare class LookupDesktop extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Delete pill by index. Should only be used in a multi-value lookup use-case (starts at 1). * @return none */ deletePill(index: number): Promise; /** * Delete all the selected records from the pill container. Should only be used in a multi-value lookup use-case. * @return none */ deleteAllPills(): Promise; /** * Get all the selected records label from the pill container. Should only be used in a multi-value lookup use-case. * @return string[] */ getAllPills(): Promise; /** * Type a text into the combobox input. * @return none */ type(text: string): Promise; /** * Gets the input text * @return string */ getInputText(): Promise; /** * Clear the input text into the combobox input. * @return string */ clearInput(): Promise; /** * Select a record in the combobox by label. * @return none */ selectRecordSuggestionByLabel(text: string): Promise; /** * Gets the label of the selected record. * @return string */ getSelectedRecordLabel(): Promise; /** * Did we select a record? * @return boolean */ isSelectedRecordLabelEmpty(): Promise; /** * Did we select a record? * @return boolean */ hasSelectedRecord(): Promise; /** * Clears the selected record. Should only be used in a single-value lookup use-case. * @return none */ clearSelectedRecord(): Promise; /** * Returns the selected entity of the entity selector * @return string */ getSelectedEntity(): Promise; /** * Select an item in the entity selector's combobox by value (objectApiName). Should only be used in a multi-object lookup use-case. * @return none */ selectEntityInEntitySelector(text: string): Promise; /** * Determine if the entity selector is present in the DOM or not. * @return boolean */ isEntitySelectorPresent(): Promise; /** * Show the advanced modal for further search * @return none */ selectAdvancedLookupOption(): Promise; /** * Request the creation of a new record * @return none */ selectCreateNewAction(): Promise; /** * Ensure the create new action is present * @return boolean */ isCreateNewActionPresent(): Promise; /** * Get the error message * @return string */ getErrorMessage(): Promise; /** * Focus into the combobox input. * @return none */ focusInput(): Promise; /** * Wait until suggestions are loaded * @return none */ waitForSuggestions(): Promise; /** * Determine if the component is disabled * @return boolean */ isDisabled(): Promise; /** * Determine if the component is required * @return boolean */ isRequired(): Promise; /** * Determine if the component is enabled * @return boolean */ isEnabled(): Promise; /** * Waits for the grouped combobox component to be ready */ waitUntilReady(): Promise; /** * DO NOT USE - use provided methods instead * @deprecated Accessing a child component breaks the abstraction provided by the Page Object model. This selector will no longer be accessible in near future, please use the component's public methods instead. */ getGroupedCombobox(): Promise<_GroupedCombobox>; /** * DO NOT USE - use provided methods instead * @deprecated Accessing a child component breaks the abstraction provided by the Page Object model. This selector will no longer be accessible in near future, please use the component's public methods instead. */ getPillContainer(): Promise<_PillContainer>; } export = LookupDesktop;