/** * 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, ActionableUtamElement as _ActionableUtamElement, ClickableUtamElement as _ClickableUtamElement, EditableUtamElement as _EditableUtamElement } from '@utam/core'; import _Helptext from 'salesforce-pageobjects/lightning/pageObjects/helptext'; import _PrimitiveIcon from 'salesforce-pageobjects/lightning/pageObjects/primitiveIcon'; import _PrimitiveFileDroppableZone from 'salesforce-pageobjects/lightning/pageObjects/primitiveFileDroppableZone'; import _Datepicker from 'salesforce-pageobjects/lightning/pageObjects/datepicker'; import _Timepicker from 'salesforce-pageobjects/lightning/pageObjects/timepicker'; import _Datetimepicker from 'salesforce-pageobjects/lightning/pageObjects/datetimepicker'; /** * Selector: lightning-input * Represents the lightning-input Lightning web component. * Check if it has a label and get the label text. Check if the element has focus. * Get the text value and set the text by scrolling to the input field. * Toggle the checkbox or set the required status if the component contains a checkbox. * Get the checked status. Check if there are any errors, and get the error text. * Select the date and time if the component has date and time pickers. Check if the input is enabled, or if it's read only. * generated from JSON dist/lightning/input.utam.json * @version 2026-03-09T13:56:36.106Z * @author Salesforce */ declare class Input extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Checks if input parent wrapper contains label or not * @return boolean */ hasLabel(): Promise; /** * Checks if the input has focus at the moment or not * @return boolean */ hasFocus(): Promise; /** * Applies focus on the input element */ focus(): Promise; /** * Clicks on Clear button */ clickClearButton(): Promise; /** * Clicks on the input tag */ click(): Promise; /** * Applies blur action on the lightning-input element */ blur(): Promise; /** * Get label text for input * @return string */ getLabelText(): Promise; /** * Clicks the label for a checkbox-button or toggle-button style input */ clickCheckboxLabel(): Promise; /** * Get input tag value * @return string */ getValueText(): Promise; /** * Set new value of input */ setText(text: string): Promise; /** * Get root element attribute value by attribute name * @return string */ getRootAttribute(text: string): Promise; /** * Get input attribute value by attribute name * @return string */ getInputAttribute(text: string): Promise; /** * Click to toggle input checkbox state */ toggleCheckbox(): Promise; /** * Presses Space key on input checkbox */ pressSpace(): Promise; /** * Get input checkbox state by getting it's checked attribute * @return string */ getCheckedState(): Promise; /** * Get input aria-describedby attribute value * @return string */ getAriaDescribedBy(): Promise; /** * Get input aria-errormessage attribute value * @return string */ getAriaErrorMessage(): Promise; getAriaLabelledBy(): Promise; /** * Get input datetime value * @return string */ getDateTime(): Promise; /** * Get error help message text * @return string|null */ getErrorText(): Promise; /** * Get assistive help message text * @return string|null */ getErrorAssistiveText(): Promise; /** * Checks if error message is present or not * @return boolean */ hasError(): Promise; /** * Checks if the input is readonly by getting it's readonly attribute * @return string */ isReadonly(): Promise; /** * Checks if the input is enabled or not * @return boolean */ isEnabled(): Promise; /** * Select date from datePicker and date should be in 'yyyy-mm-dd' format */ selectDate(date: string): Promise; /** * Select time from input time picker and time should be in H:MM XM format */ selectTime(time: string): Promise; /** * Set the status of the input checkbox */ check(state: boolean): Promise; /** * Checks if the input checkbox selection is enabled or not * @return boolean */ isSelectable(): Promise; /** * Scroll input to center of the screen */ scrollToCenter(): Promise; /** * Checks if the wrapper element contains datetimepicker or not * @return boolean */ hasDatetimepicker(): Promise; /** * Wait for error message to be displayed * @throws TimeoutError */ waitForErrorMessage(): Promise; getRoot(): Promise<(_BaseUtamElement & _ActionableUtamElement)>; getRequired(): Promise<(_BaseUtamElement) | null>; getHelpText(): Promise<_Helptext | null>; getColorButtonRoot(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement & _EditableUtamElement) | null>; getError(): Promise<(_BaseUtamElement) | null>; getAssistiveText(): Promise<(_BaseUtamElement) | null>; getClearButton(): Promise<_PrimitiveIcon | null>; getFileDroppableZone(): Promise<_PrimitiveFileDroppableZone | null>; getDatepicker(): Promise<_Datepicker | null>; getTimepicker(): Promise<_Timepicker | null>; getDatetimepicker(): Promise<_Datetimepicker | null>; } export = Input;