Ranking approaches for similarity-based web element location
2025 (English) In: Journal of Systems and Software, ISSN 0164-1212, E-ISSN 1873-1228, Vol. 222, article id 112286Article in journal (Refereed) Published
Abstract [en]
Context: GUI-based tests for web applications are frequently broken by fragility, i.e. regression tests fail due to changing properties of the web elements. The most influential factor for fragility are the locators used in the scripts, i.e. the means of identifying the elements of the GUI.
Objective: We extend a state-of-the-art Multi-Locator solution that considers 14 locators from the DOM model of a web application, and identifies overlapping nodes in the DOM tree (VON-Similo). We augment the approach with standard Machine Learning and Learning to Rank (LTR) approaches to aid the location of web elements.
Method: We document an experiment with a ground truth of 1163 web element pairs, taken from different releases of 40 web applications, to compare the robustness of the algorithms to locator weight change, and the performance of LTR approaches in terms of MeanRank and PctAtN.
Results: Using LTR algorithms, we obtain a maximum probability of finding the correct target at the first position of 88.4% (lowest 82.57%), and among the first three positions of 94.79% (lowest 91.86%). The best mean rank of the correct candidate is 1.57.
Conclusion: The similarity-based approach proved to be highly dependable in the context of web application testing, where a low percentage of matching errors can still be accepted.
Place, publisher, year, edition, pages Elsevier, 2025. Vol. 222, article id 112286
Keywords [en]
GUI testing, Test automation, Test case robustness, Web element locators, XPath locators, Learning to rank, Mean-ranks, Ranking approach, Test case, WEB application, Web applications, Web element locator, Xpath locator, Contrastive Learning
National Category
Software Engineering
Identifiers URN: urn:nbn:se:bth-27257 DOI: 10.1016/j.jss.2024.112286 ISI: 001375573600001 Scopus ID: 2-s2.0-85211062465 OAI: oai:DiVA.org:bth-27257 DiVA, id: diva2:1921857
Part of project SERT- Software Engineering ReThought, Knowledge Foundation
Funder Knowledge Foundation, 20180010 2024-12-172024-12-172024-12-27 Bibliographically approved