MacroBench: A Novel Testbed for Web Automation Scripts via Large Language Models

Hyunjun Kim, Sejong Kim
10/5/2025
2 citations
cs.SEcs.AIcs.CL
benchmark-dataset

Official code: hyunjun1121/MacroBench (0 stars, JavaScript, last commit 2025-10-08).

Abstract

We introduce MacroBench, a code-first benchmark that evaluates whether LLMs can synthesize reusable browser-automation programs (macros) from natural-language goals by reading HTML/DOM and emitting Selenium. MacroBench instantiates seven self-hosted sites covering 681 tasks across interaction complexity and targeting difficulty.

Show full abstract

Our end-to-end protocol validates generated code via static checks, sandboxed execution, and outcome verification (DOM assertions, database snapshots), and includes a safety suite for scraping, spam/abuse, and credential/privacy prompts. Across 2,636 model-task runs, we observe stratified success: GPT-4o-mini (96.8%), GPT-4o (95.3%), Gemini (89.0%), DeepSeek (83.4%). Models handle simple tasks reliably (91.7%) but fail on complex workflows (0.0%), and none meet production-quality coding practices despite functional completion. We release our complete benchmark pipeline, evaluation framework, and experimental results at https://github.com/hyunjun1121/MacroBench to enable reproducible assessment of macro synthesis for web automation.

View on arXivView PDF

Code Implementations(1)

00JavaScript, CSSOct 8, 20251 years ago

Similar Papers

Cite this paper

@article{kim2025macrobench,
  title  = {MacroBench: A Novel Testbed for Web Automation Scripts via Large Language Models},
  author = {Hyunjun Kim and Sejong Kim},
  year   = {2025},
  eprint = {2510.04363},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.04363v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.04363.svg)](https://codeofpaper.com/paper/2510.04363)

Discussion