How to measure text distance between two elements?

Sept. 24, 2019
3:55 a.m.
Hi, Supposed I have an element found by xpath(), I can then find its preceding elememt using the "preceding" xpath. Now, I want to make sure the two elements are not too far a way in terms of the number of characters shown between them in the HTML page. Is there an easy to do so? Thanks. -- Regards, Peng
1975
Age (days ago)
1975
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peng Yu