How does Xpath Web Scrape activity work?

activities
studio

#1

Can someone tell me how Xpath Web Scrape activity works?


#2

Here are the 2 example given along with the package.

Test Case 1:
Attribute: “INNERHTML”
URL: “https://www.w3schools.com/xml/xpath_intro.asp
XPath Selector: “//*[@id=”“main”"]/h2"

Test Case 2:
Attribute: “href”
URL: “https://www.w3schools.com/xml/xpath_intro.asp
XPath Selector: “//*[@id=”“main”"]/div[4]/a[1]"

Basically it will retrieve the list of string values that matches the Xpath from the given URL.

Thanks,
Rammohan B.


#3

Thank you