/** * 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'; import _Helptext from 'salesforce-pageobjects/lightning/pageObjects/helptext'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; /** * Selector: lightning-dual-listbox * Represents the lightning-dual-listbox Lightning web component. * Get the label text, the selected label text, the source label text, or an error message associated with the dual list box. * Check if there's an error, or if the field is required. Click the source item or the selected item. Get the selected options and the source options. * Gets the assistive message read by screen readers * generated from JSON dist/lightning/dualListbox.utam.json * @version 2026-03-09T13:56:36.056Z * @author Salesforce */ export default class DualListbox extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Gets the label of dual list box * @return string */ getLabel(): Promise; /** * Checks if the field is required * @return boolean */ isRequired(): Promise; /** * Gets the label of source list box * @return string */ getSourceLabel(): Promise; /** * Gets the assistive message read by screen readers * @return string */ getAssistiveMessage(): Promise; /** * Gets the label of selected options list box * @return string */ getSelectedLabel(): Promise; /** * Checks if there is an error * @return boolean */ hasError(): Promise; /** * Gets the error message only if there is an error * @return string|null */ getErrorMessage(): Promise; /** * Performs an click action on the source list item */ clickSourceItem(text: string): Promise; /** * Performs an click action on the selected list item */ clickSelectedItem(text: string): Promise; /** * Gets the label of all items in the selected list box * @return string[] */ getSelectedOptions(): Promise; /** * Gets the label of all items in the source list box * @return string[] */ getSourceOptions(): Promise; /** * Gets the label of active item in the dual list box * @return string|null */ getActiveOption(): Promise; getHelptext(): Promise<_Helptext>; getSelectBtn(): Promise<_ButtonIcon>; getDeselectBtn(): Promise<_ButtonIcon>; getMoveUpButton(): Promise<_ButtonIcon | null>; getMoveDownButton(): Promise<_ButtonIcon | null>; }