arXiv:2610.32482cs.SEOct 2026

Manuscript Offprint

arXiv:2610.32482

WaitLens: Temporal VLM-Based Adaptive Waiting for Industrial GUI Testing Agents

Shika Ikeura, Xuan Wang, Ziyi Kuang, Jianping Xu, Chao Kang, Yongxiang Hu, Xiaoyu Wang, Juxing Yuan, Yangfan Zhou

Shika Ikeura*, Xuan Wang*, Ziyi Kuang*, Jianping Xu*, Chao Kang†, Yongxiang Hu*, Xiaoyu Wang†, Juxing Yuan†, and Yangfan Zhou*

*College of Computer Science and Artificial Intelligence, Fudan University, Shanghai, China

†Meituan, Beijing, China

{pcgchi25, xuanwang25, zykuang25, jpxu25}@m.fudan.edu.cn, kangchao@meituan.com, huyx@fudan.edu.cn, {wangxiaoyu17, yuanjuxing}@meituan.com, zyf@fudan.edu.cn

Abstract—Improving the efficiency of GUI testing agents is important for industrial deployment. Beyond LLM inference, fixed waiting between consecutive interactions introduces substantial overhead. Our industrial study reveals that fixed waiting accounts for 42.3% of the time within the sampled interaction intervals, comparable to the 54.8% spent on model calls. Moreover, 62.9% of the waiting time is spent after the GUI has already finished loading. Although prior studies have proposed adaptive waiting strategies, their reliance on app-specific data or platform-specific information limits their applicability across diverse industrial environments. To this end, we propose WAITLENS, which fine-tunes a lightweight VLM on GUI loading trajectories annotated with waiting end times. We introduce temporal resampling to construct diverse training examples, enabling the model to learn varying GUI loading behaviors from temporal observations. Experiments show that WAITLENS achieves 86.08% accuracy in deciding whether to keep waiting, compared with 54.13% for the backbone VLM. Our evaluation using recordings from Meituan's industrial testing pipeline shows that WAITLENS reduces mean extra waiting after the interface is ready by 94.98% compared with a 20 s fixed wait.

Index Terms—GUI Testing Agents, Adaptive Waiting, GUI Rendering, Vision-Language Models

I. INTRODUCTION

Recently, large language model (LLM) based GUI agents have emerged as a new testing method, which reduces reliance on manually maintained test scripts [1]-[8]. Given natural language testing tasks, these agents repeatedly observe GUI screenshots, reason about subsequent actions, and interact with apps to complete testing tasks. As illustrated in Figure 1, each action is followed by a waiting period before the agent captures the next screenshot, allowing the interface to respond.

Determining an appropriate waiting time, however, is challenging. If the wait is too short, agents may mistake an intermediate loading state for the result of the preceding action, leading to incorrect decisions [9], [10]. To accommodate slow responses, existing GUI agents often adopt fixed waiting times after each action [11]-[13]. However, a long fixed wait also keeps agents idle when the interface becomes ready earlier. Our motivation study in Section II-B shows that 62.9% of the waiting time in our industrial GUI testing agent is spent idling after the GUI has already finished loading. This substantial overhead motivates adaptive waiting policies in GUI testing agents.

Although prior studies have explored adaptive waiting for GUI testing [14]-[17], these methods face limitations when applied to GUI agents across diverse industrial environments. First, learning-based methods rely on app-specific training data and may struggle with unseen GUIs. For example, AdaT [14] uses a convolutional neural network (CNN) to classify GUI rendering states. To adapt AdaT to WeChat, WeReplay [15] collects new training data from the app and fine-tunes the model. Second, analysis-based methods rely on internal runtime or platform-specific information that screenshot-based agents cannot directly access. For example, Zhang et al. [16] monitor DOM changes, while TurboDroid [17] uses method dependency analysis to determine waiting conditions. Therefore, GUI agents need an adaptive waiting approach that relies only on screenshots and can generalize across different GUIs.

Vision-language models (VLMs) have demonstrated strong capabilities in understanding diverse GUIs [18]–[21], making them a promising alternative. However, directly applying existing VLMs to adaptive waiting is impractical for two reasons. First, unlike static GUI tasks, judging whether an interface has finished loading requires observing how the screen changes over time [22], [23]. Simply feeding all historical screenshots into a VLM increases input size and inference latency as loading continues. This may offset the time saved by adaptive waiting. Second, general-purpose VLMs are not specifically trained to distinguish loading states from completed interfaces. As a result, they may struggle to accurately predict whether the GUI is ready.

To address these challenges, we propose WAITLENS, an VLM-based approach for adaptive waiting in GUI testing agents. Instead of waiting for a fixed duration, WAITLENS periodically checks the screen after each action to decide when testing should proceed. To capture interface changes within a bounded input size, WAITLENS uses a sliding window of screenshots as input to model. During VLM fine-tuning, we use temporal resampling to augment the training data and simulate different GUI loading speeds. Together, these designs enable WAITLENS to predict GUI readiness across diverse loading conditions with low inference overhead.

We conduct comprehensive experiments to evaluate the effectiveness of WAITLENS. Our in-house experiments show that WAITLENS achieves 86.08% accuracy in GUI readiness

Figure

Fig. 1. GUI testing agent interaction loop and interface evolution during post-action waiting. The upper panel shows the interaction loop, and the lower panel illustrates the interface progressing from intermediate states to Ready.

prediction, compared with 54.13% for the backbone VLM Qwen3-VL-2B-Instruct [24]. Moreover, we evaluate WAITLENS using industrial GUI testing recordings from Meituan, a major Chinese local-services platform with over 800 million transacting users [25]. In our industrial replay evaluation, WAITLENS reduces mean post-Ready waiting by 94.98% compared with the existing fixed waiting strategy. We further analyze representative failure cases to understand the remaining challenges and identify directions for future research.

We summarize the contributions of this paper as follows.

  • We share industrial observations that identify fixed post-action waiting as a primary source of overhead in GUI testing agents. Our motivation study reveals that over 60% of the fixed waiting time is wasted after the interface is already ready.

  • We introduce WAITLENS, an VLM-based adaptive waiting approach that learns when to end waiting from temporal GUI observations. We make this approach practical by fine-tuning a lightweight open-source VLM on annotated GUI loading sequences.

  • Comprehensive experiments show that WAITLENS outperforms existing baselines in detecting GUI loading completion with low runtime overhead. Moreover, our evaluation on Meituan's industrial recordings demonstrates its practical potential for reducing unnecessary waiting, while failure case analysis provides insights for future research.

References (40)