/** * form-detection.skill.ts * * Detects form fields and their associated submit buttons on the current page * and generates the corresponding Playwright fill and click code. * * This skill examines all input, textarea, and select elements found by the * DOMAnalyzer and builds locators for each field using the best available * attribute: label > placeholder > id > name. * * It also identifies submit/save/login buttons and adds click actions for them. * * Confidence is fixed at 0.88 — form detection is highly reliable when label * and placeholder information is available. * * Role in the overall flow: * SkillOrchestrator.autoExecute() → FormDetectionSkill.execute() (when forms.length > 0) * → selectors and generated code included in the generate_test result */ import { SkillContext, SkillResult } from '../types'; import { BaseSkill } from './base.skill'; /** * Identifies form fields and submit buttons and produces fill/click code. */ export declare class FormDetectionSkill extends BaseSkill { readonly name = "form-detection"; /** * Detect form fields and submit buttons on the current page. * * @param ctx - The skill context with the full page analysis. * @returns A SkillResult with locators for all form fields and submit buttons, * generated TypeScript fill/click code, and metadata with counts. */ execute(ctx: SkillContext): Promise; } //# sourceMappingURL=form-detection.skill.d.ts.map