UNPKG

@uuv/assistant

Version:

UUV Helper used to improve the life of testers and developers by generating cucumber phrases from the GUI.

27 lines (26 loc) 1.05 kB
/** * Software Name : UUV * * SPDX-License-Identifier: MIT * * This software is distributed under the MIT License, * see the "LICENSE" file for more details * * Authors: NJAKO MOLOM Louis Fredice & SERVICAL Stanley * Software description: Make test writing fast, understandable by any human * understanding English or French. */ import { FocusableElement } from "tabbable"; import { TranslateSentences } from "../translator/model"; import { ActionEnum } from "../Commons"; export declare class SelectionHelper { private onReset; private highLightHelper; private intelligentHighlight; constructor(onSelect: (el: HTMLElement) => void, onReset: () => void, intelligentHighlight: boolean); private readonly onKeyDown; startSelect(enableDisabledField: boolean): void; buildResultSentence(el: FocusableElement, action: ActionEnum.EXPECT | ActionEnum.CLICK | ActionEnum.WITHIN | ActionEnum.TYPE, isDisabled: boolean): Promise<TranslateSentences>; private enableDisabledField; private revertDisabledField; }