Using Multiple XPath Expressions for Each UI Element in a Web Scraper Extension Tool

Modified on Fri, 15 Mar 2024 at 11:38 AM

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.

Using Multiple XPaths

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:

  1. Navigate to the application you wish to scrape. Click the algoScraper extension on the top-right  corner as shown: 
  2. Scraper tool window appears. In this window, select More >MutipleXPath Support option as shown: 


    Mutiple 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

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article