UNPKG

@atomic-testing/component-driver-html

Version:
17 lines (16 loc) 881 B
import { ComponentDriver, IComponentDriverOption, IInputDriver, Interactor, PartLocator } from '@atomic-testing/core'; export declare class HTMLTextInputDriver extends ComponentDriver<{}> implements IInputDriver<string | null> { constructor(locator: PartLocator, interactor: Interactor, option?: Partial<IComponentDriverOption>); getValue(): Promise<string | null>; /** * Set the value of the input, if the input is date, the value should be in the format of 'yyyy-MM-dd'. * If the input is time, the value should be in the format of 'HH:mm:'. * If the input is datetime-local, the value should be in the format of 'yyyy-MM-ddTHH:mm'. * @param value Value to be set. * @returns */ setValue(value: string | null): Promise<boolean>; isDisabled(): Promise<boolean>; isReadonly(): Promise<boolean>; get driverName(): string; }