device-navigation
Version:
Navigate HTML elements in two dimensions with non-pointer devices.
19 lines (18 loc) • 474 B
TypeScript
/**
* Focuses an element.
*
* @category Util
*/
export declare function focusElement(element: HTMLElement): void;
/**
* Waits until an element is focused.
*
* @category Util
*/
export declare function waitUntilFocused(element: Element, message?: string | undefined): Promise<void>;
/**
* Waits until an element is blurred (unfocused).
*
* @category Util
*/
export declare function waitUntilBlurred(element: Element, message?: string | undefined): Promise<void>;