cybernaut
Version:
Reliable, automated web UI testing in BDD-style.
10 lines (9 loc) • 471 B
TypeScript
import { Action } from './action';
import { Options } from './options';
export interface Execution {
readonly description: string;
readonly error: boolean;
}
export declare type Executor<T> = (driver: T, attempt: number, retries: number) => Promise<Execution>;
export declare function createExecutor<T>(action: Action<T>): Executor<T>;
export declare function execute<T>(executor: Executor<T>, driver: T, options: Options, _attempt?: number): Promise<Execution>;