UNPKG

@uuv/assistant

Version:

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

39 lines (38 loc) 1.47 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. */ export declare class InformativeNodesHelper { private readonly TAGS_WITH_NATIVE_ACCESSIBILITY_DATA; private readonly INTERESTING_TAGS; private readonly candidatesWithNativeAccessibleData; private readonly candidatesWithCustomAccessibleData; constructor(); /** * Trouve l'élément parent le plus pertinent pour l'analyse d'accessibilité * @param {HTMLElement} element - L'élément de départ * @returns {HTMLElement|null} - L'élément parent pertinent ou null si non trouvé */ findRelevantAccessibilityParent(element: any): HTMLElement | null; extractContextForElement(element: Element): { parentElement: HTMLElement | null; htmlContext: string; siblingText: string; }; getSiblingsFragment(element: Element, maxSiblings?: number): string; private extractInterestingChildren; private isStructuralOnly; private findInformativeElements; getAvailableNodes(): Element[]; getAvailableChildren(node: HTMLElement | Element): Promise<Element[]>; private hasInformativeAttributes; getDialogName(node: Element): string | null; }