Skip to content

fix(workers): occluded-click step failures classify as selector_not_found, not selector_not_visible #88

Closed

Description

@jyotir-aditya

Found while building the loop-closure benchmark (#66): in the occluding-modal case, the click target exists in the DOM and matches the selector — it's merely covered by a dialog — yet the step failure classifies as selector_not_found. An agent reading the type alone is told the selector matched nothing, which is false and steers toward rewriting a correct selector.

The blocking_overlay finding on the same failure compensates today, but the taxonomy type itself should be right: selector_not_visible (both types already exist — no taxonomy addition needed).

Likely spot: the step-crash classification (inferFailureTypeFromCrash in workers/src/assertions/analyzers.ts and the CLI's inferFailureTypeFromError) pattern-matches Playwright's "waiting for locator(...)" message to selector_not_found without distinguishing Playwright's "intercepts pointer events" / element-not-stable actionability text, and waitForTarget's count-based classification (0 matches vs N-matched-none-visible) may not run for click actionability timeouts.

Acceptance:

  • A click blocked by an overlay (element present, covered) reports selector_not_visible
  • A click on a selector matching nothing still reports selector_not_found
  • The benchmark's occluding-modal case.json expected_failure_type updated accordingly — the benchmark should catch this class of drift from now on
  • fix_hint template for the occluded case doesn't say "fix the selector"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions