Similarity-based web element localization for robust test automation

08/01/2022
by   Michel Nass, et al.
0

Non-robust (fragile) test execution is a commonly reported challenge in GUI-based test automation, despite much research and several proposed solutions. A test script needs to be resilient to (minor) changes in the tested application but, at the same time, fail when detecting potential issues that require investigation. Test script fragility is a multi-faceted problem, but one crucial challenge is reliably identifying and locating the correct target web elements when the website evolves between releases or otherwise fails and reports an issue. This paper proposes and evaluates a novel approach called similarity-based web element localization (Similo), which leverages information from multiple web element locator parameters to identify a target element using a weighted similarity score. The experimental study compares Similo to a baseline approach for web element localization. To get an extensive empirical basis, we target 40 of the most popular websites on the Internet in our evaluation. Robustness is considered by counting the number of web elements found in a recent website version compared to how many of these existed in an older version. Results of the experiment show that Similo outperforms the baseline representing the current state-of-the-art; it failed to locate the correct target web element in 72 out of 598 considered cases compared to 146 failed cases for the baseline approach. This study presents evidence that quantifying the similarity between multiple attributes of web elements when trying to locate them, as in our proposed Similo approach, is beneficial. With acceptable efficiency, Similo gives significantly higher effectiveness (i.e., robustness) than the baseline web element localization approach.

READ FULL TEXT
research
01/10/2023

Robust web element identification for evolving applications by considering visual overlaps

Fragile (i.e., non-robust) test execution is a common challenge for auto...
research
06/09/2021

Erratum: Leveraging Flexible Tree Matching to Repair Broken Locators in Web Automation Scripts

Web applications are constantly evolving to integrate new features and f...
research
09/25/2018

Machines that test Software like Humans

Automated software testing involves the execution of test scripts by a m...
research
11/03/2021

The Klarna Product Page Dataset: A Realistic Benchmark for Web Representation Learning

This paper tackles the under-explored problem of DOM tree element repres...
research
03/28/2019

A gradual approach for maximising user conversion without compromising experience with high visual intensity website elements

The study develops and tests a method that can gradually find a sweet sp...
research
08/03/2022

Automatically Detecting Visual Bugs in HTML5 <canvas> Games

The HTML5 <canvas> is used to display high quality graphics in web appli...
research
07/20/2020

Visual Testing of GUIs by Abstraction

Ensuring the correct visual appearance of graphical user interfaces (GUI...

Please sign up or login with your details

Forgot password? Click here to reset