madref, try the attached project.
Whether it works on a Mac I don't know, but it's giving me consistent results on Linux.
Obviously you'll have to adapt it to your needs. I've used a global variable, ParsedRec as the main data container which gets updated when you change web page. This is for testing, really. You might prefer a procedure that passes a parameter rather than using a global variable.