Safari, Javascript & XPath - I'm stumped!

I usually just triple-click (or click and drag) to select a phone number. Given that you have 5 fields to choose from, how to you expect to automate which field to select?

IAC, I have used this Macro for a long time to dial the selected phone number:

If you will post at least a screenshot of the web page where you want to select the phone number, and the criteria for selecting the field to select, I'll try to make further suggestions.