Automating XPath Query Generation Using NLP for Streamlined Web Crawling and GUI Testing

Efficient web data extraction and automated testing often require precise XPath queries, but generating these queries manually is both time-consuming and prone to errors. This work presents an advanced approach to automate the creation of XPath queries by leveraging natural language processing (NLP). Through a novel two-stage pipeline, the method first identifies relevant content from web pages and then uses an enhanced model to generate robust and reusable XPath queries. By reducing the complexity of web page structures and focusing on task-specific elements, this technique minimizes computational costs and improves processing speed. Benchmark results show that this NLP-powered solution significantly enhances both accuracy and efficiency in web crawling and GUI testing tasks, offering a scalable, user-friendly alternative to traditional methods. The solution is easily integrated into existing workflows, saving valuable time and effort in web scraping applications.

Authors

Publication Details

Published
2025-04-03
DOI
https://doi.org/10.1109/ictest64710.2025.11042798
Citations
3
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
6.92
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automating XPath Query Generation Using NLP for Streamlined Web Crawling and GUI Testing

Ashmeet Kaur
3 citations
Software Testing and Debugging Techniques
6.92
article

Automating XPath Query Generation Using NLP for Streamlined Web Crawling and GUI Testing

Ashmeet Kaur
article en
3 citations

Abstract

Efficient web data extraction and automated testing often require precise XPath queries, but generating these queries manually is both time-consuming and prone to errors. This work presents an advanced approach to automate the creation of XPath queries by leveraging natural language processing (NLP). Through a novel two-stage pipeline, the method first identifies relevant content from web pages and then uses an enhanced model to generate robust and reusable XPath queries. By reducing the complexity of web page structures and focusing on task-specific elements, this technique minimizes computational costs and improves processing speed. Benchmark results show that this NLP-powered solution significantly enhances both accuracy and efficiency in web crawling and GUI testing tasks, offering a scalable, user-friendly alternative to traditional methods. The solution is easily integrated into existing workflows, saving valuable time and effort in web scraping applications.

Openalex Percentile: Top 4%
Software Testing and Debugging Techniques
6.92
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.