How to search by Xpath using VBA with MSXML2?
I want to get elements from a website using XPath expressions. I’m using the built-in Microsoft library MSXML2 to do it, but doesn´t have a getElementByXpath()
method. I’ve found this very good function getXPathElement()
shown below to get element by Xpath in this old thread and it works fine only with full xpath
expressions, but I need to find elements by Xpath that contains some text.