I'm using regex with VBA to pick up e-mails on webpages, all of which are formatted very differently. I'm struggling to access the entire page text owing to these differences in formats.
Currently my approach is just to use
Dim retStr as String
retStr = ie.document.body.innerText
where ie
comes from Set ie = CreateObject("InternetExplorer.Application")
Seems simple enough, but on some pages such as this one not all of the page text is being returned. By "all of the page text", I mean anything that ctrl+f would act on for example. In the linked page, the text of each 'step' doesn't seem to be returned. I imagine there will be a variation between different webpages, especially if they aren't formatted in HTML.
Pressing ctrl+a on the webpage returns the text I'd like, is there some way of accessing this text without using sendkeys
?