/** * popup-detection.skill.ts * * Detects modal dialogs, alert dialogs, and cookie consent banners on the * current page and generates code to dismiss them. * * This skill examines elements with role="dialog" or role="alertdialog" and * any buttons whose text suggests a dismiss action (close, dismiss, accept, OK). * * The generated code uses conditional click patterns so the test won't fail * if the popup is not present. * * Confidence is 0.7 — lower than other skills because popup detection has * more false positives (hidden/inactive dialogs may be present in the DOM). * * Role in the overall flow: * SkillOrchestrator.autoExecute() → PopupDetectionSkill.execute() * (when popups.length > 0) → code and selectors included in generate_test result */ import { SkillContext, SkillResult } from '../types'; import { BaseSkill } from './base.skill'; /** * Identifies dialog elements and dismiss buttons and produces optional-dismiss code. */ export declare class PopupDetectionSkill extends BaseSkill { readonly name = "popup-detection"; /** * Detect popup/dialog elements and their close buttons. * * @param ctx - The skill context with the full page analysis. * @returns A SkillResult with dialog and close-button locators, generated dismiss code, * and metadata with counts of dialogs and close buttons found. */ execute(ctx: SkillContext): Promise; } //# sourceMappingURL=popup-detection.skill.d.ts.map