I'm trying to hightlight some part of a text in a html page having only the xPath (or css path) of the selected area, an anchorOffset and a focusOffset.
I know how to manage this using the selection() method from user input, but i'm having serious difficulties trying to reproduce the same mechanism in an automathic way without the selection but only with these infos
Example: (imagine I have many others like this)
Xpath : heyThere[1]
anchorOffset : 3
focusOffset : 45
My goal is something like this
(see pic) http://oi57.tinypic.com/68aebo.jpg
can anybody give me an hint for this task?
Thanks a lot!