Enhancing Automated Testing: A Performance Analysis of YOLOv8 and Faster R-CNN for Dynamic Web UI Detection
摘要
This paper evaluates and compares the effectiveness of YOLOv8 and Faster R-CNN models in detecting web User interface (UI) elements, focusing on their performance in dynamic and interactive environments. A custom UI with interactive filters-such as text input, dropdowns, sliders, and date pickers-was designed using React.js, and data was collected via Selenium for model training. The results reveal a clear speed-accuracy trade-off: YOLOv8 processes UI elements at 42 FPS, whereas Faster R-CNN achieves a higher mean Average Precision (mAP) of 0.91, particularly excelling in detecting complex elements like dropdowns (91%) and date pickers (85%). The study highlights the trade-offs between speed and precision, proposing a hybrid approach to leverage the strengths of both models for enhanced UI detection in automated testing frameworks.