If you try to scrape Text from a website, it’s normally enough to use the $ExBrowser Scrape Element function. That function will extract the “textContent” of an element.
But sometimes there is a difference between textContent and innerText. It depends on the data you want to scrape. So in case the $ExBrowser Scrape Element function doesn’t give you the correct result, it helps to try the other function with innerText as the Attribute you want to extract.
Example1 (will extract textContent:
set(#test,$plugin function(“ExBrowser.dll”, “$ExBrowser Scrape Element”, “//a”),”Global”)
Example2 (will extract textContent:
set(#test,$plugin function(“ExBrowser.dll”, “$ExBrowser Scrape Element Attribute”, “//a”, “innerText”),”Global”)
If you use:
set(#test,$plugin function(“ExBrowser.dll”, “$ExBrowser Scrape Element Attribute”, “//a”, “textContent”),”Global”)
It will give you the exact same result as the $ExBrowser Scrape Element function directly