Framework Matters: Energy Efficiency of UI Automation Testing Frameworks
Timmie M. R. Lagermann, Kristina Sophia Carter, Su Mei Gwen Ho, Luís Cruz, Kerstin Eder, Maja H. Kirkeby
TL;DR
This study quantifies per-action energy consumption across four web UI automation frameworks (Nightwatch, Playwright, Puppeteer, Selenium) in a controlled Raspberry Pi setup. It finds that energy costs vary by both UI action and framework, with up to about a sixfold difference, and that a significant interaction between framework and action type shapes energy use. Puppeteer generally yields the lowest energy footprint, while Nightwatch tends to be least efficient; no framework is best for all actions. The results underscore the need for per-framework calibration and per-action energy reporting to enable energy-aware test design and fair cross-framework comparisons, with broad implications for sustainable web UI testing and tooling choices.
Abstract
We examine per action energy consumption across four web user interface (UI) automation testing frameworks to determine whether consistent tendencies can guide energy-aware test design. Using a controlled client-server setup with external power metering, we repeat each UI action (refresh, click variants, checkbox, drag&drop, input-text, scroll) 35 times. Across each of the actions, energy costs vary by both framework and action. Puppeteer is the most efficient for left-click, right-click, double-click, checkbox, and input-text; Selenium is the most efficient for refresh and scroll; Nightwatch is generally the least energy efficient. The energy cost of performing the same action varied by up to a factor of six depending on the framework. This indicates that providing transparency of energy consumption for UI automation testing frameworks allows developers to make informed, energy-aware decisions when testing a specific UI action.
