NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AI Agents for Web Testing: A Case Study in the Wild

Naimeng Ye, Xiao Yu, Ruize Xu, Tianyi Peng, Zhou Yu

TL;DR

WebProber is an autonomous, AI-agent-based web testing framework that uses Visual Language Models (VLMs) to simulate human-like interactions and catch subtle usability bugs. Tested "in the wild" on 120 personal websites, it successfully uncovered 29 real-world usability issues—such as logical inconsistencies and broken links—that traditional automated testing tools typically miss. While promising, the framework currently grapples with a high false-positive rate driven by browser automation constraints.

What Problem Does This Paper Address?

Traditional automated web testing tools like Cypress or Puppeteer are excellent at checking code paths, measuring load performance, and ensuring that scripted UI elements don't crash. However, they suffer from a major blind spot: they cannot evaluate a website from a human user's perspective.

Traditional tools struggle to detect contextual and usability bugs—such as poor color contrast making text unreadable, broken logical flows, or search bars failing when a query contains a space. Because real user behavior is highly diverse and context-dependent, software-based testing methods often fail to generate the necessary test cases, leaving critical user-experience flaws undetected.

Examples of usability bugs missed by traditional testing techniques, including poor contrast and query failures.

Methods

The authors introduce WebProber, a highly extensible web testing framework powered by VLMs (specifically, Claude-3.7 Sonnet). Instead of interacting with post-processed HTML or DOM trees, WebProber acts directly on visual webpages via screenshots, mimicking a human tester.

The framework operates through a three-stage pipeline:

  1. Prompt Generation (Proposal Module): Guided by an iteratively refined bug database, this module generates targeted prompts instructing the agent on which features to investigate based on the class of the website.
  2. Interaction Simulation: Built on top of the browser-use Python package, the agent looks at a screenshot, decides on an action (clicking, typing, scrolling), executes it, and repeats the process until a step limit is reached.
  3. Bug Report Generation: The VLM reviews the complete interaction history (including screenshots and reasoning traces) to diagnose user-side bugs and suggest UI/UX improvements.

Datasets

To evaluate WebProber in a realistic setting, the authors compiled a dataset of 120 academic personal websites crawled from OpenReview author profiles.

To measure bug coverage, they manually inspected a representative subset of 80 websites to establish a ground-truth set of all coexisting bugs. The authors have open-sourced both their testing code and their human-annotated bug database to encourage future benchmarking.

Key Insights and Ideas

  • Visual Processing Over Code Analysis: By relying on visual screenshots rather than underlying HTML, the agent can catch semantic and logical errors—such as a spring semester syllabus accidentally scheduling a "Fall break"—that code-level assertions would completely ignore.
  • The Automation Framework Bottleneck: A surprising finding was that the majority of the agent's mistakes were not due to poor reasoning, but rather the technical limitations of the underlying browser automation framework (e.g., security settings blocking PDF access).
  • Exploration Depth Challenges: AI agents executing a single-pass exploration tend to stop early, meaning bugs buried deep within a website's page hierarchy often go undetected.

Key Results

WebProber successfully identified 29 genuine usability issues across the 120 websites, spanning categories like broken/misdirected links and rendering glitches.

Examples of WebProber detecting a misdirected link and a logical typographical error.

In the deeper evaluation of the 80-website subset:

  • Coverage: WebProber detected 19 out of 32 manually identified bugs, achieving a 59.4% coverage rate.
  • False Positives: A significant drawback was that 85% of all reported bugs across the websites were false positives. These were primarily caused by the agent misinterpreting browser automation constraints as actual website defects.

Limitations and Future Work

The paper openly highlights several limitations that pave the way for future research:

  • High False Positive Rate: At 85%, human oversight is still heavily required to filter out bad reports.
  • Shallow Exploration: The agent struggles with long-horizon traversals and often misses bugs hidden deep within website hierarchies.
  • Dynamic Content: The current implementation cannot effectively handle pages with complex dynamic content rendering.

To address these, the authors point toward developing better exploration strategies, incorporating reinforcement learning, creating hybrid testing tools that combine traditional methods with AI agents, and expanding testing to other domains like startup landing pages and AI-generated websites.

Summary updated

BibTeX
@inproceedings{ye2025ai,
  author = {Naimeng Ye and Xiao Yu and Ruize Xu and Tianyi Peng and Zhou Yu},
  title = {{AI Agents for Web Testing: A Case Study in the Wild}},
  booktitle = {LAW @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=SweHyX6caU},
}
Figure