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

Modified on Tue, 29 Oct at 11:16 AM

TABLE OF CONTENTS

1. Overview 

2. Using Multiple XPaths

2.1 Prerequisite 

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:

  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: 

  3. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article