How does Xpath Web Scrape activity work?

Can someone tell me how Xpath Web Scrape activity works?

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.

Thank you

Please elaborate on how to use the Xpath Web Scrape activity. I am new to UiPath and development in general. Can you tell please me what’s wrong with this?: