/** * 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, ClickableUtamElement as _ClickableUtamElement } from '@utam/core'; import _Helptext from 'salesforce-pageobjects/lightning/pageObjects/helptext'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; import _Calendar from 'salesforce-pageobjects/lightning/pageObjects/calendar'; /** * Selector: lightning-datepicker * Represents the lightning-datepicker Lightning web component. * Get the label text, or the date value as a string. Check if it's a required field. Clear the date field and set the date. * generated from JSON dist/lightning/datepicker.utam.json * @version 2026-03-09T13:56:36.048Z * @author Salesforce */ export default class Datepicker extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Checks if the lightning-datepicker has focus * @return boolean */ hasFocus(): Promise; /** * Applies focus on the input element */ focus(): Promise; /** * Click lightning-datepicker element */ click(): Promise; /** * Get error help text if present * @return string|null */ getErrorText(): Promise; /** * Get assistive help message text * @return string|null */ getErrorAssistiveText(): Promise; /** * Get format text content if present * @return string|null */ getDateFormatTextContent(): Promise; /** * Gets the class list of date format div * @return string */ getDateFormatClassAttr(): Promise; /** * Get date input attribute value by param * @return string */ getInputAttribute(text: string): Promise; /** * Get the label text * @return String value, label text */ getLabelText(): Promise; /** * Check if the field associated with the label is required * @return boolean value */ isRequired(): Promise; /** * Set the text for the date input text box * @return none */ setDateText(text: string): Promise; /** * Get the value of the date text box * @return String value */ getDateText(): Promise; /** * Clear the value of the date text box * @return none */ clearDateText(): Promise; getRoot(): Promise<(_BaseUtamElement & _ClickableUtamElement)>; getHelptext(): Promise<_Helptext>; getOpenButton(): Promise<_ButtonIcon>; getCalendar(): Promise<_Calendar>; getError(): Promise<(_BaseUtamElement) | null>; getAssistiveText(): Promise<(_BaseUtamElement) | null>; }