Sha256: 9b3e7f776f312c76ac67e1060e5398d7ac2c69d6a3a928a9daaae2eb05b15f56

Contents?: true

Size: 1.9 KB

Versions: 26

Compression:

Stored size: 1.9 KB

Contents

import { type Options } from '../options';
import { type PointerInput } from '../pointer';
import { type System } from '../system';
import { type UserEventApi } from './setup';
export type DirectOptions = Options & {
    keyboardState?: System;
    pointerState?: System;
};
export declare function clear(element: Element): Promise<void>;
export declare function click(element: Element, options?: DirectOptions): Promise<void>;
export declare function copy(options?: DirectOptions): Promise<DataTransfer | undefined>;
export declare function cut(options?: DirectOptions): Promise<DataTransfer | undefined>;
export declare function dblClick(element: Element, options?: DirectOptions): Promise<void>;
export declare function deselectOptions(select: Element, values: HTMLElement | HTMLElement[] | string[] | string, options?: DirectOptions): Promise<void>;
export declare function hover(element: Element, options?: DirectOptions): Promise<void>;
export declare function keyboard(text: string, options?: DirectOptions): Promise<System>;
export declare function pointer(input: PointerInput, options?: DirectOptions): Promise<System>;
export declare function paste(clipboardData?: DataTransfer | string, options?: DirectOptions): Promise<void>;
export declare function selectOptions(select: Element, values: HTMLElement | HTMLElement[] | string[] | string, options?: DirectOptions): Promise<void>;
export declare function tripleClick(element: Element, options?: DirectOptions): Promise<void>;
export declare function type(element: Element, text: string, options?: DirectOptions & Parameters<UserEventApi['type']>[2]): Promise<void>;
export declare function unhover(element: Element, options?: DirectOptions): Promise<void>;
export declare function upload(element: HTMLElement, fileOrFiles: File | File[], options?: DirectOptions): Promise<void>;
export declare function tab(options?: DirectOptions & Parameters<UserEventApi['tab']>[0]): Promise<void>;

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.8 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts
clapton-0.0.7 lib/clapton/javascripts/node_modules/@testing-library/user-event/dist/types/setup/directApi.d.ts