This Custom Activity is a wrapper on top of HTML Agility Pack ( http://html-agility-pack.net/ ) to allow using XPath queries ( https://www.w3schools.com/xml/xpath_intro.asp ) against HTML pages (obtained with HTTP request).
NOTE: It does not work with dynamic (Java Script) components/controls, just static HTML content (so no Angular, React, Ajax based sites).
You can get ready-made XPath selectors by using Google Chrome to open the page of interest, right clicking an element, Inspect, right click HTML definition, choose Copy and then "Copy XPath" - then you can adjust that selector, make it more generic, etc).
Output is a List of strings.
Test Case 1:
XPath Selector: "//*[@id=""main""]/h2"
Test Case 2:
XPath Selector: "//*[@id=""main""]/div/a"
Package Manager -> Right Click -> Configure Sources -> Add https://gallery.uipath.com/api/v2.
Works on static content from HTML pages only.
- HtmlAgilityPack (>= 1.8.2)
|1.0.1 (current version)||35,029||5/11/2018|