/** * 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-v2 * Represents the lightning-lookup-desktop-v2 Lightning web component. * generated from JSON dist/lightning/lookupDesktopV2.utam.json * @version 2026-03-09T13:56:36.141Z * @author Salesforce */ declare class LookupDesktopV2 extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * 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; /** * 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; /** * Clears the selected record. Should only be used in a single-value lookup use-case. * @return none */ clearSelectedRecord(): 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; getGroupedCombobox(): Promise<_GroupedCombobox>; /** * DO NOT USE - use provided methods instead */ getPillContainer(): Promise<_PillContainer>; } export = LookupDesktopV2;