TABLE OF CONTENTS
1. Overview
Implementing multiple XPath expressions for each UI element in a web scraper extension tool helps prevent test case failures. If one XPath expression fails to find the location of a UI element, having multiple XPath expressions allows the tool to try alternative XPaths, ensuring the locations of UI elements can still be extracted successfully. It also reduces the need for manual intervention to update the scraped CSV file.
2. Using Multiple XPaths
2.1 Prerequisite
The algoScraper tool, available as a Chrome extension, serves the purpose of capturing all User Interface (UI) elements and X-paths present on a web page. To integrate this tool into your Chrome or Edge browser, Click here.
Perform the following:
- Navigate to the application you wish to scrape. Click the algoScraper extension on the top-right corner as shown:
- Scraper tool window appears. In this window, select More >MutipleXPath Support option as shown:
- Multiple XPaths will be captured in the XPath Column as follows:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article