UNPKG

@wix/design-system

Version:

@wix/design-system

57 lines 1.71 kB
import { UniDriver } from '@wix/unidriver-core'; export declare const autoCompleteWithLabelDriverFactory: (base: UniDriver) => { /** * Gets label text * @return {Promise<string>} */ getLabelText: () => Promise<string>; /** * Gets input value * @return {Promise<string>} */ getValue: () => Promise<string>; /** * Enters given text to input * @param {string} text Text to input * @returns {Promise<void>} */ enterText: (text: string) => Promise<void>; /** * Clicks an option at given index * @param {number} index Position of the option * @returns {Promise<void>} */ clickAtOption: (index: number) => Promise<void>; /** * Clicks an option with a given value * @param {string} value The option value * @returns {Promise<void>} */ clickAtOptionWithValue: (value: string) => Promise<void>; /** * Clicks the menu arrow * @returns {Promise<void>} */ clickMenuArrow: () => Promise<void>; /** * Checks if input is disabled * @returns {Promise<boolean>} */ isDisabled: () => Promise<boolean>; /** * Triggers blur event on the input element * @returns {Promise<void>} */ blur: () => Promise<void>; /** * Checks whether there's a visible error icon * @return {Promise<boolean>} */ hasError: () => Promise<boolean>; exists: () => Promise<boolean>; element: () => Promise<any>; click: () => Promise<void>; base: UniDriver; }; export type AutoCompleteWithLabelUniDriver = ReturnType<typeof autoCompleteWithLabelDriverFactory>; //# sourceMappingURL=AutoCompleteWithLabel.uni.driver.d.ts.map