EXPERIMENTAL RESEARCH ON APPROACHES TO GENERATING TEST SELECTORS USING GNN IN THE PROCESS OF AUTOMATED TESTING OF WEB APPLICATIONS

2025;
: 44-49
https://doi.org/10.23939/ujit2025.02.044
Received: September 17, 2025
Revised: October 24, 2025
Accepted: October 30, 2025

Цитування за ДСТУ: Морозов О. С., Яровий А. А. Експериментальні дослідження підходів до генерації тестових селекторів із застосуванням GNN у процесі автоматизованого тестування вебдодатків. Український журнал інформаційних технологій. 2025, т. 7, № 2. С. 44-49.
Citation APA: Morozov, O. S., & Yarovyi, A. A. (2025). Experimental research on approaches to generating test selectors using GNN in the process of automated testing of web applications. Ukrainian Journal of Information Technology, 7(2), 44-49. https://doi.org/10.23939/ujit2025.02.44

1
Vinnytsia National Technical University, Vinnytsia, Ukraine
2
Vinnytsia National Technical University, Vinnytsia, Ukraine

The article discusses the problem of instability of test selectors in the process of automated testing of web applications. It raises the issue of selectors’ adaptability to changes in the DOM structure, which is critically important in the development of modern dynamic web interfaces. A comparative analysis of three approaches to selector generation is conducted: manual (via Chrome DevTools), semi-automated (using DevTools), and automated using graph neural networks (GNN).
The aim of the study was to determine which approach provides the best balance between accuracy, completeness, stability, and time spent on selector formation in real testing conditions. The work used an experimental approach that included testing on 25 web applications with different types of DOM structures: static, dynamic, and SPA. Standard quality metrics were used: accuracy, completeness, F1-score, and the number of errors after changes in the DOM and the average selector generation time were also evaluated.
The results show the advantage of the GNN-based method, particularly in the stability of selectors after interface updates. Although the manual approach demonstrates high accuracy, it is significantly inferior in terms of speed and completeness, and Chrome DevTools, although fast, is the least reliable in dynamic environments. Thus, the use of graph neural networks makes it possible to create more adaptive and reliable solutions for automated testing of web applications.
In addition, the study demonstrates the feasibility of further developing GNN-based approaches through the integration of self-supervised learning and Graph Attention Networks (GAT) mechanisms, which will enable even greater accuracy, scalability, and performance of automated tests in complex software systems. The proposed approach has the potential to be implemented in next-generation frameworks for UI testing, which will contribute to improving the quality of digital products on the market.
Also, the feasibility of using GNN for automated generation of selectors adapted to changes in the DOM has been experimentally proven, and it has been found that this approach reduces the number of false positives without compromising performance. The results obtained are of practical value for improving the reliability and efficiency of automated testing systems in rapidly changing interface environments.

1. Hotti, A., Risuleo, R. S., Magureanu, S., Moradi, A., & Lagergren, J. (2024). The Klarna Product Page Dataset: Web Element Nomination with Graph Neural Networks and Large Language Models. arXiv:2111.02168 [cs.LG]. https://doi.org/ 10.48550/arXiv.2111.02168
2. Ergashev, U., Dragut, E., & Meng, W. (2023). Learning to rank resources with GNN. Proceedings of the ACM Web Conference 2023, 3247-3256. https://doi.org/10.1145/3543507.3583360
3. Acharya, D. B., & Zhang, H. (2020). Feature selection and extraction for graph neural networks. ACM Southeast Conference. https://doi.org/10.48550/arXiv.1910.10682
4. García, B., Gallego, M., Gortázar, F., & Munoz-Organero, M. (2020). A survey of the selenium ecosystem. Electronics, 9(7), 1067. https://doi.org/10.3390/electronics9071067
5. Uppal, N., & Chopra, V. (2012). Design and implementation in selenium IDE with web driver. International Journal of Computer Application, 46(12), 8-11.
6. Ui.Vision. (2023). Selenium IDE: Everything you need to know. Retrieved from https://ui.vision/rpa/docs/selenium-ide/locators
7. Yau, W. (2022). Test automation refactoring is a mess? Try CSS selector. Medium. Retrieved from https://medium.com/ichef/test-automation-refactoring-is-a-mess-try-css-s...
8. Exadel. (2022). How to choose selectors for automation to make your life a whole lot easier. Retrieved from https:// exadel.com/news/how-to-choose-selectors-for-automation-to-make-your-life-a-whole-lot-easier/
9. Morozov O. S., Yarovyi A. A., Petryshyn S. I. (2025). Hybrid methods for testing selectors in dynamic web applications. Youth in Science: Research, Problems, Prospects 2025.