/** * semantic-locator.skill.ts * * Generates resilient, stable Playwright locator expressions for every * interactive element found on the page. * * This skill delegates to SemanticLocator.best() for each element, which * applies a priority order (role+label > role+text > label > placeholder > * text > testId > CSS) to select the most stable available strategy. * * The resulting selectors are deduplicated and returned in the SkillResult. * Confidence is 0.95 — semantic locators are highly reliable. * * This skill always runs as part of the autoExecute() pipeline (alongside * playwright-generation) and its selectors supplement those produced by the * other skills. * * Role in the overall flow: * SkillOrchestrator.autoExecute() → SemanticLocatorSkill.execute() * → unique locator expression strings in SkillResult.selectors */ import { SkillContext, SkillResult } from '../types'; import { BaseSkill } from './base.skill'; /** * Produces a deduplicated set of resilient Playwright locator strings for * every interactive element on the page. */ export declare class SemanticLocatorSkill extends BaseSkill { readonly name = "semantic-locator"; private locator; /** * Generate the best locator expression for each interactive element on the page. * * @param ctx - The skill context with the full page analysis. * @returns A SkillResult with deduplicated locator strings and metadata * including the total element count and strategy used. */ execute(ctx: SkillContext): Promise; } //# sourceMappingURL=semantic-locator.skill.d.ts.map